Skip to content

Commit 912ca77

Browse files
authored
Update wasm-tools deps (#115)
1 parent 9880ba1 commit 912ca77

3 files changed

Lines changed: 20 additions & 23 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ clap = { version = "4.6.1", features = ['derive'] }
2929
clap_lex = "1.1.0"
3030
lexopt = "0.3.2"
3131
tempfile = "3.23.0"
32-
wasmparser = "0.255.0"
33-
wat = "1.255.0"
34-
wit-component = "0.255.0"
35-
wit-parser = "0.255.0"
32+
wasmparser = "0.256.0"
33+
wat = "1.256.0"
34+
wit-component = "0.256.0"
35+
wit-parser = "0.256.0"
3636
wasi-preview1-component-adapter-provider = "46.0.1"
3737

3838
[target.'cfg(unix)'.dependencies]

tests/all.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ impl Project {
2727
}
2828

2929
fn try_compile(&self, args: &[&str], src: &str, inherit_stderr: bool) -> Result<Vec<u8>> {
30-
let mut myself = env::current_exe().unwrap();
31-
myself.pop(); // exe name
32-
myself.pop(); // 'deps'
33-
myself.push("wasm-component-ld");
30+
let myself = env!("CARGO_BIN_EXE_wasm-component-ld");
3431
let mut rustc = Command::new("rustc");
3532
rustc
3633
.arg("--target")
@@ -39,7 +36,7 @@ impl Project {
3936
.arg("-o")
4037
.arg("-")
4138
.arg("-C")
42-
.arg(&format!("linker={}", myself.to_str().unwrap()))
39+
.arg(&format!("linker={myself}"))
4340
.args(args)
4441
.stdin(Stdio::piped())
4542
.stdout(Stdio::piped())

0 commit comments

Comments
 (0)