https://github.com/rust-lang/cc-rs
Rust library for build scripts to compile C/C++ code into a Rust library
https://github.com/rust-lang/cc-rs
Last synced: 4 days ago
JSON representation
Rust library for build scripts to compile C/C++ code into a Rust library
- Host: GitHub
- URL: https://github.com/rust-lang/cc-rs
- Owner: rust-lang
- License: apache-2.0
- Created: 2014-11-01T02:21:22.000Z (about 11 years ago)
- Default Branch: main
- Last Pushed: 2025-04-25T04:00:02.000Z (8 months ago)
- Last Synced: 2025-04-30T11:56:44.666Z (8 months ago)
- Language: Rust
- Homepage: https://docs.rs/cc
- Size: 1.95 MB
- Stars: 1,966
- Watchers: 30
- Forks: 500
- Open Issues: 147
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# cc-rs
A library for [Cargo build scripts](https://doc.rust-lang.org/cargo/reference/build-scripts.html)
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](https://docs.rs/cc) for detailed usage instructions.
## License
This project is licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
https://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or
https://opensource.org/licenses/MIT)
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.