PackageTrack
Sign in Get early access

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.

1.4.4 1.2B downloads/mo #30 most downloaded on crates.io rust-lang/cc-rs

What this package is like to depend on

Last release 2 days ago

21 Aug 2026

Ships on a steady schedule

a new release about every 2 weeks

Some releases are documented

notes for 119 of 218 stable releases

2 versions withdrawn

withdrawn after publishing

12 years old

220 releases · first in 2014

39 releases in the last 12 months

see the full history below

Release timeline

220 releases · Dec 2014 to Aug 2026
2015 2017 2019 2021 2023 2025
Release Pre-release Withdrawn

Releases

latest 60 of 220
  1. 1.4.4 21 Aug 2026
    Release notes

    Fixed

    • honour Build::env overrides in Android llvm-ar probe (#1868)
    • honour Build::env overrides in flag support and compiler family detection probes (#1866)
    Open source →
    Release notes

    Fixed

    • honour Build::env overrides in Android llvm-ar probe (#1868)
    • honour Build::env overrides in flag support and compiler family detection probes (#1866)
    Open source →
  2. 1.4.3 14 Aug 2026
    Release notes

    Other

    • Update MSRV to 1.65 (#1834)
    • Regenerate target info (#1848)
    Open source →
    Release notes

    Other

    • Update MSRV to 1.65 (#1834)
    • Regenerate target info (#1848)
    Open source →
  3. 1.4.2 08 Aug 2026
    Release notes

    Fixed

    • Infer NEON, not VFPv4, from neon in the target name (#1843)
    • do not emit -mno-omit-leaf-frame-pointer if unsupported (#1845)
    Open source →
    Release notes

    Fixed

    • Infer NEON, not VFPv4, from neon in the target name (#1843)
    • do not emit -mno-omit-leaf-frame-pointer if unsupported (#1845)
    Open source →
  4. 1.4.1 07 Aug 2026
    Release notes

    Fixed

    • Fix -Cforce-frame-pointers's corresponding CFLAGS (#1814)
    • Fix parsing of thumbv7a-vex-v5 (#1840)

    Other

    • Regenerate target info (#1839)
    • Add aarch64_be to prefix_for_target (#1835)
    • Use lp64d ABI for Managarm riscv64 (#1829)
    • Make cc work on Motor OS (#1822)
    • Update edition to 2021 (#1811)
    • Update MSRV to 1.64 (#1808)
    Open source →
    Release notes

    Fixed

    • Fix -Cforce-frame-pointers's corresponding CFLAGS (#1814)
    • Fix parsing of thumbv7a-vex-v5 (#1840)

    Other

    • Regenerate target info (#1839)
    • Add aarch64_be to prefix_for_target (#1835)
    • Use lp64d ABI for Managarm riscv64 (#1829)
    • Make cc work on Motor OS (#1822)
    • Update edition to 2021 (#1811)
    • Update MSRV to 1.64 (#1808)
    Open source →
  5. 1.4.0 24 Jul 2026
    Release notes

    Added

    • support trim paths with clang-cl.exe (#1799)
    Open source →
    Release notes

    Added

    • support trim paths with clang-cl.exe (#1799)
    Open source →
  6. 1.3.0 18 Jul 2026
    Release notes

    Added

    • inherit path remap rules from cargo trim-paths (#1794)
    Open source →
    Release notes

    Added

    • inherit path remap rules from cargo trim-paths (#1794)
    Open source →
  7. 1.2.67 11 Jul 2026
    Release notes

    Other

    • Fix clippy warning (#1788)
    • Regenerate target info (#1785)
    • Add support for aarch64-unknown-linux-pauthtest target (#1713)
    • Fix nightly compilation error (#1783)
    Open source →
    Release notes

    Other

    • Fix clippy warning (#1788)
    • Regenerate target info (#1785)
    • Add support for aarch64-unknown-linux-pauthtest target (#1713)
    • Fix nightly compilation error (#1783)
    Open source →
  8. 1.2.66 05 Jul 2026
    Release notes

    Other

    • Fix target parsing for aarch64-unknown-linux-pauthtest (#1779)
    • Support new QNX targets (#1775)
    • Add kache to the supported compiler wrappers (#1770)
    Open source →
    Release notes

    Other

    • Fix target parsing for aarch64-unknown-linux-pauthtest (#1779)
    • Support new QNX targets (#1775)
    • Add kache to the supported compiler wrappers (#1770)
    Open source →
  9. 1.2.65 19 Jun 2026
    Release notes

    Other

    • Regenerate target info (#1763)
    Open source →
  10. 1.2.64 12 Jun 2026
    Release notes

    Other

    • Add more bare-metal 32-bit Arm support (#1753)
    • Remove unnecessary clone (#1748)
    • Add default compiler prefixes for thumbv7a/thumbv7r/thumbv8r bare-metal targets (#1742)
    Open source →
  11. 1.2.63 29 May 2026
    Release notes

    Other

    • Update shlex requirement from 1.3.0 to 2.0.1 (#1736)
    Open source →
  12. 1.2.62 08 May 2026
    Release notes

    Other

    • Regenerate target info (#1721)
    • Allow exceptions on wasm platforms (#1714)
    • Add relibc env (#1710)
    • recognize sh4 architecture in parse_arch() (#1712)
    Open source →
  13. 1.2.61 24 Apr 2026
    Release notes

    Other

    • fix OutputKind::Capture documentation (#1705)
    Open source →
  14. 1.2.60 10 Apr 2026
    Release notes

    Fixed

    • (ar) suppress warnings from D modifier probe (#1700)
    Open source →
  15. 1.2.59 03 Apr 2026
    Release notes

    Fixed

    • (ar) deterministic archives with D modifier (#1697)

    Other

    • Regenerate target info (#1698)
    • Fix target abi parsing for sanitiser targets (#1695)
    Open source →
  16. 1.2.58 27 Mar 2026
    Release notes

    Other

    • Update Compile-time Requirements to add info about clang-cl.exe (#1693)
    Open source →
  17. 1.2.57 14 Mar 2026
    Release notes

    Other

    • Size archiver batches according to argument length not argument count (#1689)
    • Added Build::env for setting environment variables of compiler invocations and other child processes (#1656 #1682)
    Open source →
  18. 1.2.56 13 Feb 2026
    Release notes

    Other

    • Regenerate target info (#1676)
    • Fix clang-cl target when cross-compiling (#1670)
    Open source →
  19. 1.2.55 30 Jan 2026
    Release notes

    Other

    • Regenerate target info (#1667)
    • Fix RUSTFLAGS typo in test-linker-plugin-lto (#1665)
    • Disable PIC for armv7-sony-vita-newlibeabihf (#1664)
    Open source →
  20. 1.2.54 23 Jan 2026
    Release notes

    Other

    • Fix x86_64-unknown-linux-gnuasan parsing (#1661)
    • Regenerate target info (#1660)
    Open source →
  21. 1.2.53 16 Jan 2026
    Release notes

    Other

    • Add missing RISC-V targets (#1657)
    Open source →
  22. 1.2.52 09 Jan 2026
    Release notes

    Other

    • Fix contradictory doc for CC compiler in crate doc (#1650)
    • Have CUDA compilaion check for sbsa-linux when targeting aarch64. (#1647)
    • Update link for -Cdwarf-version; Remove -Z (stabilized in 1.88) (#1648)
    • Fix Build::env_tool to check for .exe on windows (#1646)
    Open source →
  23. 1.2.51 26 Dec 2025
    Release notes

    Other

    • Regenerate target info (#1642)
    • Update Readmes (#1641)
    Open source →
  24. 1.2.50 19 Dec 2025
    Release notes

    Other

    • Add tests for OUT_DIR escape for '..' file paths (#1631)
    • Fix #283: Make warnings(false) actually suppress compiler warnings (#1633)
    Open source →
  25. 1.2.49 06 Dec 2025
    Release notes

    Other

    • Fix run_output to prevent infinite blocking (#1627)
    • Fix detect_family deadlock (#1626)
    • Fix link in new debug_str doc comment (#1625)
    • Support more of Cargo's debug levels with Build::debug_str (#1624)
    Open source →
  26. 1.2.48 28 Nov 2025
    Release notes

    Other

    • Regenerate target info (#1620)
    Open source →
  27. 1.2.47 21 Nov 2025
    Release notes

    Other

    • add helenos linker identifications (#1615)
    Open source →
  28. 1.2.46 14 Nov 2025
    Release notes

    Other

    • Add Visual Studio 2026 support (#1609)
    Open source →
  29. 1.2.45 07 Nov 2025
    Release notes

    Other

    • Regenerate target info (#1606)
    • Use a default check for the "env" variable in apple_sdk_name (#1605)
    Open source →
  30. 1.2.44 31 Oct 2025
    Release notes

    Other

    • Fix debug assertion for env/abi mismatch (#1604)
    • Update CHANGELOG for version 1.2.43 (#1602)
    • Stop passing an invalid target to llvm-mingw's cross-compilation wrappers (#1495)
    Open source →
  31. 1.2.43 24 Oct 2025
    Release notes

    Other

    • Mark static_flag and shared_flag as deprecated (#1582)
    Open source →
  32. 1.2.42 24 Oct 2025
    Release notes

    Other

    • Fix check-semver-checks (#1600)
    • minor improvement for docs (#1598)
    • Fix linker-plugin-lto: use -flto=thin (#1594)
    • Disable check-buildstd for armv7k-apple-watchos (#1599)
    • Add elf abi to ppc64 targets (#1596)
    Open source →
  33. 1.2.41 10 Oct 2025
    Release notes

    Other

    • Allow using VCToolsVersion to request a specific msvc version (#1589)
    • Regenerate target info (#1592)
    • Regenerate windows sys bindings (#1591)
    • Update windows-bindgen requirement from 0.64 to 0.65 (#1590)
    • Fix get_base_archiver_variant for clang-cl: use --print-search-dirs (#1587)
    Open source →
  34. 1.2.40 03 Oct 2025
    Release notes

    Other

    • Reorder changelog and remove duplicate Unreleased section (#1579)
    • Prefer clang if linker-plugin-lto specified (#1573)
    • Fix building for Mac Catalyst (#1577)
    • Improve ESP microcontroller targets (#1574)
    Open source →
  35. 1.2.39 26 Sep 2025
    Release notes

    Other

    • Fix cross compilation to xtensa-esp32s3-espidf (#1569)
    • Fix autodetect_wasi_compiler: support non utf-8 path (#1568)
    • Regenerate target info (#1567)
    • Fix rustcflags mapping: require -Clinker-plugin-lto for -flto (#1564)
    • Use $WASI_SDK_PATH on WASI targets by default (#1562)
    • Fix atomicity violations in concurrent cache operations (#1559)
    Open source →
  36. 1.2.38 19 Sep 2025
    Release notes

    Other

    • updated the following local packages: find-msvc-tools
    Open source →
  37. 1.2.37 12 Sep 2025
    Release notes

    Other

    • Fix errmsg in RustcCodegenFlags::set_rustc_flag (#1551)
    • propagate stack protector to Linux C compilers (#1550)
    • Extract new fn run_commands_in_parallel (#1549)
    Open source →
  38. 1.2.36 05 Sep 2025
    Release notes

    Other

    • Regenerate windows sys bindings (#1548)
    • Update windows-bindgen requirement from 0.62 to 0.63 (#1547)
    • Add fn get_ucrt_dir for find-msvc-tools (#1546)
    • Regenerate target info (#1544)
    • fix publish.yml (#1543)
    • Replace periods with underscores as well when parsing env variables (#1541)
    Open source →
  39. 1.2.35 01 Sep 2025
    Release notes

    Fixed

    • fix building for aarch64-apple-visionos-sim on nightly (#1534)
    • fix tests apple_sdkroot_wrong (#1530)

    Other

    • Regenerate target info (#1536)
    • Optimize Tool::to_command (#1535)
    • Extract find-msvc-tools (#1531)
    • Add prefer_clang_cl_over_msvc (#1516)
    Open source →
  40. 1.2.34 22 Aug 2025
    Release notes

    Fixed

    • add -mcpu=mvp and -mmutable-globals for wasm32v1-none (#1524)

    Other

    • Optimize parse_version in find_tools.rs (#1527)
    • Fallback to manually searching for tool dir (#1526)
    Open source →
  41. 1.2.33 16 Aug 2025
    Release notes

    Other

    • Regenerate target info (#1521)
    • [win][arm64ec] Add testing for Arm64EC Windows (#1512)
    • Fix parsing of nigthly targets (#1517)
    • [win][arm64ec] Fix finding assembler and setting is_arm for Arm64EC (#1511)
    Open source →
  42. 1.2.32 08 Aug 2025
    Release notes

    Fixed

    • fix new clippy lint introduced in rust 1.89.0 (#1509)

    Other

    • clarify cargo default if no rerun emitted (#1508)
    • extract compile_objects_sequential (#1507)
    • Windows find_tools: add support for finding Clang (#1506)
    • Add m68k-unknown-linux-gnu cross-compile target (#1505)
    Open source →
  43. 1.2.31 01 Aug 2025
    Release notes

    Other

    • Add doc for using sccache/ccache etc (#1502)
    • ability to statically link against C++ stdlib (#1497)
    • Add instructions on using sccache (#1503)
    • Add support for recognizing some architectures supported by GCC, but not LLVM. (#1500)
    Open source →
  44. 1.2.30 18 Jul 2025
    Release notes

    Other

    • define _REENTRANT by default (#1496)
    Open source →
  45. 1.2.29 05 Jul 2025
    Release notes

    Other

    • Fix target parsing for powerpc (#1490)
    Open source →
  46. 1.2.28 04 Jul 2025
    Release notes

    Other

    • Recognize mlibc environment (#1488)
    • Fix clippy warnings about not using variables in format! strings (#1489)
    Open source →
  47. 1.2.27 13 Jun 2025
    Release notes

    Other

    • Regenerate windows sys bindings (#1485)
    • Update windows-bindgen requirement from 0.61 to 0.62 (#1484)
    • Regenerate target info (#1483)
    Open source →
  48. 1.2.26 06 Jun 2025
    Release notes

    Other

    • Also set SDKROOT when building apple platforms (#1475)
    • use windows 2022 in CI (#1479)
    • Detect -Wslash-u-filename warning on clang-cl (#1477)
    Open source →
  49. 1.2.25 30 May 2025
    Release notes

    Other

    • make powerp64 use powerpc64-linux-gnu prefix (#1474)
    Open source →
  50. 1.2.24 23 May 2025
    Release notes

    Other

    • Regenerate windows sys bindings (#1471)
    Open source →
  51. 1.2.23 16 May 2025
    Release notes

    Other

    • support "vxworks" and "nto" OSes on get_base_archiver_variant (#1456)
    Open source →
  52. 1.2.22 09 May 2025
    Release notes

    Other

    • Add flags method to cc::Build for adding multiple flags (#1466)
    Open source →
  53. 1.2.21 02 May 2025
    Release notes

    Other

    • Fix wasm32-unknown-unknown by passing -c (#1424)
    Open source →
  54. 1.2.20 25 Apr 2025
    Release notes

    Other

    • Regenerate target info (#1461)
    • Fix parser.rs on latest rustc nightly (#1459)
    Open source →
  55. 1.2.19 11 Apr 2025
    Release notes

    Other

    • Fix musl compilation: Add musl as a prefix fallback (#1455)
    Open source →
  56. 1.2.18 04 Apr 2025
    Release notes

    Other

    • Regenerate target info (#1450)
    • Use std::thread::available_parallelism for determining the default number of jobs (#1447)
    • Fix mips64-openwrt-linux-musl parsing (#1449)
    • Use compiler prefix x86_64-linux-musl (#1443)
    Open source →
  57. 1.2.17 21 Mar 2025
    Release notes

    Other

    • Regenerate target info (#1439)
    • Regenerate windows sys bindings (#1437)
    • Fix wasm32-wali-linux-musl target parsing (#1434)
    • Parse rustc target names (#1413)
    • Regenerate target info (#1429)
    • Added base support for wasm32-wali-linux-musl target (#1373)
    Open source →
  58. 1.2.16 28 Feb 2025
    Release notes

    Fixed

    • force windows compiler to run in out_dir to prevent artifacts in cwd (#1415)

    Other

    • use /arch:SSE2 for x86 target arch (#1425)
    • Regenerate windows-sys binding (#1422)
    • Regenerate target info (#1418)
    • Add LIB var when compiling flag_check (#1417)
    • Change flag ordering (#1403)
    • Fix archiver detection for musl cross compilation (#1404)
    Open source →
  59. 1.2.15 21 Feb 2025
    Release notes

    Other

    • Regenerate target info (#1406)
    • Always read from all CFLAGS-style flags (#1401)
    • Simplify the error output on failed Command invocation (#1397)
    Open source →
  60. 1.2.14 14 Feb 2025
    Release notes

    Other

    • Regenerate target info (#1398)
    • Add support for setting -gdwarf-{version} based on RUSTFLAGS (#1395)
    • Add support for alternative network stack io-sock on QNX 7.1 aarch64 and x86_64 (#1312)
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive