Skip to content

Releases: dtolnay/cxx

0.4.3

07 Sep 07:06
0.4.3
430b5de

Choose a tag to compare

  • Support working with a C++ namespace that contains Rust reserved words in the namespace path (#286)

0.4.2

02 Sep 22:59
0.4.2
e0b6c73

Choose a tag to compare

  • Fix missing definitions in generated code involving Vec (#277)
  • Accept - as referring to stdin in the command line code generator (#278)

0.4.1

02 Sep 18:52
0.4.1
8745f7f

Choose a tag to compare

  • Fix out-of-date generated code being pulled into Cargo builds

0.4.0

02 Sep 06:16
0.4.0
5f3fb89

Choose a tag to compare

  • Fix various sources of brittleness in the Cargo-based workflow (#88, #213)

  • Breaking change: the default #include path set up for your build by cxx_build::bridge now contains the crate name as the first component of paths. So if your crate name is my-crate and cxx_build::bridge is invoked with "src/lib.rs" as the local path, the resulting generated header would be includable from C++ as #include "my-crate/src/lib.rs.h". Headers from dependencies are now also available exactly the same way: their crate name followed by local path within the crate.

0.3.9

02 Sep 06:09
0.3.9
bcc0a1c

Choose a tag to compare

  • Update documentation to reflect new path of demo crate in the repo

0.3.8

01 Sep 19:43
0.3.8
9f1e3d7

Choose a tag to compare

  • Improve reporting of i/o errors from C++ code generator
  • Set cxx_build::bridges as must_use

0.3.7

30 Aug 19:16
0.3.7
9075cdc

Choose a tag to compare

  • Support function signatures that involve Vec<T> where T is an extern C-style enum

0.3.6

29 Aug 00:00
0.3.6
907debe

Choose a tag to compare

0.3.5

27 Aug 08:46
0.3.5
f7a592b

Choose a tag to compare

  • Add rust::Str and rust::String constructors taking const char * + size_t (#242)
  • Add rust::Vec accessors: operator[], at, front, back (#257, thanks @rinon)
  • Fix no matching function for call to 'operator new' error (#238)
  • Support controlling shared object symbol visibility (#231, #219, thanks @adetaylor)
  • Prevent duplicate definitions if generated .cc were to include generated .h via intermediate includes (#247, thanks @adetaylor)
  • Fix ineffective use of #pragma once (#246)
  • Cut 7 dependencies from cxxbridge-cmd (#245)
  • Fix noncompilable code generated for arguments of type &mut Vec<T> (#263)

0.3.4

22 May 18:21
0.3.4
57d3c68

Choose a tag to compare

  • Fix noncompilable C++ code generated for an extern C++ member function with no args and a Result return type (#210, thanks @myronahn)
  • Add noexcept to some rust::Slice<T> and rust::Vec<T> member functions