Skip to content

Commit d3c7a34

Browse files
authored
Update witx to 0.9 (#59)
* Update witx to 0.9 This pulls in the new `witx` 0.9 crate which notably includes WebAssembly/WASI#395. This is a large refactoring of how witx signatures are processed and a large update to the actual syntax of the witx ABIs themselves. This commit adjusts to all the new `witx` APIs and also tweaks idioms in a few locations as well. Code generation is now less custom to Rust and instead tries to match almost exactly what the `witx` crate tells us to generate. Additionally the representation of types is chosen to more closely align with interface types in the future where it's impossible to pass invalid values to the outside world. Notable changes here are: * `enum`-like values are now newtype wrappers around integers to prevent invalid values from flowing out. * Error traits are now implement directly for the `Errno` wrapper. * The module containing the raw functions now exclusively uses i32/i64 types and doesn't try to use convenience types in Rust. * Update submodule management * Fix no-std-compat * Fix wasi-ephemeral * Regenerate lib_generated * Update to main branch * Update manifest directives
1 parent ad108be commit d3c7a34

File tree

9 files changed

+1731
-1216
lines changed

9 files changed

+1731
-1216
lines changed

crates/wasi-ephemeral/src/error.rs

Lines changed: 0 additions & 1 deletion
This file was deleted.

crates/wasi-ephemeral/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,4 @@
2828
2929
#![no_std]
3030

31-
mod error;
32-
3331
include!(concat!(env!("OUT_DIR"), "/lib_generated.rs"));

crates/witx-bindgen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repository = "https://github.com/bytecodealliance/wasi/tree/main/crates/witx-bin
99

1010
[dependencies]
1111
heck = "0.3"
12-
witx = { path = "WASI/tools/witx", version = "0.8.8" }
12+
witx = { version = "0.9", path = "WASI/tools/witx" }
1313
cfg-if = "0.1"
1414

1515
[features]

crates/witx-bindgen/WASI

Submodule WASI updated 68 files

0 commit comments

Comments
 (0)