#build-dependencies #build-script #cargo-build #compile #archive #static #compiler

build supply-chain-trust-example-crate-000027

A build-time dependency for Cargo build scripts to assist in invoking the native C compiler to compile native C code into a static archive to be linked into Rust code

1 stable release

1.1.34 Nov 3, 2024

#237 in Build Utils

Download history 89/week @ 2024-10-31 19/week @ 2024-11-07

108 downloads per month

MIT/Apache

395KB
9K SLoC

cc-rs

A library for Cargo build scripts to compile a set of C/C++/assembly/CUDA files into a static archive for Cargo to link into the crate being built. This crate does not compile code itself; it calls out to the default compiler for the platform. This crate will automatically detect situations such as cross compilation and various environment variables and will build code appropriately.

Refer to the documentation for detailed usage instructions.

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in cc-rs by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies