#build #correct #target #cargo #collection #cdylibs #link-lines

build cdylib-link-lines

Collection of link-lines useful to build correct cdylibs on targets

6 releases

0.1.5 Mar 1, 2024
0.1.4 Jul 6, 2021
0.1.2 Jul 17, 2020
0.1.1 Jun 5, 2019

#153 in Build Utils

Download history 1174/week @ 2024-11-16 1571/week @ 2024-11-23 1701/week @ 2024-11-30 1241/week @ 2024-12-07 1305/week @ 2024-12-14 517/week @ 2024-12-21 556/week @ 2024-12-28 1968/week @ 2025-01-04 2327/week @ 2025-01-11 1580/week @ 2025-01-18 1234/week @ 2025-01-25 1288/week @ 2025-02-01 1282/week @ 2025-02-08 2753/week @ 2025-02-15 3353/week @ 2025-02-22 2265/week @ 2025-03-01

9,801 downloads per month
Used in 2 crates

MIT license

6KB
72 lines

link-line helper to build correct cdylibs

LICENSE

Supported targets

  • Linux and Android
  • macOS and iOS
  • Windows (gnu)

Usage

build.rs

Add the crate to your build-dependencies, in your build.rs, call metabuild().

[build-dependencies]
cdylib-link-lines = "0.1"
fn main() {
    cdylib_link_lines::metabuild();
}

metabuild

If you are using the metabuild unstable feature

cargo-features = ["metabuild"]

[package]
name = "mypackage"
...
metabuild = ["cdylib-link-lines"]

[build-dependencies]
cdylib-link-lines = "0.1"

Credits

Helper spun off crav1e, contains code written by Luca Barbato and Derek Buitenhuis. Synchronized with the cargo-c 0.9 logic thanks to Ivan Enderlin.

No runtime deps