Skip to content

0.1.55

Latest
Compare
Choose a tag to compare
@chinedufn chinedufn released this 29 Apr 03:20
· 1 commit to master since this release
87dbea3
  • Fix memory leak when passing Option<SwiftType> from Swift to Rust. #273
    • It is very unlikely that users were impacted by this leak Option<SwiftType> support was introduced about 10 hours ago
    • Full explanation of the leak can be found in 87dbea3
    #[swift_bridge::bridge]
    mod ffi {
        extern "Swift" {
            type SomeSwiftType;
        }
    
        extern "Rust" {
            // Calling with would leak memory in "0.1.54".
            // This no longer leaks as of "0.1.55".
            fn option_arg(arg: Option<SomeSwiftType>);
        }
    }