Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Update Wasmtime to 0.24 #27

Merged
merged 1 commit into from
Mar 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ futures = "0.3"
http = "0.2"
reqwest = { version = "0.11", default-features = true, features = ["json", "blocking"] }
tokio = { version = "1.1", features = ["full"] }
wasmtime = "0.22"
wasmtime-wasi = "0.22"
wasi-common = "0.22"
wasmtime = "0.24"
wasmtime-wasi = "0.24"
wasi-common = "0.24"
wasi-cap-std-sync = "0.24"
wasi-experimental-http = {path = "crates/wasi-experimental-http"}
wasi-experimental-http-wasmtime = {path = "crates/wasi-experimental-http-wasmtime"}

Expand Down
6 changes: 3 additions & 3 deletions crates/wasi-experimental-http-wasmtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ http = "0.2"
reqwest = { version = "0.11", default-features = true, features = ["json", "blocking"] }
tokio = { version = "1.1", features = ["full"] }
url = "2.2.1"
wasmtime = "0.22"
wasmtime-wasi = "0.22"
wasi-common = "0.22"
wasmtime = "0.24"
wasmtime-wasi = "0.24"
wasi-common = "0.24"
wasi-experimental-http = {path = "../wasi-experimental-http"}
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ requests to a subdomain, the subdomain MUST be in the allowed list. See the the
library tests for more examples).

Note that the Wasmtime version currently supported is
[0.22](https://docs.rs/wasmtime/0.22.0/wasmtime/).
[0.24](https://docs.rs/wasmtime/0.24.0/wasmtime/).

### Sending HTTP requests from AssemblyScript

Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
mod tests {
use anyhow::Error;
use std::time::Instant;
use wasi_cap_std_sync::WasiCtxBuilder;
use wasi_experimental_http_wasmtime::link_http;
use wasmtime::*;
use wasmtime_wasi::{Wasi, WasiCtxBuilder};
use wasmtime_wasi::Wasi;

// We run the same test in a Tokio and non-Tokio environment
// in order to make sure both scenarios are working.
Expand Down