#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

158 stable releases

new 1.2.14 Feb 14, 2025
1.2.11 Jan 31, 2025
1.2.6 Dec 27, 2024
1.2.2 Nov 29, 2024
0.0.1 Dec 16, 2014

#1 in Build Utils

Download history 3172768/week @ 2024-10-29 3270768/week @ 2024-11-05 3430710/week @ 2024-11-12 3313258/week @ 2024-11-19 3004821/week @ 2024-11-26 3486554/week @ 2024-12-03 3744700/week @ 2024-12-10 3279165/week @ 2024-12-17 1927652/week @ 2024-12-24 2377682/week @ 2024-12-31 3625476/week @ 2025-01-07 3723952/week @ 2025-01-14 3629982/week @ 2025-01-21 3681742/week @ 2025-01-28 4225643/week @ 2025-02-04 4024142/week @ 2025-02-11

16,119,699 downloads per month
Used in 42,491 crates (2,348 directly)

MIT/Apache

435KB
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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy