Skip to content

Commit

Permalink
deps: update wasmtime 19.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Gitea committed Mar 24, 2024
1 parent d2ef323 commit 61829f9
Show file tree
Hide file tree
Showing 11 changed files with 148 additions and 218 deletions.
338 changes: 134 additions & 204 deletions Cargo.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ authors = ["fuxiaohei <[email protected]>"]

[workspace.dependencies]
anyhow = "1.0.81"
async-trait = "0.1.78"
async-trait = "0.1.79"
axum = "0.7.4"
base64 = "0.22.0"
chrono = "0.4.35"
Expand All @@ -40,14 +40,14 @@ land-worker-server = { path = "crates/worker-server" }
lazy_static = "1.4.0"
md5 = "0.7.0"
once_cell = "1.19.0"
opendal = { version = "0.45.0", default-features = false, features = [
opendal = { version = "0.45.1", default-features = false, features = [
"services-fs",
"services-s3",
"services-memory",
"rustls",
] }
rand = "0.8.5"
reqwest = { version = "0.12.0", default-features = false, features = [
reqwest = { version = "0.12.1", default-features = false, features = [
"stream",
"rustls-tls",
"blocking",
Expand Down
2 changes: 1 addition & 1 deletion crates/kernel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ authors = { workspace = true }
[dependencies]
anyhow = { workspace = true }
chrono = { workspace = true }
jsonwebtoken = "9.2.0"
jsonwebtoken = "9.3.0"
land-dao = { workspace = true }
land-wit = { workspace = true }
md5 = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/sdk-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = { workspace = true }
anyhow = { workspace = true }
http = { workspace = true }
quote = "1.0.35"
syn = { version = "2.0.53", features = ["full"] }
syn = { version = "2.0.55", features = ["full"] }

[lib]
proc-macro = true
Expand Down
2 changes: 1 addition & 1 deletion crates/sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ anyhow = { workspace = true }
http = { workspace = true }
land-sdk-macro = { workspace = true }
lazy_static = { workspace = true }
matchit = "0.7.3"
matchit = "0.8.0"
wit-bindgen = { workspace = true }
2 changes: 1 addition & 1 deletion crates/wit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ authors = { workspace = true }
[dependencies]
anyhow = { workspace = true }
tracing = { workspace = true }
which = "6.0.0"
which = "6.0.1"
wit-bindgen-core = { workspace = true }
wit-bindgen-rust = { workspace = true }
wit-component = { workspace = true }
Binary file modified crates/wit/engine/wasi_snapshot_preview1.reactor.wasm
Binary file not shown.
4 changes: 2 additions & 2 deletions crates/worker-impl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ once_cell = { workspace = true }
reqwest = { workspace = true }
tokio = { workspace = true }
tracing = { workspace = true }
wasmtime = { version = "18.0.3", features = ["component-model", "async"] }
wasmtime-wasi = "18.0.3"
wasmtime = { version = "19.0.0", features = ["component-model", "async"] }
wasmtime-wasi = "19.0.0"

[build-dependencies]
land-wit = { workspace = true }
2 changes: 1 addition & 1 deletion crates/worker-impl/src/context.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::hostcall::HttpContext;
use axum::body::Body;
use wasmtime::component::ResourceTable;
use wasmtime_wasi::preview2::{WasiCtx, WasiCtxBuilder, WasiView};
use wasmtime_wasi::{WasiCtx, WasiCtxBuilder, WasiView};

pub struct Context {
wasi_ctx: WasiCtx,
Expand Down
4 changes: 2 additions & 2 deletions crates/worker-impl/src/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl Worker {
// create linker
let mut linker: Linker<super::Context> = Linker::new(&engine);
// init wasi context
wasmtime_wasi::preview2::command::add_to_linker(&mut linker)
wasmtime_wasi::command::add_to_linker(&mut linker)
.expect("add wasmtime_wasi::preview2 failed");
hostcall::HttpService::add_to_linker(&mut linker, super::Context::http_ctx)
.expect("add http_service failed");
Expand All @@ -58,7 +58,7 @@ impl Worker {
// create linker
let mut linker: Linker<super::Context> = Linker::new(&engine);
// init wasi context
wasmtime_wasi::preview2::command::add_to_linker(&mut linker)
wasmtime_wasi::command::add_to_linker(&mut linker)
.expect("add wasmtime_wasi::preview2 failed");
hostcall::HttpService::add_to_linker(&mut linker, super::Context::http_ctx)
.expect("add http_service failed");
Expand Down
4 changes: 2 additions & 2 deletions land-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ authors = { workspace = true }
anyhow = { workspace = true }
clap = { workspace = true }
color-print = "0.3.5"
inquire = "0.7.1"
inquire = "0.7.3"
land-common = { workspace = true }
land-kernel = { workspace = true }
land-wit = { workspace = true }
land-worker-server = { workspace = true }
regex = "1.10.3"
regex = "1.10.4"
rust-embed = { workspace = true }
tokio = { workspace = true }
tracing = { workspace = true }

0 comments on commit 61829f9

Please sign in to comment.