Rust library for build scripts to compile C/C++ code into a Rust library
2,154
stars
1,647
commits
Rust
primary language
Sep 5, 2026
updated
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.
This project is licensed under either of
at your option.
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.
(top 30 of 320)
Rust
99.6%
Rust library for build scripts to compile C/C++ code into a Rust library
2,154
stars
1,647
commits
Rust
primary language
Sep 5, 2026
updated
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.
This project is licensed under either of
at your option.
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.
(top 30 of 320)
Rust
99.6%