Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit b20be42

Browse files
committed
bump MSRV
1.85.0 adds async closure support and should be two versions older than the current stable release once this is merged, per Wasmtime's current policy. Signed-off-by: Joel Dice <joel.dice@fermyon.com>
1 parent 91fc4e6 commit b20be42

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ authors = ["The Wasmtime Project Developers"]
176176
edition = "2021"
177177
# Wasmtime's current policy is that this number can be no larger than the
178178
# current stable release of Rust minus 2.
179-
rust-version = "1.84.0"
179+
rust-version = "1.85.0"
180180

181181
[workspace.lints.rust]
182182
# Turn on some lints which are otherwise allow-by-default in rustc.

crates/wasmtime/src/runtime/component/concurrent.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2616,6 +2616,9 @@ impl ComponentInstance {
26162616
}
26172617
_ => bail!("invalid task handle: {task_id}"),
26182618
};
2619+
// Since waitables can neither be passed between instances nor forged,
2620+
// this should never fail unless there's a bug in Wasmtime, but we check
2621+
// here to be sure:
26192622
assert_eq!(expected_caller_instance, caller_instance);
26202623
log::trace!("subtask_drop {waitable:?} (handle {task_id})");
26212624
Ok(())
@@ -2644,6 +2647,9 @@ impl ComponentInstance {
26442647
}
26452648
_ => bail!("invalid task handle: {task_id}"),
26462649
};
2650+
// Since waitables can neither be passed between instances nor forged,
2651+
// this should never fail unless there's a bug in Wasmtime, but we check
2652+
// here to be sure:
26472653
assert_eq!(expected_caller_instance, caller_instance);
26482654

26492655
log::trace!("subtask_cancel {waitable:?} (handle {task_id})");

0 commit comments

Comments
 (0)