chore: update wai-bindgen to latest revision

Signed-off-by: Radu Matei <radu.matei@fermyon.com>
This commit is contained in:
Radu Matei 2021-11-09 12:29:45 -08:00
parent f106959c61
commit 1d2d07060d
No known key found for this signature in database
GPG Key ID: 53A4E7168B7782C2
5 changed files with 97 additions and 96 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
target
.husky

184
Cargo.lock generated
View File

@ -591,12 +591,12 @@ dependencies = [
"structopt",
"tokio",
"toml",
"wai-bindgen-rust",
"wai-bindgen-wasmtime",
"wasi-common",
"wasi-experimental-http-wasmtime",
"wasmtime",
"wasmtime-wasi",
"witx-bindgen-rust",
"witx-bindgen-wasmtime",
]
[[package]]
@ -2232,6 +2232,96 @@ version = "0.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe"
[[package]]
name = "wai-bindgen-gen-core"
version = "0.1.0"
source = "git+https://github.com/bytecodealliance/wai-bindgen?rev=10e46993d0ff3ee688c5379f4223c8cf03a6f82a#10e46993d0ff3ee688c5379f4223c8cf03a6f82a"
dependencies = [
"anyhow",
"wai-parser",
]
[[package]]
name = "wai-bindgen-gen-rust"
version = "0.1.0"
source = "git+https://github.com/bytecodealliance/wai-bindgen?rev=10e46993d0ff3ee688c5379f4223c8cf03a6f82a#10e46993d0ff3ee688c5379f4223c8cf03a6f82a"
dependencies = [
"heck",
"wai-bindgen-gen-core",
]
[[package]]
name = "wai-bindgen-gen-rust-wasm"
version = "0.1.0"
source = "git+https://github.com/bytecodealliance/wai-bindgen?rev=10e46993d0ff3ee688c5379f4223c8cf03a6f82a#10e46993d0ff3ee688c5379f4223c8cf03a6f82a"
dependencies = [
"heck",
"wai-bindgen-gen-core",
"wai-bindgen-gen-rust",
]
[[package]]
name = "wai-bindgen-gen-wasmtime"
version = "0.1.0"
source = "git+https://github.com/bytecodealliance/wai-bindgen?rev=10e46993d0ff3ee688c5379f4223c8cf03a6f82a#10e46993d0ff3ee688c5379f4223c8cf03a6f82a"
dependencies = [
"heck",
"wai-bindgen-gen-core",
"wai-bindgen-gen-rust",
]
[[package]]
name = "wai-bindgen-rust"
version = "0.1.0"
source = "git+https://github.com/bytecodealliance/wai-bindgen?rev=10e46993d0ff3ee688c5379f4223c8cf03a6f82a#10e46993d0ff3ee688c5379f4223c8cf03a6f82a"
dependencies = [
"async-trait",
"wai-bindgen-rust-impl",
]
[[package]]
name = "wai-bindgen-rust-impl"
version = "0.1.0"
source = "git+https://github.com/bytecodealliance/wai-bindgen?rev=10e46993d0ff3ee688c5379f4223c8cf03a6f82a#10e46993d0ff3ee688c5379f4223c8cf03a6f82a"
dependencies = [
"proc-macro2",
"syn",
"wai-bindgen-gen-core",
"wai-bindgen-gen-rust-wasm",
]
[[package]]
name = "wai-bindgen-wasmtime"
version = "0.1.0"
source = "git+https://github.com/bytecodealliance/wai-bindgen?rev=10e46993d0ff3ee688c5379f4223c8cf03a6f82a#10e46993d0ff3ee688c5379f4223c8cf03a6f82a"
dependencies = [
"anyhow",
"bitflags",
"thiserror",
"wai-bindgen-wasmtime-impl",
"wasmtime",
]
[[package]]
name = "wai-bindgen-wasmtime-impl"
version = "0.1.0"
source = "git+https://github.com/bytecodealliance/wai-bindgen?rev=10e46993d0ff3ee688c5379f4223c8cf03a6f82a#10e46993d0ff3ee688c5379f4223c8cf03a6f82a"
dependencies = [
"proc-macro2",
"syn",
"wai-bindgen-gen-core",
"wai-bindgen-gen-wasmtime",
]
[[package]]
name = "wai-parser"
version = "0.1.0"
source = "git+https://github.com/bytecodealliance/wai-bindgen?rev=10e46993d0ff3ee688c5379f4223c8cf03a6f82a#10e46993d0ff3ee688c5379f4223c8cf03a6f82a"
dependencies = [
"anyhow",
"id-arena",
]
[[package]]
name = "walkdir"
version = "2.3.2"
@ -2718,96 +2808,6 @@ dependencies = [
"wast 35.0.2",
]
[[package]]
name = "witx-bindgen-gen-core"
version = "0.1.0"
source = "git+https://github.com/bytecodealliance/witx-bindgen?rev=160509774b3468f2ccba9b33732c199fa2cd7cef#160509774b3468f2ccba9b33732c199fa2cd7cef"
dependencies = [
"anyhow",
"witx2",
]
[[package]]
name = "witx-bindgen-gen-rust"
version = "0.1.0"
source = "git+https://github.com/bytecodealliance/witx-bindgen?rev=160509774b3468f2ccba9b33732c199fa2cd7cef#160509774b3468f2ccba9b33732c199fa2cd7cef"
dependencies = [
"heck",
"witx-bindgen-gen-core",
]
[[package]]
name = "witx-bindgen-gen-rust-wasm"
version = "0.1.0"
source = "git+https://github.com/bytecodealliance/witx-bindgen?rev=160509774b3468f2ccba9b33732c199fa2cd7cef#160509774b3468f2ccba9b33732c199fa2cd7cef"
dependencies = [
"heck",
"witx-bindgen-gen-core",
"witx-bindgen-gen-rust",
]
[[package]]
name = "witx-bindgen-gen-wasmtime"
version = "0.1.0"
source = "git+https://github.com/bytecodealliance/witx-bindgen?rev=160509774b3468f2ccba9b33732c199fa2cd7cef#160509774b3468f2ccba9b33732c199fa2cd7cef"
dependencies = [
"heck",
"witx-bindgen-gen-core",
"witx-bindgen-gen-rust",
]
[[package]]
name = "witx-bindgen-rust"
version = "0.1.0"
source = "git+https://github.com/bytecodealliance/witx-bindgen?rev=160509774b3468f2ccba9b33732c199fa2cd7cef#160509774b3468f2ccba9b33732c199fa2cd7cef"
dependencies = [
"async-trait",
"witx-bindgen-rust-impl",
]
[[package]]
name = "witx-bindgen-rust-impl"
version = "0.1.0"
source = "git+https://github.com/bytecodealliance/witx-bindgen?rev=160509774b3468f2ccba9b33732c199fa2cd7cef#160509774b3468f2ccba9b33732c199fa2cd7cef"
dependencies = [
"proc-macro2",
"syn",
"witx-bindgen-gen-core",
"witx-bindgen-gen-rust-wasm",
]
[[package]]
name = "witx-bindgen-wasmtime"
version = "0.1.0"
source = "git+https://github.com/bytecodealliance/witx-bindgen?rev=160509774b3468f2ccba9b33732c199fa2cd7cef#160509774b3468f2ccba9b33732c199fa2cd7cef"
dependencies = [
"anyhow",
"bitflags",
"thiserror",
"wasmtime",
"witx-bindgen-wasmtime-impl",
]
[[package]]
name = "witx-bindgen-wasmtime-impl"
version = "0.1.0"
source = "git+https://github.com/bytecodealliance/witx-bindgen?rev=160509774b3468f2ccba9b33732c199fa2cd7cef#160509774b3468f2ccba9b33732c199fa2cd7cef"
dependencies = [
"proc-macro2",
"syn",
"witx-bindgen-gen-core",
"witx-bindgen-gen-wasmtime",
]
[[package]]
name = "witx2"
version = "0.1.0"
source = "git+https://github.com/bytecodealliance/witx-bindgen?rev=160509774b3468f2ccba9b33732c199fa2cd7cef#160509774b3468f2ccba9b33732c199fa2cd7cef"
dependencies = [
"anyhow",
"id-arena",
]
[[package]]
name = "zstd"
version = "0.9.0+zstd.1.5.0"

