Skip to content

Commit 442f005

Browse files
authored
Update wasm-tools/wasmtime dependencies (#823)
* Update wasm-tools/wasmtime dependencies Bring them all up to their latest * Fix some test code * More test fixes * Update wasi adapter
1 parent ce46cf4 commit 442f005

File tree

9 files changed

+147
-105
lines changed

9 files changed

+147
-105
lines changed

Cargo.lock

Lines changed: 138 additions & 91 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ clap = { version = "4.3.19", features = ["derive"] }
2828
env_logger = "0.10.0"
2929
indexmap = "2.0.0"
3030

31-
wasm-encoder = "0.39.0"
32-
wasm-metadata = "0.10.15"
31+
wasm-encoder = "0.40.0"
32+
wasm-metadata = "0.10.16"
3333
wit-parser = "0.13.1"
34-
wit-component = "0.19.1"
34+
wit-component = "0.20.0"
3535

3636
wit-bindgen-core = { path = 'crates/core', version = '0.16.0' }
3737
wit-bindgen-c = { path = 'crates/c', version = '0.16.0' }
@@ -78,8 +78,8 @@ csharp-mono = ['csharp']
7878

7979
[dev-dependencies]
8080
heck = { workspace = true }
81-
wasmtime = { git = "https://github.com/bytecodealliance/wasmtime", features = ['component-model'] }
82-
wasmtime-wasi = { git = "https://github.com/bytecodealliance/wasmtime"}
81+
wasmtime = { version = "17.0.0", features = ['component-model'] }
82+
wasmtime-wasi = { version = "17.0.0" }
8383
test-artifacts = { path = 'crates/test-rust-wasm/artifacts' }
8484
wit-parser = { workspace = true }
8585
wasmparser = "0.118.0"

crates/c/src/component_type_object.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ pub fn object(
4040
env!("CARGO_PKG_NAME"),
4141
env!("CARGO_PKG_VERSION"),
4242
);
43-
let data =
44-
wit_component::metadata::encode(resolve, world, encoding, Some(&producers), None).unwrap();
43+
let data = wit_component::metadata::encode(resolve, world, encoding, Some(&producers)).unwrap();
4544

4645
// The custom section name here must start with "component-type" but
4746
// otherwise is attempted to be unique here to ensure that this doesn't get

crates/csharp/src/component_type_object.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ pub fn object(resolve: &Resolve, world: WorldId, encoding: StringEncoding) -> Re
3232
env!("CARGO_PKG_NAME"),
3333
env!("CARGO_PKG_VERSION"),
3434
);
35-
let data =
36-
wit_component::metadata::encode(resolve, world, encoding, Some(&producers), None).unwrap();
35+
let data = wit_component::metadata::encode(resolve, world, encoding, Some(&producers)).unwrap();
3736

3837
// The custom section name here must start with "component-type" but
3938
// otherwise is attempted to be unique here to ensure that this doesn't get

crates/rust/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,6 @@ impl WorldGenerator for RustWasm {
488488
world,
489489
wit_component::StringEncoding::UTF8,
490490
Some(&producers),
491-
None,
492491
)
493492
.unwrap();
494493

crates/teavm-java/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ impl WorldGenerator for TeaVmJava {
218218
id,
219219
wit_component::StringEncoding::UTF8,
220220
Some(&producers),
221-
None,
222221
)
223222
.unwrap();
224223

crates/test-helpers/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ pub fn run_component_codegen_test(
9191
let world_name = &resolve.worlds[world].name;
9292
let mut wasm = wit_component::dummy_module(&resolve, world);
9393
let encoded =
94-
wit_component::metadata::encode(&resolve, world, StringEncoding::UTF8, None, None).unwrap();
94+
wit_component::metadata::encode(&resolve, world, StringEncoding::UTF8, None).unwrap();
9595
let section = wasm_encoder::CustomSection {
9696
name: std::borrow::Cow::Borrowed("component-type"),
9797
data: std::borrow::Cow::Borrowed(&encoded),

tests/runtime/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,7 @@ fn tests(name: &str, dir_name: &str) -> Result<Vec<PathBuf>> {
313313
// Translate the canonical ABI module into a component.
314314

315315
let mut module = fs::read(&out_wasm).expect("failed to read wasm file");
316-
let encoded =
317-
wit_component::metadata::encode(&resolve, world, StringEncoding::UTF8, None, None)?;
316+
let encoded = wit_component::metadata::encode(&resolve, world, StringEncoding::UTF8, None)?;
318317

319318
let section = wasm_encoder::CustomSection {
320319
name: Cow::Borrowed("component-type"),
-1.92 KB
Binary file not shown.

0 commit comments

Comments
 (0)