railroad
railroad copied to clipboard
Use railroad in C#
Hi I'd like to use railroad
in a c# .net application.
I plan to use https://docs.rs/rnet/latest/rnet/
for getting that done.
As per rnet docs, I need to
- Add rnet::root!(); to your crate.
- Use #[derive(Net)] on any structs to be shared with .net.
- Apply the #[net] attribute to any standalone functions which should be callable from .net.
- Build your rust project as a cdylib.
- Generate C# bindings for your project:
Could you kindly let me know regarding the first 3 steps, which struct do I need to put #[derive(Net)]
tag on and do you expose any standalone functions so i can put the #[net]
attribute on them?