View File

@ -23,7 +23,7 @@
wasi-experimental-http-wasmtime = "0.6.0"
wasmtime = "0.30"
wasmtime-wasi = "0.30"
witx-bindgen-rust = { git = "https://github.com/bytecodealliance/witx-bindgen", rev = "160509774b3468f2ccba9b33732c199fa2cd7cef" }
wai-bindgen-rust = { git = "https://github.com/bytecodealliance/wai-bindgen", rev = "10e46993d0ff3ee688c5379f4223c8cf03a6f82a" }
[dev-dependencies]
witx-bindgen-wasmtime = { git = "https://github.com/bytecodealliance/witx-bindgen", rev = "160509774b3468f2ccba9b33732c199fa2cd7cef" }
wai-bindgen-wasmtime = { git = "https://github.com/bytecodealliance/wai-bindgen", rev = "10e46993d0ff3ee688c5379f4223c8cf03a6f82a" }

View File

@ -174,7 +174,7 @@ mod test {
use echo::*;
use std::sync::Arc;
witx_bindgen_wasmtime::import!("crates/engine/tests/echo.witx");
wai_bindgen_wasmtime::import!("crates/engine/tests/echo.witx");
const RUST_ENTRYPOINT_PATH: &str = "tests/rust-echo/target/wasm32-wasi/release/echo.wasm";
#[derive(Clone)]

View File

@ -8,6 +8,6 @@
crate-type = ["cdylib"]
[dependencies]
witx-bindgen-rust = { git = "https://github.com/bytecodealliance/witx-bindgen", rev = "160509774b3468f2ccba9b33732c199fa2cd7cef" }
wai-bindgen-rust = { git = "https://github.com/bytecodealliance/wai-bindgen", rev = "10e46993d0ff3ee688c5379f4223c8cf03a6f82a" }
[workspace]