uniffi-rs
d1663605 - Mark record fields as `public` in Swift bindings.

Commit
4 years ago
Mark record fields as `public` in Swift bindings. Swift struct fields default to `internal` visibility, loosly analogous to Rust's `pub(crate)`. That's clearly enough for them to work fine in our tests, but when I tried out using these across Swift module boundaries, I got errors about being able to access to fields. Since the whole point of record types is to make structured data available, I think it makes sense for their fields to be marked public.
Author
rfk rfk
Committer
rfk rfk
Parents
Loading