forked from bytecodealliance/wit-bindgen
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/bytecodealliance/wit-bindgen
- Loading branch information
Showing
7 changed files
with
43 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
// generate the c# and the component meta module | ||
## generate the c# and the component module | ||
|
||
cargo run c-sharp --string-encoding utf8 --out-dir testing-csharp tests/codegen/floats.wit | ||
The following will generate the c# code given a wit file: | ||
|
||
// to run the runtime tests with Native AOT, you need some additional set up | ||
```bash | ||
cargo run c-sharp --string-encoding utf8 --out-dir testing-csharp tests/codegen/floats.wit | ||
``` | ||
|
||
// install emscripten | ||
curl.exe -OL https://github.com/emscripten-core/emsdk/archive/refs/heads/main.zip | ||
unzip main.zip | ||
cd .\emsdk-main\main\emsdk-main | ||
.\emsdk_env.ps1 activate 3.1.23 --permanant | ||
## Setup | ||
To run the runtime tests with Native AOT, you need some additional set up | ||
|
||
```bash | ||
// install wasi-sdk and set env | ||
curl.exe -L https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-20/wasi-sdk-20.0.m-mingw.tar.gz | tar xzvf - | ||
$env:WASI_SDK_PATH="c:\users\jstur\wasi-sdk-20.0+m\" | ||
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\" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters