#build-script #cargo-build #static #native #build-dependencies #compilation #compile

build cc

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

145 stable releases

new 1.2.1 Nov 14, 2024
1.1.31 Oct 19, 2024
1.1.7 Jul 29, 2024
1.0.90 Mar 6, 2024
0.0.1 Dec 16, 2014

#1 in Build Utils

Download history 2987736/week @ 2024-08-01 3211168/week @ 2024-08-08 3077632/week @ 2024-08-15 3211710/week @ 2024-08-22 3016875/week @ 2024-08-29 3282582/week @ 2024-09-05 3069032/week @ 2024-09-12 3161531/week @ 2024-09-19 3421815/week @ 2024-09-26 3828178/week @ 2024-10-03 3768126/week @ 2024-10-10 3885360/week @ 2024-10-17 3270613/week @ 2024-10-24 3204612/week @ 2024-10-31 3271088/week @ 2024-11-07 2885180/week @ 2024-11-14

13,230,753 downloads per month
Used in 39,734 crates (2,262 directly)

MIT/Apache

400KB
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