uniffi-rs icon indicating copy to clipboard operation
uniffi-rs copied to clipboard

`#[derive(uniffi::Record)]` should support `#[uniffi::skip]` attribute to skip fields

Open oriongonza opened this issue 9 months ago • 3 comments

Right now the only way to pass the struct through uniffi with different fields is to create a "close but not quite" struct with the missing fields.

Serde has lots of custom attributes to control deserialization, uniffi could support a few of those. #[uniffi::skip] is almost trivial to implement.

This doesn't make much sense for Object or Enum, though.

oriongonza avatar Jan 16 '25 10:01 oriongonza