Rust library for build scripts to compile C/C++ code into a Rust library
  • Rust 99.6%
  • Assembly 0.2%
  • C 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-04-06 15:20:33 +02:00
dev-tools chore: sync dependencies (monorepo) 2026-04-02 17:41:43 +02:00
find-msvc-tools chore: sync dependencies (monorepo) 2026-04-06 15:20:33 +02:00
src chore: sync dependencies (monorepo) 2026-04-02 19:51:10 +02:00
tests chore: sync dependencies (monorepo) 2026-04-02 02:23:51 +02:00
.gitignore Use Cargo's target information when possible (#1225) 2024-11-01 13:15:28 +11:00
Cargo.toml chore: sync dependencies (monorepo) 2026-04-06 15:20:33 +02:00
clippy.toml Serialize tests that need environment variables (#1685) 2026-03-08 15:19:35 +00:00
LICENSE-APACHE Add a README/licenses 2014-10-31 21:23:58 -07:00
LICENSE-MIT Add a README/licenses 2014-10-31 21:23:58 -07:00
README.md Update Readmes (#1641) 2025-12-25 14:41:33 +11:00

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.