Skip to content

0.1.53

Compare
Choose a tag to compare
@chinedufn chinedufn released this 26 Mar 00:39
· 25 commits to master since this release
04e6abf
  • Add support for bridging Option<&OpaqueRustType> in extern "Rust" modules. #257 (thanks @PrismaPhonic)

    #[swift_bridge::bridge]
    mod ffi {
      extern "Rust" {
        type MyRustType;
    
        fn my_func(arg: Option<&MyRustType>) -> Option<&MyRustType>;
      }
    }
  • Add support for bridging Option<String> in extern "Swift" args/returns and Option<&str> in extern "Swift" args. #264

    #[swift_bridge::bridge]
    mod ffi {
        extern "Swift" {
            fn opt_string_function(arg: Option<String>) -> Option<String>;
    
            fn opt_str_function(arg: Option<&str>);
        }
    }
  • Improve error message when reporting an unsupported attribute #244 (thanks @bes)