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

Support interface types as enum variant fields

Open jplatte opened this issue 3 years ago • 3 comments

It would be nice if I could use an interface (object) type as a field of an enum variant. Currently, this failes with:

thread 'main' panicked at 'Building the UDL file failed: Failed to parse UDL

Caused by:
    Objects cannot currently be used in enum variant data', my-crate/build.rs:2:57

┆Issue is synchronized with this Jira Task ┆friendlyId: UNIFFI-205

jplatte avatar Oct 17 '22 11:10 jplatte

I faced the same issue, is it something planned to be supported ? could I help on it ?

QuentinPerez avatar Mar 15 '23 12:03 QuentinPerez

I don't think anyone plans on working on this, but we'd certainly look at a PR!

mhammond avatar Mar 15 '23 22:03 mhammond

Is there anything new on this?

henriquecocito avatar Sep 26 '23 20:09 henriquecocito