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

UDL can't have a `Remote` enums with fields

Open mhammond opened this issue 11 months ago • 1 comments
trafficstars

Eg, a simple enum: https://github.com/mozilla/uniffi-rs/blob/4cbb8f10a1e8171d0b36114f126cb0abeea0f59a/fixtures/ext-types/lib/src/ext-types-lib.udl#L71-L75

If we had an enum with fields, we'd need an [Enum, Remote] interface {... }, but that would fail - https://github.com/mozilla/uniffi-rs/blob/aa200a689aa2fca77f8d4b73051c98cdeaecce3c/uniffi_udl/src/attributes.rs#L458

via #2334

mhammond avatar Dec 13 '24 02:12 mhammond