-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update WASI bindings to 0.2.0 and the component model (#72)
* Remove old wasi-ephemeral/witx-bindgen crates * Copy WIT files from Wasmtime * Update to WASI 0.2.0 bindings * Update some manifest fields * Add a small example * CI tweaks * Install wit-bindgen on CI * Specify versions of wasmtime/wasm-tools on CI * Fix wit-bindgen-cli install * Flag wit/deps as generated as well * Fix yml syntax * Fix wasmtime tag * Update README
- Loading branch information
1 parent
9ec04a7
commit d2ba9f4
Showing
54 changed files
with
19,156 additions
and
3,385 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This is generated by `wit-bindgen` | ||
src/bindings.rs linguist-generated=true | ||
|
||
# This is copied from other repos so diffs aren't super interesting by default | ||
wit/deps linguist-generated=true |
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,3 +0,0 @@ | ||
[submodule "crates/witx-bindgen/WASI"] | ||
path = crates/witx-bindgen/WASI | ||
url = https://github.com/WebAssembly/WASI | ||
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
|
||
set -ex | ||
|
||
wit-bindgen rust wit --out-dir src --std-feature | ||
|
||
# rustfmt chokes on the raw output of wit-bindgen right now due to trailling | ||
# whitespace (unsure as to why), so format it with some options first to get it | ||
# into a better state before applying the final format with default options | ||
# which gets this to succeed. | ||
# | ||
# NB: this should be considered a bug in wit-bindgen that this is required to do | ||
# twice. Passing `--rustfmt` to `wit-bindgen` should work. | ||
rustfmt src/bindings.rs --edition 2021 --config-path ./ci/rustfmt-bindings.toml | ||
rustfmt src/bindings.rs --edition 2021 |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
max_width = 100 | ||
tab_spaces = 2 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Submodule WASI
deleted from
0ba0c5
Oops, something went wrong.