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

Commit

Permalink
Merge pull request #27 from radu-matei/wasmtime-024
Browse files Browse the repository at this point in the history
Update Wasmtime to 0.24
  • Loading branch information
Radu M authored Mar 8, 2021
2 parents fb5556d + 29562e1 commit 6f8c76e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
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

0 comments on commit 6f8c76e

Please sign in to comment.