Skip to content

Commit e067c16

Browse files
authored
Update wasm-tools crates (#1117)
* Update wasm-tools crates Bringing then up-to-date with latest * Fix compile of tests
1 parent 3f6096b commit e067c16

File tree

4 files changed

+53
-53
lines changed

4 files changed

+53
-53
lines changed

Cargo.lock

Lines changed: 34 additions & 34 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
@@ -33,11 +33,11 @@ prettyplease = "0.2.20"
3333
syn = { version = "2.0.89", features = ["printing"] }
3434
futures = "0.3.31"
3535

36-
wasmparser = "0.222.0"
37-
wasm-encoder = "0.222.0"
38-
wasm-metadata = "0.222.0"
39-
wit-parser = "0.222.0"
40-
wit-component = "0.222.0"
36+
wasmparser = "0.223.0"
37+
wasm-encoder = "0.223.0"
38+
wasm-metadata = "0.223.0"
39+
wit-parser = "0.223.0"
40+
wit-component = "0.223.0"
4141

4242
wit-bindgen-core = { path = 'crates/core', version = '0.36.0' }
4343
wit-bindgen-c = { path = 'crates/c', version = '0.36.0' }

crates/csharp/src/world_generator.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -702,20 +702,20 @@ impl WorldGenerator for CSharp {
702702
)?)?;
703703
let pkg = resolve.worlds[world].package.unwrap();
704704

705+
let mut printer = WitPrinter::default();
706+
printer.emit_docs(false);
707+
printer.print(
708+
&resolve,
709+
pkg,
710+
&resolve
711+
.packages
712+
.iter()
713+
.filter_map(|(id, _)| if id == pkg { None } else { Some(id) })
714+
.collect::<Vec<_>>(),
715+
)?;
705716
files.push(
706717
&format!("{world_namespace}_component_type.wit"),
707-
WitPrinter::default()
708-
.emit_docs(false)
709-
.print(
710-
&resolve,
711-
pkg,
712-
&resolve
713-
.packages
714-
.iter()
715-
.filter_map(|(id, _)| if id == pkg { None } else { Some(id) })
716-
.collect::<Vec<_>>(),
717-
)?
718-
.as_bytes(),
718+
String::from(printer.output).as_bytes(),
719719
);
720720
}
721721

crates/test-helpers/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::process::Command;
66
use wasm_encoder::{Encode, Section};
77
use wit_bindgen_core::Files;
88
use wit_component::StringEncoding;
9-
use wit_parser::{Mangling, Resolve, WorldId};
9+
use wit_parser::{ManglingAndAbi, Resolve, WorldId};
1010

1111
/// Returns a suitable directory to place output for tests within.
1212
///
@@ -97,7 +97,7 @@ pub fn run_component_codegen_test(
9797
) {
9898
let (resolve, world) = parse_wit(wit_path);
9999
let world_name = &resolve.worlds[world].name;
100-
let mut wasm = wit_component::dummy_module(&resolve, world, Mangling::Standard32);
100+
let mut wasm = wit_component::dummy_module(&resolve, world, ManglingAndAbi::Standard32);
101101
let encoded =
102102
wit_component::metadata::encode(&resolve, world, StringEncoding::UTF8, None).unwrap();
103103
let section = wasm_encoder::CustomSection {

0 commit comments

Comments
 (0)