github dtolnay/cxx 1.0.27

latest releases: 1.0.128, 1.0.127, 1.0.126...
3 years ago
  • Implement lifetime elision for member function receivers (#660, #661)

    #[cxx::bridge]
    mod ffi {
        unsafe extern "C++" {
            type Object<'a>;
    
            fn f(self: &Object);  // elided lifetimes equivalent to `fn f<'a, 'b>(self: &'a Object<'b>)`
            fn g(self: Pin<&mut Object>);  // elided lifetimes equivalent to `fn g<'a, 'b>(self: Pin<&'a mut Object<'b>>)`
        }
    }
  • Support Vec<&str> type (#662)

  • Improve error messages when failing to parse an extern fn (#659)

Don't miss a new cxx release

NewReleases is sending notifications on new releases.