Crates.io | rnet-gen |
lib.rs | rnet-gen |
version | 0.3.1 |
source | src |
created_at | 2021-11-09 00:19:40.835725 |
updated_at | 2023-11-15 23:58:57.693771 |
description | Generator for rnet. |
homepage | |
repository | https://github.com/Diggsey/rnet |
max_upload_size | |
id | 478691 |
size | 34,008 |
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.