#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

#129 in Build Utils

Download history 1323/week @ 2024-08-23 1250/week @ 2024-08-30 1395/week @ 2024-09-06 1000/week @ 2024-09-13 1509/week @ 2024-09-20 1131/week @ 2024-09-27 1249/week @ 2024-10-04 902/week @ 2024-10-11 1046/week @ 2024-10-18 1153/week @ 2024-10-25 705/week @ 2024-11-01 881/week @ 2024-11-08 1360/week @ 2024-11-15 1579/week @ 2024-11-22 1576/week @ 2024-11-29 959/week @ 2024-12-06

5,596 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