Crates.io | rnet |
lib.rs | rnet |
version | 0.3.1 |
source | src |
created_at | 2021-11-09 00:18:39.878957 |
updated_at | 2023-11-15 23:58:13.323798 |
description | Easily call into Rust from C# or other .net langauges. |
homepage | |
repository | https://github.com/Diggsey/rnet |
max_upload_size | |
id | 478690 |
size | 55,929 |
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.