NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io, #29 most downloaded on crates.io
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.
Latest stable
1.11.3
Last release 2 days ago
20 Nov 2026
Ships on a steady schedule
a new release about every 2 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
2 versions withdrawn
withdrawn after publishing
12 years old
234 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
Fix cyclic compilation: Use vendored once_cell
Support compiling on wasm targets (Supersede #1068)
Revert "Use raw-dylib for windows-sys (#1137)"
Your coding agent can read these notes before it upgrades. Set up the MCP server →
### Other - Add empty jobserver feature.
jobserver feature. (#1150)Fix is_flag_supported not respecting emit_rerun_if_env_changed
add cargo_output to eliminate last vestiges of stdout pollution
Fixed link break about compile-time-requirements
Fix compilation for wasm: env WASI_SYSROOT should be optional
Fix invalid wasi targets compatibility
Use Build::getenv instead of env::var* in anywhere that makes sense
Build::getenv instead of env::var* in anywhere that makes sense (#1103)Update publish.yml to use release-plz
OsStr instead of str for flags (#1100)dep: syntax to avoid implicit features. (#1099)Allow opt-out the -ccbin flag by @QuarticCat in https://github.com/rust-lang/cc-rs/pull/1085
Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.98...1.0.99
Cleanup some deprecated, unused allows by @klensy in https://github.com/rust-lang/cc-rs/pull/1067
Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.97...1.0.98
CI: Create regenerate-target-info by @NobodyXu in https://github.com/rust-lang/cc-rs/pull/1055
regenerate-target-info.yml by @NobodyXu in https://github.com/rust-lang/cc-rs/pull/1060Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.96...1.0.97
Use specified include directories prior to CFLAGS by @justsmth in https://github.com/rust-lang/cc-rs/pull/1043
Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.95...1.0.96
Update windows-bindgen requirement from 0.55 to 0.56 by @dependabot in https://github.com/rust-lang/cc-rs/pull/1035
try_acquire by @NobodyXu in https://github.com/rust-lang/cc-rs/pull/1037Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.94...1.0.95
Fix xcrun sdk version arg by @0123456789-jpg in https://github.com/rust-lang/cc-rs/pull/1007
Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.93...1.0.94
Add visionOS support by @madsmtm in https://github.com/rust-lang/cc-rs/pull/1029
Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.92...1.0.93
Fix linking with llvm-lib by @NobodyXu in https://github.com/rust-lang/cc-rs/pull/1027
Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.91...1.0.92
Update windows-bindgen requirement from 0.54 to 0.55 by @dependabot in https://github.com/rust-lang/cc-rs/pull/999
$compiler -v by @NobodyXu in https://github.com/rust-lang/cc-rs/pull/1000Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.90...1.0.91
Revert "refactor target flags" by @NobodyXu in https://github.com/rust-lang/cc-rs/pull/992
--target when targeting Android on non-Windows platforms by @dpaoliello in https://github.com/rust-lang/cc-rs/pull/991Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.89...1.0.90
refactor target flags by @youknowone in https://github.com/rust-lang/cc-rs/pull/873
Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.88...1.0.89
Add /System/iOSSupport to header/library search paths on Mac Catalyst by @madsmtm in https://github.com/rust-lang/cc-rs/pull/961
/System/iOSSupport to header/library search paths on Mac Catalyst by @madsmtm in https://github.com/rust-lang/cc-rs/pull/961Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.87...1.0.88
fix: remove unnecessary printlns by @amaanq in https://github.com/rust-lang/cc-rs/pull/960
printlns by @amaanq in https://github.com/rust-lang/cc-rs/pull/960Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.86...1.0.87
CI: Run test on aarch64-apple-darwin by @NobodyXu in https://github.com/rust-lang/cc-rs/pull/947
--jobserver-auth wins by @NobodyXu in https://github.com/rust-lang/cc-rs/pull/949Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.85...1.0.86
> This release has been yanked, due to panicking in freeBSD debug build. A release without these issues will be made in the near future.
[!IMPORTANT]
This release has been yanked, due to panicking in freeBSD debug build. A release without these issues will be made in the near future.
Sorry, and thanks.
-- for files in try_expand (like in #514) by @pashokitsme in https://github.com/rust-lang/cc-rs/pull/911cargo_warnings config to control the use of the cargo warning instruction by @scootermon in https://github.com/rust-lang/cc-rs/pull/917Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.84...1.0.85
We no longer bundle bitcode when compiling for Apple targets, as they've deprecated it
[!IMPORTANT]
This release has been yanked, due to the Apple deployment target changes causing unintentional widespread breakage for building C++ code on the target (for projects without an explicit deployment target set). A release without these issues will be made in the near future.
Sorry, and thanks.
This isn't a complete list, but I've tried to cover everything that is either significant, or could cause problems for people using cc in configurations not covered by our tests.
feature = parallel), which should be more efficient. (https://github.com/rust-lang/cc-rs/pull/889).armasm[64].exe (https://github.com/rust-lang/cc-rs/pull/867, https://github.com/rust-lang/cc-rs/pull/868, https://github.com/rust-lang/cc-rs/pull/869, https://github.com/rust-lang/cc-rs/pull/857)is_flag_supported (https://github.com/rust-lang/cc-rs/pull/839, https://github.com/rust-lang/cc-rs/pull/886)*-apple-tvos and *-apple-tvos-sim targets (https://github.com/rust-lang/cc-rs/pull/881, https://github.com/rust-lang/cc-rs/pull/704)rustc --print deployment-target when available (https://github.com/rust-lang/cc-rs/pull/848, https://github.com/rust-lang/cc-rs/pull/872)remove_flag function to remove flags which have been added with add_flag (https://github.com/rust-lang/cc-rs/pull/885)-m32/-mx32/-m64 flags are passed (https://github.com/rust-lang/cc-rs/pull/709)-isysroot is passed on Apple targets (https://github.com/rust-lang/cc-rs/pull/703) and how MSVC version is detected on Windows (https://github.com/rust-lang/cc-rs/pull/696).As always, please file bugs if you hit issues. cc is used in many more ways than we can possibly test (especially when cross-compiling or using tier-3 platforms).
Thanks.
Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.83...1.0.84
Add method for specifying C/C++ standard version by @hikari-no-yume in https://github.com/rust-lang/cc-rs/pull/761
Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.82...1.0.83
This release corrects a deadlock and potential performance regression present since 1.0.80, and contains no other changes. See https://github.com/rust
This release corrects a deadlock and potential performance regression present since 1.0.80, and contains no other changes. See https://github.com/rust-lang/cc-rs/pull/849 for details.
This release exists to fix a bug introduced in 1.0.80 where we would panic if non-UTF8 were written to stderr by the C compiler. See https://github.co
This release exists to fix a bug introduced in 1.0.80 where we would panic if non-UTF8 were written to stderr by the C compiler. See https://github.com/rust-lang/cc-rs/pull/842 and https://github.com/rust-lang/cc-rs/issues/841 for more info.
Bump MSRV to 1.46.0 by @thomcc in https://github.com/rust-lang/cc-rs/pull/781
windows_registry::VsVers non_exhaustive by @NobodyXu in https://github.com/rust-lang/cc-rs/pull/783Build::clone: Use Arc instead of String/PathBuf/OsString by @NobodyXu in https://github.com/rust-lang/cc-rs/pull/782freebsd-version to all --target=*-freebsd if executed on FreeBSD. by @dot-asm in https://github.com/rust-lang/cc-rs/pull/788get_xxx() call by @mqudsi in https://github.com/rust-lang/cc-rs/pull/793Build::compile_objects: Only spawns one thread by @NobodyXu in https://github.com/rust-lang/cc-rs/pull/780os_pipe with direct implementation by @NobodyXu in https://github.com/rust-lang/cc-rs/pull/822Build::print: Avoid unnecessary heap alloc by @NobodyXu in https://github.com/rust-lang/cc-rs/pull/824Error::new: Avoid unnecessary heap alloc by @NobodyXu in https://github.com/rust-lang/cc-rs/pull/823cc::Build::try_compile: Reuse PrintThread by @NobodyXu in https://github.com/rust-lang/cc-rs/pull/817Build::compile_objects deadlock on parallel by @NobodyXu in https://github.com/rust-lang/cc-rs/pull/829Build::get_out_dir: Return Cow<'_, Path> by @NobodyXu in https://github.com/rust-lang/cc-rs/pull/831Build::env_cache: Store Option<Arc<str>> as key by @NobodyXu in https://github.com/rust-lang/cc-rs/pull/832Build::compile_objects on feature parallel by @NobodyXu in https://github.com/rust-lang/cc-rs/pull/833windows-sys dependency with bindings generation by @NobodyXu in https://github.com/rust-lang/cc-rs/pull/837x86_64h-apple-darwin target by @thomcc in https://github.com/rust-lang/cc-rs/pull/840Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.79...1.0.80
The riscv32imc-esp-espidf target is now supported
riscv32imc-esp-espidf target is now supported (#776)Build::is_flag_supported now checks the exit status of the compiler in addition to stderr output, improving reliability (#757)aarch64-apple-ios-sim target -arch arm64 is now correctly passed as two arguments instead of one (#759)ar and ranlib (#763)
ar (Build::get_archiver) and ranlib (Build::get_ranlib) binaries used for this build have been added.ARFLAGS, RANLIBFLAGS, AR, and RANLIB) are now respected automatically if not overridden.msbuild under VS2022 (#773)Additionally, a number of smaller changes which shouldn't impact users have been made (in particular #769 and #777); see the commit history for complete details.
Thanks to everybody who contributed to this release!
Now, only .asm files are passed to masm on windows targets, bringing things back in line with how cc-rs<1.0.77 handled it (#755).
.asm files are passed to masm on windows targets, bringing things back in line with how cc-rs<1.0.77 handled it (#755).llvm-lib.exe is now used instead of lib.exe when clang-cl is used in an MSVC environment (#758)Thanks to everybody who contributed to this release!
Added a new Build::asm_flag function, which allows providing flags that are only used when compiling assembly files (for example, if your C compiler r
Build::asm_flag function, which allows providing flags that are only used when compiling assembly files (for example, if your C compiler rejects flags passed to the assembler when not used as an assembler). (#752)Thanks to everybody who contributed to this release!
When compiling with clang-cl, we now only use -- to separate flags/options from input files when not using the assembler, which doesn't support that o
clang-cl, we now only use -- to separate flags/options from input files when not using the assembler, which doesn't support that option. This is a fix for a regression introduced in 1.0.74 (by #514) (present in 1.0.75 as well). (#747)This is essentially a bugfix release, so that's all!
When Rust debuginfo is enabled, debuginfo is passed to MSVC assemblers
ar executable, *-ar is now preferred to *-gcc-ar (#741)Additionally, a number of smaller changes which shouldn't impact users have been made; see the commit history for complete details.
Thanks to everybody who contributed to this release!
When compiling with clang-cl, we now use -- to separate flags/options from input files.
clang-cl, we now use -- to separate flags/options from input files. (#514)RUSTC_LINKER's prefix (rather than erroring) if we fail to determine the prefix to use for the given target. (#685)Build::link_lib_modifier function was added to allow control which library modifiers are used when linking with the generated library. (#671)ar binary to use, we now try {target}-ar in addition to {target}-gcc-ar. If they're both present, {target}-ar will be preferred. (#735, #736)cargo:rerun-if-env-changed messages for environment variables that influence the build. This is only done if cargo_metadata is enabled, and can be disabled by passing false to the new Build::emit_rerun_if_env_changed builder function. (#701, #738)The following targets are now supported:
*-watchos and *-watchos-sim). (#662)*-pc-windows-gnullvm). (#734)riscv32imac-unknown-xous-elf). (#686)Additionally, a number of smaller changes which shouldn't impact users have been made; see the commit history for complete details.
Thanks to everybody who contributed to this release!
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.