link-line helper to build correct cdylibs
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()
.
[]
= "0.1"
metabuild
If you are using the metabuild
unstable feature
= ["metabuild"]
[]
= "mypackage"
...
= ["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.