Open mercurial-moon opened 3 weeks ago
You cannot expose generics through rnet (or indeed any Rust <=> non-Rust interop mechanism) since Rust generics must be instantiated with known types are compile time, whereas in .net, generics are instantiated at runtime.
Is there any workaround or alternative way where I can get this done, I researched around and people suggested using macros to create wrapper functions. Like here https://stackoverflow.com/questions/77742660/how-can-i-export-a-generic-rust-function-to-a-c-header
Hi I'm trying to use rnet for this library https://github.com/lukaslueg/railroad which makes heavy use of generics when I add the
Net
tag to a struct like soit gives error like