Skip to content

Commit

Permalink
Update Wasmtime/tooling dependencies (#14)
Browse files Browse the repository at this point in the history
This forces all the `*.wit.md` file to go into one large `*.wit` file
for now which will get split up later once `use` is re-introduced.
  • Loading branch information
alexcrichton authored Dec 1, 2022
1 parent a631f98 commit c9d42fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
9 changes: 1 addition & 8 deletions host/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,7 @@ mod table;
pub use table::Table;

wit_bindgen_host_wasmtime_rust::generate!({
import: "../wit/wasi-clocks.wit.md",
import: "../wit/wasi-default-clocks.wit.md",
import: "../wit/wasi-filesystem.wit.md",
import: "../wit/wasi-logging.wit.md",
import: "../wit/wasi-poll.wit.md",
import: "../wit/wasi-random.wit.md",
default: "../wit/command.wit.md",
name: "wasi",
path: "../wit/wasi.wit",
tracing: true,
});

Expand Down
2 changes: 1 addition & 1 deletion test-programs/macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ test = false
quote = "1.0"

[build-dependencies]
wit-component = { git = "https://github.com/bytecodealliance/wit-bindgen" }
wit-component = "0.3.2"
3 changes: 2 additions & 1 deletion test-programs/macros/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ fn main() {

let wasi_adapter = out_dir.join("wasm32-wasi/release/wasi_snapshot_preview1.wasm");
println!("wasi adapter: {:?}", &wasi_adapter);
let wasi_adapter = fs::read(&wasi_adapter).unwrap();

let mut cmd = Command::new("cargo");
cmd.arg("build")
Expand All @@ -46,7 +47,7 @@ fn main() {
.module(module.as_slice())
.unwrap()
.validate(true)
.adapter_file(&wasi_adapter)
.adapter("wasi_snapshot_preview1", &wasi_adapter)
.unwrap()
.encode()
.expect(&format!(
Expand Down

0 comments on commit c9d42fe

Please sign in to comment.