#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

#234 in Data structures

Download history 459/week @ 2024-01-22 319/week @ 2024-01-29 223/week @ 2024-02-05 524/week @ 2024-02-12 775/week @ 2024-02-19 924/week @ 2024-02-26 580/week @ 2024-03-04 268/week @ 2024-03-11 604/week @ 2024-03-18 745/week @ 2024-03-25 900/week @ 2024-04-01 661/week @ 2024-04-08 442/week @ 2024-04-15 580/week @ 2024-04-22 533/week @ 2024-04-29 570/week @ 2024-05-06

2,158 downloads per month
Used in rpm-sequoia

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