Skip to content

Commit e71ce4e

Browse files
chore(deps): upgrade wasmtime and WASM stack to latest (#450)
Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Yordis Prieto <yordis.prieto@gmail.com>
1 parent 8739a20 commit e71ce4e

8 files changed

Lines changed: 220 additions & 853 deletions

File tree

rsworkspace/Cargo.lock

Lines changed: 205 additions & 837 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rsworkspace/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ moka = { version = "=0.12.10", features = ["future"] }
113113
chrono-tz = "=0.10.4"
114114
ed25519-dalek = { version = "=2.2.0", features = ["std", "rand_core"] }
115115
toml = "=0.8.23"
116-
wasmtime = "=45.0.0"
116+
wasmtime = "=46.0.1"
117117
http = "=1.4.0"
118118
reqwest = { version = "=0.12.28", default-features = false, features = ["json", "rustls-tls", "stream"] }
119119
rrule = "=0.14.0"
@@ -126,8 +126,8 @@ url = "=2.5.8"
126126
uuid = { version = "=1.23.1", features = ["v4", "v7"] }
127127
prost-reflect = "=0.14.7"
128128
serde_yaml = "=0.9.34"
129-
wasmtime-wasi = "=29.0.1"
130-
wit-bindgen = "=0.41.0"
129+
wasmtime-wasi = "=46.0.1"
130+
wit-bindgen = "=0.58.0"
131131

132132
# Auth callout
133133
hex = "=0.4.3"

rsworkspace/crates/trogon-decider-sim/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ thiserror = { workspace = true }
1717
trogon-decider-wit = { workspace = true, features = ["host"] }
1818
trogon-std = { workspace = true }
1919
trogonai-proto = { path = "../trogonai-proto", default-features = false, features = ["schedules"] }
20-
wasmparser = "=0.227.0"
21-
wasmtime = { version = "=29.0.1", default-features = false, features = ["component-model", "runtime", "cranelift"] }
20+
wasmparser = "=0.252.0"
21+
wasmtime = { version = "=46.0.1", default-features = false, features = ["anyhow", "component-model", "runtime", "cranelift"] }
2222

2323
[dev-dependencies]
2424
buffa = { workspace = true }
2525
buffa-types = { workspace = true }
2626
trogon-decider-wit = { workspace = true, features = ["host"] }
27-
wasmtime = { version = "=29.0.1", default-features = false, features = ["component-model", "runtime", "cranelift"] }
27+
wasmtime = { version = "=46.0.1", default-features = false, features = ["anyhow", "component-model", "runtime", "cranelift"] }
2828
wat = "1"
2929

3030
[[test]]

rsworkspace/crates/trogon-decider-sim/src/host.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl SimHost {
4444
Ok(Self { engine, component })
4545
}
4646

47-
pub fn instantiate<T>(&self, host_state: T) -> Result<SimInstance<T>, SimError> {
47+
pub fn instantiate<T: 'static>(&self, host_state: T) -> Result<SimInstance<T>, SimError> {
4848
let linker = Linker::new(&self.engine);
4949
let mut store = Store::new(&self.engine, host_state);
5050
let bindings = Decider::instantiate(&mut store, &self.component, &linker)
@@ -53,12 +53,12 @@ impl SimHost {
5353
}
5454
}
5555

56-
pub struct SimInstance<T> {
56+
pub struct SimInstance<T: 'static> {
5757
pub(crate) store: Store<T>,
5858
pub(crate) bindings: Decider,
5959
}
6060

61-
impl<T> SimInstance<T> {
61+
impl<T: 'static> SimInstance<T> {
6262
pub fn descriptor(&mut self) -> Result<host::ModuleDescriptor, wasmtime::Error> {
6363
host::call_descriptor(&self.bindings, &mut self.store)
6464
}

rsworkspace/crates/trogon-decider-sim/src/import_check.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ fn assert_zero_imports_via_wasmparser(bytes: &[u8]) -> Result<(), ImportCheckErr
7878
for payload in wasmparser::Parser::new(0).parse_all(bytes) {
7979
let payload = payload.map_err(|err| ImportCheckError::Parse(err.to_string()))?;
8080
if let wasmparser::Payload::ImportSection(reader) = payload
81-
&& let Some(import) = reader.into_iter().next()
81+
&& let Some(import) = reader.into_imports().next()
8282
{
8383
let import = import.map_err(|err| ImportCheckError::Parse(err.to_string()))?;
8484
return Err(ImportCheckError::ImportPresent {

rsworkspace/crates/trogon-decider-sim/src/session.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ use trogon_decider_wit::host::{self, Decider};
22
use wasmtime::Store;
33

44
/// A guest session resource with deterministic teardown via [`resource_drop`](host::drop_session).
5-
pub struct SimSession<'a, T> {
5+
pub struct SimSession<'a, T: 'static> {
66
pub(crate) bindings: &'a Decider,
77
pub(crate) store: &'a mut Store<T>,
88
pub(crate) session: host::Session,
99
}
1010

11-
impl<T> SimSession<'_, T> {
11+
impl<T: 'static> SimSession<'_, T> {
1212
pub fn evolve(&mut self, events: &[host::AnyEnvelope]) -> Result<Result<(), host::DomainError>, wasmtime::Error> {
1313
host::evolve(self.bindings, self.store, self.session, events)
1414
}
@@ -25,7 +25,7 @@ impl<T> SimSession<'_, T> {
2525
}
2626
}
2727

28-
impl<T> Drop for SimSession<'_, T> {
28+
impl<T: 'static> Drop for SimSession<'_, T> {
2929
fn drop(&mut self) {
3030
let _ = host::drop_session(self.bindings, self.store, self.session);
3131
}

rsworkspace/crates/trogon-decider-wit/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ workspace = true
1616

1717
[dependencies]
1818
anyhow = { workspace = true, optional = true }
19-
wasmtime = { version = "=29.0.1", default-features = false, features = ["component-model", "runtime", "cranelift"], optional = true }
20-
wit-bindgen = { version = "=0.41.0", optional = true }
19+
wasmtime = { version = "=46.0.1", default-features = false, features = ["anyhow", "component-model", "runtime", "cranelift"], optional = true }
20+
wit-bindgen = { version = "=0.58.0", optional = true }
2121

2222
[dev-dependencies]
2323
trybuild = "1"

rsworkspace/crates/trogon-decider-wit/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ pub mod host {
2121
wasmtime::component::bindgen!({
2222
world: "decider",
2323
path: "wit",
24-
trappable_imports: true,
2524
});
2625

2726
pub use exports::trogon::decider::handler::{

0 commit comments

Comments
 (0)