Skip to content

Releases: dtolnay/cxx

1.0.174

01 Sep 20:57
1.0.174
48e27b3

Choose a tag to compare

  • Disable -Wshadow-field-in-constructor and -Wdollar-in-identifier-extension in generated code (#1591, #1593)

1.0.173

29 Aug 16:47
1.0.173
4833545

Choose a tag to compare

  • Allow static associated functions with the same name on different Self types (#1585)
  • Deprecate extern shared struct syntax in favor of ExternType impl (#1586)
    + 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;
          }
      }

1.0.172

29 Aug 15:23
1.0.172
e6a5a02

Choose a tag to compare

  • Improve panic location reported by SharedPtr::from_raw (#1581)
  • Support UniquePtr and SharedPtr with array types (#1582)

1.0.171

29 Aug 03:29
1.0.171
f0392d4

Choose a tag to compare

  • Support shared ptr with not destructible T (#1579)

1.0.170

27 Aug 06:09
1.0.170
26ded93

Choose a tag to compare

1.0.169

25 Aug 18:54
1.0.169
c37fbd8

Choose a tag to compare

  • Update foldhash dependency to 0.2

1.0.168

10 Aug 04:15
1.0.168
41ec56f

Choose a tag to compare

1.0.167

10 Aug 02:58
1.0.167
8921071

Choose a tag to compare

  • Improve SharedPtr documentation (#1569)
  • Add SharedPtr::from_raw and impl From<UniquePtr<T>> for SharedPtr<T> (#1005, #1568)
  • Add SharedPtr::pin_mut_unchecked, SharedPtr::as_ptr, SharedPtr::as_mut_ptr (#1570)

1.0.166

09 Aug 19:40
1.0.166
e9c8c0c

Choose a tag to compare

  • Support #[repr(align(…))] attribute on shared structs (#902, #1567, thanks @mxxo)

1.0.165

08 Aug 01:18
1.0.165
1a96981

Choose a tag to compare