Releases: dtolnay/cxx
Releases · dtolnay/cxx
1.0.56
1.0.55
1.0.54
-
Enable C++ to reserve and read capacity on a
rust::String
(#924) -
Enable Rust to reserve capacity on a
CxxString
(#925)This is important in APIs that connect
bytes
-based code in Rust tostd::string
-based code in C++.use bytes::Buf; use cxx::let_cxx_string; fn thing(buf: &mut dyn Buf) { let_cxx_string!(string = ""); // handled by helper: string.as_mut().reserve(buf.remaining()); while buf.remaining() > 0 { let chunk = buf.chunk(); string.as_mut().push_bytes(chunk); buf.advance(chunk.len()); } ffi::thing(string); } // ffi::thing: // void thing(std::string& s) { // WriteMessage msg{std::move(s)}; // ... // }
1.0.53
1.0.52
1.0.51
1.0.50
1.0.49
1.0.48
1.0.47
- Some experimental changes related to ingesting Clang ASTs to glean information about enum variant names and discriminant values for which C++ is the source of truth; no public user-facing change yet in this release — to be announced a little bit later (#847)