Crates.io | wit-bindgen-csharp |
lib.rs | wit-bindgen-csharp |
version | 0.36.0 |
source | src |
created_at | 2023-10-30 18:16:54.46058 |
updated_at | 2024-11-27 20:46:34.075449 |
description | C# bindings generator for WIT and the component model, typically used through the `wit-bindgen-cli` crate. |
homepage | https://github.com/bytecodealliance/wit-bindgen |
repository | https://github.com/bytecodealliance/wasi-rs |
max_upload_size | |
id | 1018956 |
size | 143,691 |
The following will generate the c# code given a wit file:
cargo run c-sharp --string-encoding utf8 --out-dir testing-csharp tests/codegen/floats.wit
To run the runtime tests with Native AOT, you need some additional set up
// install wasi-sdk and set env
curl.exe -L https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-22/wasi-sdk-22.0.m-mingw64.tar.gz | tar xzvf -
$env:WASI_SDK_PATH="c:\users\jstur\wasi-sdk-22.0+m\"