| 1 |
# cc-rs |
| 2 |
|
| 3 |
A library for [Cargo build scripts](https://doc.rust-lang.org/cargo/reference/build-scripts.html) |
| 4 |
to compile a set of C/C++/assembly/CUDA files into a static archive for Cargo |
| 5 |
to link into the crate being built. This crate does not compile code itself; |
| 6 |
it calls out to the default compiler for the platform. This crate will |
| 7 |
automatically detect situations such as cross compilation and |
| 8 |
various environment variables and will build code appropriately. |
| 9 |
|
| 10 |
Refer to the [documentation](https://docs.rs/cc) for detailed usage instructions. |
| 11 |
|
| 12 |
## License |
| 13 |
|
| 14 |
This project is licensed under either of |
| 15 |
|
| 16 |
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or |
| 17 |
https://www.apache.org/licenses/LICENSE-2.0) |
| 18 |
* MIT license ([LICENSE-MIT](LICENSE-MIT) or |
| 19 |
https://opensource.org/licenses/MIT) |
| 20 |
|
| 21 |
at your option. |
| 22 |
|
| 23 |
### Contribution |
| 24 |
|
| 25 |
Unless you explicitly state otherwise, any contribution intentionally submitted |
| 26 |
for inclusion in cc-rs by you, as defined in the Apache-2.0 license, shall be |
| 27 |
dual licensed as above, without any additional terms or conditions. |