#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

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 2978422/week @ 2024-08-04 3201344/week @ 2024-08-11 3132771/week @ 2024-08-18 3219136/week @ 2024-08-25 3127324/week @ 2024-09-01 3111808/week @ 2024-09-08 2996712/week @ 2024-09-15 3318310/week @ 2024-09-22 3496162/week @ 2024-09-29 3993745/week @ 2024-10-06 3821400/week @ 2024-10-13 3626634/week @ 2024-10-20 3147631/week @ 2024-10-27 3340973/week @ 2024-11-03 3360467/week @ 2024-11-10 3373290/week @ 2024-11-17

13,473,282 downloads per month
Used in 39,822 crates (2,265 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