Expand description
Host the .NET runtime in a Rust process and call into managed code.
Two backends are available behind features:
coreclr(default): .NET 8+, loadinglibcoreclrdirectly.mono: the Mono embedding API, as used by Unity.
Managed methods are called through native function pointers, so the
methods have to be callable from native code: [UnmanagedCallersOnly]
static methods on CoreCLR, or any static method on Mono. Bindings generated
by hao-runtime-macros produce such methods for you.
Re-exports§
pub use bindings::BoundAssembly;pub use bindings::Object;
Modules§
- bindings
- Support code for bindings generated by
hao-runtime-macros.
Structs§
- Core
ClrOptions - Where to find .NET and which framework version to run.
- Runtime
- A handle to a running .NET runtime. Cheap to clone.