wit-bindgen-csharp

Crates.iowit-bindgen-csharp
lib.rswit-bindgen-csharp
version
sourcesrc
created_at2023-10-30 18:16:54.46058
updated_at2025-01-10 17:26:56.834262
descriptionC# bindings generator for WIT and the component model, typically used through the `wit-bindgen-cli` crate.
homepagehttps://github.com/bytecodealliance/wit-bindgen
repositoryhttps://github.com/bytecodealliance/wasi-rs
max_upload_size
id1018956
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
wasmtime-publish (github:bytecodealliance:wasmtime-publish)

documentation

README

generate the c# and the component module

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

Setup

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\"
Commit count: 106

cargo fmt