You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apply input module visibility to output module (#284)
This commit makes `#[swift_bridge::bridge]` respect the bridge module's visibility.
Here's an example of using this.
```rust
// enums.rs
// NOTE that we can now use `pub mod`, `pub(crate) mod`, etc
#[swift_bridge::bridge]
pub mod ffi {
enum MyEnum {
VariantA,
VariantB,
VariantC,
}
}
// lib.rs
mod enums;
use enums::ffi::MyEnum;
#[swift_bridge::bridge]
mod ffi {
#[swift_bridge(already_declared)]
enum MyEnum {}
extern "Rust" {
fn getEnum() -> MyEnum;
}
}
```
Closes#252.
0 commit comments