uniffi-rs
uniffi-rs copied to clipboard
static method support
It seems that, uniffi-rs does not to support static method/associated function yet.
┆Issue is synchronized with this Jira Task ┆Issue Number: UNIFFI-100
Hey, is there a consensus on this from the maintainers? I’d be willing to look into this.
I don't know if any of the maintainers have thought this through as the need hasn't come up in our use-cases. I suspect the answer will depend on the implementation - ie, how much complexity/overhead it adds vs the current scenario of just using namespace functions.
Given that constructors are implemented through class/static/whatever methods and that Web IDL does have a concept of static operations, maybe there wouldn’t be a lot of novel code.
I vote for this. It would be great if I could use #[uniffi::export] attribute on static methods.