Is it possible to add any type to the component model, corresponding to anyref (non-nullable) in wasm.
Motivation
I wrote a language and I want to import a generic library from rust. There are two implementations of generics, namely monomorphism and boxing.
My current choice is manual monomorphism and exporting multiple generic versions, which does not have good scalability.
If the any type can be supported, then all generic parameters can be boxed to any, so that rust generics can be imported through ffi.
Is it possible to add any type to the component model, corresponding to anyref (non-nullable) in wasm.
Motivation
I wrote a language and I want to import a generic library from rust. There are two implementations of generics, namely monomorphism and boxing.
My current choice is manual monomorphism and exporting multiple generic versions, which does not have good scalability.
If the any type can be supported, then all generic parameters can be boxed to any, so that rust generics can be imported through ffi.