#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

147 stable releases

new 1.2.3 Dec 7, 2024
1.2.2 Nov 29, 2024
1.1.31 Oct 19, 2024
1.1.7 Jul 29, 2024
0.0.1 Dec 16, 2014

#1 in Build Utils

Download history 3239373/week @ 2024-08-23 3065808/week @ 2024-08-30 3185819/week @ 2024-09-06 2942266/week @ 2024-09-13 3339979/week @ 2024-09-20 3374889/week @ 2024-09-27 3917057/week @ 2024-10-04 3744705/week @ 2024-10-11 3864524/week @ 2024-10-18 3240274/week @ 2024-10-25 3242652/week @ 2024-11-01 3310830/week @ 2024-11-08 3398064/week @ 2024-11-15 3069720/week @ 2024-11-22 3305537/week @ 2024-11-29 3115976/week @ 2024-12-06

13,514,210 downloads per month
Used in 40,397 crates (2,282 directly)

MIT/Apache

425KB
10K 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