0.1.53
-
Add support for bridging
Option<&OpaqueRustType>
inextern "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>
inextern "Swift"
args/returns andOption<&str>
inextern "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)