Open jowparks opened 1 year ago
@jowparks It's not possible for the derived macro, for now, I can only access the AST in the Rust code via #[napi]
, like pub use bip39::Language as Language;
in your example, but I don't know what bip39::Language
is in the compile time.
Or can we generate the convert function so we don't have to write the boilerplate code?
Ideally I would like to reexport an enum like so:
Currently I have to recreate the enum(along with a From<> conversion) in order to use that enum in my exported NAPI bindings: