Skip to content

Releases: dtolnay/cxx

1.0.46

20 Apr 17:12
1.0.46
2c76dd6
Compare
Choose a tag to compare
  • Fix some Clippy lint warnings appearing in generated code (#843, #844)

1.0.45

16 Apr 23:04
1.0.45
43fe4b5
Compare
Choose a tag to compare
  • Add push and pop functionality to CxxVector in Rust (#778)

1.0.44

14 Apr 04:03
1.0.44
64918b1
Compare
Choose a tag to compare
  • Fix placement of C++ documentation comments on member functions of shared types and extern Rust types (#829)
  • Support inner attributes, like #![deny(missing_docs)], inside FFI module (#833)

1.0.43

11 Apr 17:48
1.0.43
064cf12
Compare
Choose a tag to compare
  • Fix noncompilable call operator for rust::Fn with a non-const reference argument (#738)
  • Fix noncompilable Rust code relating to function pointers with Rust lifetimes in the argument types (#739)
  • Add diagnostic for invalid use of 'static as a lifetime parameter name (#811)

1.0.42

02 Apr 05:35
1.0.42
348b6f2
Compare
Choose a tag to compare
  • Improve error message placement from cxx-build or cxxbridge CLI for files that fail to lex (#801, dtolnay/proc-macro2#283, dtolnay/syn#1006)
  • Fix non-compilable Rust code generated for unique ptrs containing C++ type with lifetime that is elided (#805)

1.0.41

30 Mar 22:21
1.0.41
c1d9d87
Compare
Choose a tag to compare
  • Detect unsound signatures involving mutable slices in C++ function return position (#794)
  • Fix noncompilable Rust code generated for pinned mutable reference to extern type alias in return position (#799)

1.0.40

28 Mar 08:27
1.0.40
fdbb2f8
Compare
Choose a tag to compare
  • Permit C++ to safely construct an empty Rust slice using a null data pointer (#789)
  • Debug assert that nonempty slices are not constructed with a null data ptr from C++ (#788)
  • Fix a missing stdexcept #include for code containing Rust slices or vectors (#791)

1.0.39

27 Mar 06:18
1.0.39
63ad1c4
Compare
Choose a tag to compare
  • Improve diagnostic placement for compile errors inside of implicitly generated shim trait impls (#786)

1.0.38

27 Mar 05:56
1.0.38
6d3ea1f
Compare
Choose a tag to compare
  • Support reference return type on a fallible extern "Rust" function (#782)
  • Fix non-compilable code generated in the case of arguments of pinned reference type pointing to an extern type alias (#785)

1.0.37

26 Mar 22:26
1.0.37
04955f4
Compare
Choose a tag to compare
  • Relax some restrictions on references in return position of functions with explicit lifetime annotations (#763, #764, #765)
  • Fix non-compilable generated code when using a shared type containing String across multiple ffi modules (#771)
  • Fix an unused variable warning in generated code when using Vec or String other than in a function argument position (#772)