| Crates.io | rnet-macros |
| lib.rs | rnet-macros |
| version | 0.3.1 |
| created_at | 2021-11-09 00:17:49.219292+00 |
| updated_at | 2023-11-15 23:57:32.623772+00 |
| description | Macros for rnet. |
| homepage | |
| repository | https://github.com/Diggsey/rnet |
| max_upload_size | |
| id | 478689 |
| size | 12,184 |
Easily call into Rust from C# or other .net langauges.
rnet::root!(); to your crate.#[derive(Net)] on any structs to be shared with .net.#[net] attribute to any standalone functions
which should be callable from .net.cdylib.cargo install rnet-gen
rnet-gen "<path to .dll/.so/.dylib>" > "<path to generated file.cs>"
For languages other than C#, you'll need to build the exported C# file into its own class library, and then add a reference to that from a project of any .net language.