#build #correct #targets #helper #collection #metabuild #cdylibs

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

#259 in Data structures

Download history 254/week @ 2024-03-14 873/week @ 2024-03-21 733/week @ 2024-03-28 941/week @ 2024-04-04 458/week @ 2024-04-11 556/week @ 2024-04-18 581/week @ 2024-04-25 536/week @ 2024-05-02 429/week @ 2024-05-09 482/week @ 2024-05-16 427/week @ 2024-05-23 429/week @ 2024-05-30 213/week @ 2024-06-06 279/week @ 2024-06-13 900/week @ 2024-06-20 1120/week @ 2024-06-27

2,642 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