Crates.io | cdylib-link-lines |
lib.rs | cdylib-link-lines |
version | 0.1.5 |
source | src |
created_at | 2019-06-04 19:37:02.132698 |
updated_at | 2024-03-01 12:01:40.039732 |
description | Collection of link-lines useful to build correct cdylibs on targets |
homepage | |
repository | https://github.com/lu-zero/cdylib-link-lines |
max_upload_size | |
id | 138996 |
size | 6,136 |
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();
}
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"
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.