diff --git a/Cargo.toml b/Cargo.toml index 80999b1..d9dbc8f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,33 +1,33 @@ [package] - name = "wasi-experimental-http-wasmtime-sample" - version = "0.10.0" - authors = [ "Radu Matei " ] - edition = "2021" +name = "wasi-experimental-http-wasmtime-sample" +version = "0.10.0" +authors = ["Radu Matei "] +edition = "2021" [dependencies] - anyhow = "1.0" - futures = "0.3" - http = "0.2" - reqwest = { version = "0.11", default-features = true, features = [ - "json", - "blocking", - ] } - structopt = "0.3" - tokio = { version = "1.4", features = [ "full" ] } - wasmtime = "0.35" - wasmtime-wasi = "0.35" - wasi-common = "0.35" - wasi-cap-std-sync = "0.35" - wasi-experimental-http = { path = "crates/wasi-experimental-http" } - wasi-experimental-http-wasmtime = { path = "crates/wasi-experimental-http-wasmtime" } +anyhow = "1.0" +futures = "0.3" +http = "0.2" +reqwest = { version = "0.11", default-features = true, features = [ + "json", + "blocking", +] } +structopt = "0.3" +tokio = { version = "1.4", features = ["full"] } +wasmtime = "2.0.1" +wasmtime-wasi = "2.0.1" +wasi-common = "2.0.1" +wasi-cap-std-sync = "2.0.1" +wasi-experimental-http = { path = "crates/wasi-experimental-http" } +wasi-experimental-http-wasmtime = { path = "crates/wasi-experimental-http-wasmtime" } [workspace] - members = [ - "crates/wasi-experimental-http", - "crates/wasi-experimental-http-wasmtime", - "tests/rust", - ] +members = [ + "crates/wasi-experimental-http", + "crates/wasi-experimental-http-wasmtime", + "tests/rust", +] [[bin]] - name = "wasmtime-http" - path = "bin/wasmtime-http.rs" +name = "wasmtime-http" +path = "bin/wasmtime-http.rs" diff --git a/bin/wasmtime-http.rs b/bin/wasmtime-http.rs index 1e9d253..8af9fb2 100644 --- a/bin/wasmtime-http.rs +++ b/bin/wasmtime-http.rs @@ -81,7 +81,6 @@ fn create_instance( ) -> Result<(Instance, Store), Error> { let mut wasmtime_config = wasmtime::Config::default(); wasmtime_config.wasm_multi_memory(true); - wasmtime_config.wasm_module_linking(true); let engine = Engine::new(&wasmtime_config)?; let mut linker = Linker::new(&engine); diff --git a/crates/wasi-experimental-http-wasmtime/Cargo.toml b/crates/wasi-experimental-http-wasmtime/Cargo.toml index 71e75b7..4c94421 100644 --- a/crates/wasi-experimental-http-wasmtime/Cargo.toml +++ b/crates/wasi-experimental-http-wasmtime/Cargo.toml @@ -1,26 +1,26 @@ [package] - name = "wasi-experimental-http-wasmtime" - version = "0.10.0" - authors = [ "Radu Matei " ] - edition = "2021" - repository = "https://github.com/deislabs/wasi-experimental-http" - license = "MIT" - description = "Experimental HTTP library for WebAssembly in Wasmtime" - readme = "readme.md" +name = "wasi-experimental-http-wasmtime" +version = "0.10.0" +authors = ["Radu Matei "] +edition = "2021" +repository = "https://github.com/deislabs/wasi-experimental-http" +license = "MIT" +description = "Experimental HTTP library for WebAssembly in Wasmtime" +readme = "readme.md" [dependencies] - anyhow = "1.0" - bytes = "1" - futures = "0.3" - http = "0.2" - reqwest = { version = "0.11", default-features = true, features = [ - "json", - "blocking", - ] } - thiserror = "1.0" - tokio = { version = "1.4.0", features = [ "full" ] } - tracing = { version = "0.1", features = [ "log" ] } - url = "2.2.1" - wasmtime = "0.35" - wasmtime-wasi = "0.35" - wasi-common = "0.35" +anyhow = "1.0" +bytes = "1" +futures = "0.3" +http = "0.2" +reqwest = { version = "0.11", default-features = true, features = [ + "json", + "blocking", +] } +thiserror = "1.0" +tokio = { version = "1.4.0", features = ["full"] } +tracing = { version = "0.1", features = ["log"] } +url = "2.2.1" +wasmtime = "2.0.1" +wasmtime-wasi = "2.0.1" +wasi-common = "2.0.1"