NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io, #1069 most downloaded on crates.io
Safe interop between Rust and C++
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
4 versions withdrawn
withdrawn after publishing
7 years old
252 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
Update bzlmod to support Bazel 8 (#1466, thanks @UebelAndre)
Handle cfg attributes on type aliases (#1464, thanks @ahayzen-kdab)
cfg attributes on type aliases (#1464, thanks @ahayzen-kdab)New trait impls for UniquePtr: Seek, PartialEq, Eq, PartialOrd, Ord, Hash (#1454, #1455, #1446, #1456)
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Add template deduction guide for rust::Slice constructor (#1449, thanks @JonathonReinhart)
Fix missing #include (#1442, #1443, thanks @atetubou)
#include <ranges> (#1442, #1443, thanks @atetubou)Add rust::String(const char8_t *) and rust::String(const char8_t *, size_t) constructors (#1437, thanks @anforowicz)
rust::String(const char8_t *) and rust::String(const char8_t *, size_t) constructors (#1437, thanks @anforowicz)operator+(ptrdiff_t, Slice<T>::iterator) to be noexcept (#1440)Make rust::Slice satisfy C++20 contiguous_range concept (#1432, thanks @anforowicz)
rust::Slice satisfy C++20 contiguous_range concept (#1432, thanks @anforowicz)Add method to convert from &CxxString to &CStr (#1431, thanks @nyurik)
&CxxString to &CStr (#1431, thanks @nyurik)Update Bazel rules_cc dependency (#1422, thanks @wep21)
Add UniquePtr::as_ptr and UniquePtr::as_mut_ptr (#892, thanks @adetaylor)
UniquePtr::as_ptr and UniquePtr::as_mut_ptr (#892, thanks @adetaylor)rust_cxx_bridge (#1416, thanks @wmatthews-google)Friendlier message when cxx::CxxString is used in a #[cxx::bridge] (#1414, thanks @anforowicz)
cxx::CxxString is used in a #[cxx::bridge] (#1414, thanks @anforowicz)unused_unsafe warnings within the generated code (#1415, thanks @anforowicz)Mark all generated impl blocks with #\[automatically_derived\] to exclude from required test coverage
Move cxxbridge-cmd from dependencies to build-dependencies
Add a matching version of cxxbridge-cmd into any lockfile that contains cxx, to facilitate non-Cargo builds
Implement std::Write for cxx::UniquePtr with a forwarding impl (#1405, thanks @anforowicz)
Make #[cxx::bridge] generated code compatible with Rust 2024 edition crates
#[cxx::bridge] generated code compatible with Rust 2024 edition crates (#1395)Fix _"expected square brackets"_ error in modules containing inner attributes
Allow passing C++ types by reference into panic::catch_unwind
panic::catch_unwind (#1372)Fix opaque C++ types triggering UB when optimized by LTO
Implement std::Read for cxx::UniquePtr with a forwarding impl (#1368, thanks @anforowicz)
Allow constructing rust::Slice from a C++ contiguous container (#1367, thanks @anforowicz)
rust::Slice from a C++ contiguous container (#1367, thanks @anforowicz)Provide no-std Error impl for cxx::Exception
Support platforms on which C char is the same type as either of uint8_t or int8_t, e.g. illumos, as opposed to some third type of its own (#1353, than
char is the same type as either of uint8_t or int8_t, e.g. illumos, as opposed to some third type of its own (#1353, thanks @luqmana)Resolve unexpected_cfgs warning
Expose cfg evaluation in cxx-gen crate (#1334, thanks @ahayzen-kdab)
Ensure platform-specific behavior of c_char remains consistent with libcore's definition in no-std mode by using core::c_char, rather than a redefinit
c_char remains consistent with libcore's definition in no-std mode by using core::ffi::c_char, rather than a redefinition that is only checked against std::os::raw::c_char in std mode (#1330)Use and recommend new std method from the cc crate for controlling C++ standard library version (#1321, #1322, thanks @dcoles)
std method from the cc crate for controlling C++ standard library version (#1321, #1322, thanks @dcoles)Fix "out-of-line definition does not match any declaration" error affecting Rust shared types with methods (#1320, thanks @phil-opp)
Fix unused_imports warnings when compiled by rustc 1.78
Fix ref_as_ptr clippy lint being triggered within generated code
ref_as_ptr clippy lint being triggered within generated codeWork around some dead_code warnings
dead_code warnings (#1303)Documentation improvements (thanks @adamchalmers)
Update proc-macro2 to fix caching issue when using a rustc-wrapper such as sccache
Nothing published for this version
Avoid a new pedantic clippy lint from being triggered inside generated code
Prevent unsafe_op_in_unsafe_fn opt-in lint from being triggered inside generated code
unsafe_op_in_unsafe_fn opt-in lint from being triggered inside generated code (#1281)Wire up cxx.cc dependency automatically for bazel builds (#1277, thanks @illicitonion)
Support running cxx's build script from outside of cxx's manifest directory (#1275, thanks @illicitonion)
Add CxxVector::new for creating an empty vector (#1262, thanks @capickett)
CxxVector::new for creating an empty vector (#1262, thanks @capickett)Fix _"No such file or directory"_ error when building using --target-dir with a directory path that contains symlinks
--target-dir with a directory path that contains symlinks (#1260)Add experimental Bazel annotations in package metadata
Fix "failed to copy cxx.h" errors during Cargo build script execution on Windows
Prefer relative paths in symlinks where possible to make target directories relocatable (#1250, #1251, thanks @j-baker)
target directories relocatable (#1250, #1251, thanks @j-baker)Nothing published for this version
Fix clippy::incorrect_partial_ord_impl_on_ord_type lint getting triggered inside of cxx::bridge's macro-generated code
Prevent items_after_statements pedantic clippy lint from triggering inside generated code
Remove usage of std::cerr to reduce binary size (#1240, thanks @yujincheng08)
Nothing published for this version
Fix MSVC warning about implicit integer conversion of size_t and rust::Slice<T>::difference_type (#1228, thanks @wravery)
Fix MSVC warning about size_t/std::streamsize signedness mismatch in operator<< overloads (#1225, #1226, thanks @wravery)
Expose span() on cxx-gen's Error type (#1214, thanks @LeonMatthesKDAB)
Implement fmt::Write and io::Write for CxxString (#1202, thanks @parasyte)
fmt::Write and io::Write for CxxString (#1202, thanks @parasyte)- Update syn dependency to 2.x
Set html_root_url attribute for cxx-build and cxx-gen libraries
Exclude buck2 prelude submodule from getting inlined into the published crate
Prevent new clippy lint extra_unused_type_parameters from triggering inside generated code
Prevent various pedantic lints from being triggered inside generated code
Fix memory leak in move assignment operator of rust::Error class (#1167, thanks @umogSlayer)
Improve Debug representation of CxxString
Support #\[cxx_name = "…"\] containing name that is a Rust keyword
One column per quarter.