NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #1924 most downloaded on crates.io
C++ code generator for integrating `cxx` crate into a non-Cargo build.
Latest stable
1.0.205
Last release 1 months ago
11 Oct 2026
Ships unpredictably
gaps range from 8 days to 5 months
Nearly every release is documented
notes for 59 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
251 releases · first in 2020
Drag across the ruler to compare, or tap a release to open it.
Fix handling of - in feature names in cfg(feature = "…-…") attributes
- in feature names in cfg(feature = "…-…") attributes (#1766)Fix cross-language aliasing UB flagged by BorrowSanitizer in rust::String::c_str (#1764, #1765)
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Find target dir from OUT_DIR when CARGO_TARGET_DIR is relative (#1763, thanks @akashchamp)
Support build environments that limit build-script filesystem writes outside of OUT_DIR (#1760, thanks @gudcks0305)
Specialize enable_borrowed_range and enable_view for rust::Slice (#1758, thanks @MixusMinimax)
enable_borrowed_range and enable_view for rust::Slice<T> (#1758, thanks @MixusMinimax)Do not classify references as guaranteed POD (#1754, thanks @anforowicz)
Suppress clone_on_copy clippy lint in generated code
Update to syn 3
Restore RefUnwindSafe for let_cxx_string in async
Update to Rust 2024 edition (#1732, #1733, #1734, #1735, #1736, #1737)
Fix use of uninitialized value in let_cxx_string! on panic inside initialization expression (#1729, #1731)
let_cxx_string! on panic inside initialization expression (#1729, #1731)Drop Bazel 7 ( #1696 , #1697 )
Support for Bazel 9.0.0 (#1693, #1695)
Add support for Vec > (#1681, thanks @anforowicz)
Vec<Box<T>> (#1681, thanks @anforowicz)Suppress a GCC 15 warning false-positive in generated C++ code
Fix spacing of enum variant static assertions
Incorporate version number into cxx-generated symbol names to enforce version parity between C++ and Rust code generators in non-Cargo builds (#1665,
Support using a generated Rust file as source file for bridge (#1668, thanks @phil-opp)
Update codespan-reporting dependency to 0.13 (#1662, #1661)
codespan-reporting dependency to 0.13 (#1662, #1661)Improve lifetime-related diagnostics (#1651, #1654)
Support std::vector of non-move-constructible element type
std::vector of non-move-constructible element type (#1646)Simplify implementation of Vec\ (#1640, thanks @anforowicz)
Fix _"expected a FnOnce() closure"_ build error on unsafe Rust fn with no args
Fix compiler warning when passing a rust::Fn with a generic return type such as Vec\ from Rust to C++
Fix _"cannot find attribute 'serde' in this scope"_ build error using Serde derives with #\[serde(…)\] on a shared struct
Fix _"Unable to resolve type 'str'"_ build error in C++ signatures containing &'static str in return type
Better support extern function signatures containing elided lifetimes
Fix macro redefinition warning when using -DRUST_CXX_NO_EXCEPTIONS in some compilers
-DRUST_CXX_NO_EXCEPTIONS in some compilers (#1616)#[derive(Default)] on enums (#1618)repr(C) Rust types that have methods implemented by C++ (#1620)Allow unpinned mutable reference for any Unpin type
Allow extern types to appear in Box and Vec
More precise handling of #\[cfg(…)\] attributes (#1598, #1599, #1604)
Disable -Wshadow-field-in-constructor and -Wdollar-in-identifier-extension in generated code (#1591, #1593)
Deprecate extern shared struct syntax in favor of ExternType impl (#1586) ```diff
+ use cxx::ExternType;
+
+ #[repr(C)]
+ pub struct Struct {
+ ...
+ }
+
+ unsafe impl ExternType for Struct {
+ type Id = cxx::type_id!("path::to::Struct");
+ type Kind = cxx::kind::Trivial;
+ }
+
#[cxx::bridge]
pub mod ffi {
- struct Struct {
- ...
- }
-
#[namespace = "path::to"]
- unsafe extern "C++" {
+ extern "C++" {
include!("...");
- type Struct;
+ type Struct = crate::Struct;
}
}
Improve panic location reported by SharedPtr::from_raw
Support shared ptr with not destructible T
Support older releases of Bazel Rust rules (#1577, thanks @spectraldoy)
Update foldhash dependency to 0.2
foldhash dependency to 0.2Add CxxVector::capacity and CxxVector::reserve (#1300, #1572, thanks @russelltg)
CxxVector::capacity and CxxVector::reserve (#1300, #1572, thanks @russelltg)Improve SharedPtr documentation
SharedPtr documentation (#1569)SharedPtr::from_raw and impl From<UniquePtr<T>> for SharedPtr<T> (#1005, #1568)SharedPtr::pin_mut_unchecked, SharedPtr::as_ptr, SharedPtr::as_mut_ptr (#1570)Support #\[repr(align(…))\] attribute on shared structs (#902, #1567, thanks @mxxo)
Recognize when exceptions are disabled (#1174, #1557, #1558)
Support associated functions and static member functions (#1546, #1547, #1548)
Strengthen static assertion generated with unique_ptr bindings (#1536, thanks @anforowicz)
unique_ptr<T> bindings (#1536, thanks @anforowicz)Set build.rs to rerun on changes to file containing bridge module (#1462, thanks @nyurik)
Delete #\[automatically_derived\] on impl blocks that are not trait impls
Recognize extern "Rust" fn main() as a special case that translates to int main
extern "Rust" fn main() as a special case that translates to int main (#1531)Add extern "C++-unwind" (#1529, thanks @Berrysoft)
extern "C++-unwind" (#1529, thanks @Berrysoft)Work around clippy reporting borrow_as_ptr lint inside generated code
Experiment with new Bazel Central Registry publication workflow (#1505, https://github.com/bazelbuild/bazel-central-registry/pull/4324)
Fix return-type-c-linkage warning in signatures that return a shared struct containing primitives
Zero-initialize primitive fields of shared structs in default constructor
Generate indirect placement for shared structs containing improper ctype
Factor out source tgz publication to a reusable workflow (#1492, https://github.com/dtolnay/.github/pull/4)
Nothing published for this version
Add explicit conversion operator from rust::Str to std::string_view (#1486, thanks @anforowicz)
rust::Str to std::string_view (#1486, thanks @anforowicz)Make source tars deterministic and reproducible
Fix incorrect symlinks in release tgz
Produce source archives for releases with stable checksum
Add strip\_prefix to unblock automated Bazel module publish (#1473, thanks @mortenmj)
Publish releases automatically to bazel-central-registry (#1467, thanks @UebelAndre)
One column per quarter.