Registry / build-tool / cc
library1.2.63rscratesunverified

A build-time dependency for Cargo build scripts to compile native C code into static archives for Rust linkage.

# Cargo.toml [dependencies] cc = "1.2.63"
INSTALL
IMPORT
SIG · CC
C
cc
build-toolrustv1.2.63
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Build
✓ use cc::Build;

Compile a C source file into a static library during Cargo build.

// build.rs use cc::Build; fn main() { Build::new() .file("src/foo.c") .compile("foo"); }
Debug
Known issues
gotchaRequires a C compiler installed on the system (e.g., gcc, clang).
fix
Install a C compiler or use cross-compilation toolchains.
affects: >=0.1.0
Upgrade
Version history
1.2.63latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
24
OpenAI (training)
1
Resources
cc — cargo add cc · libregistry