Skip to content

Commit 6c6c35c

Browse files
authored
Merge pull request #3383 from itowlson/spin-3.6-world
Spin 3.6 world for new WASI snapshot
2 parents aed6f47 + c85505e commit 6c6c35c

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

crates/http/src/trigger.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const WASI_HTTP_EXPORT_2023_11_10: &str = "wasi:http/incoming-handler@0.2.0-rc-2
3838
/// The `incoming-handler` export prefix for all `wasi:http` 0.2 versions
3939
const WASI_HTTP_EXPORT_0_2_PREFIX: &str = "wasi:http/incoming-handler@0.2";
4040
/// The `handler` export `wasi:http` version 0.3.0-rc-2025-08-15
41-
const WASI_HTTP_EXPORT_0_3_0_RC_2025_09_16: &str = "wasi:http/handler@0.3.0-rc-2025-09-16";
41+
const WASI_HTTP_EXPORT_0_3_0_UNSTABLE: &str = "wasi:http/handler@0.3.0-rc-2026-01-06";
4242
/// The `inbound-http` export for `fermyon:spin`
4343
const SPIN_HTTP_EXPORT: &str = "fermyon:spin/inbound-http";
4444

@@ -76,7 +76,7 @@ impl<T, S: HandlerState<StoreData = T>> HandlerType<S> {
7676
`{WASI_HTTP_EXPORT_2023_10_18}`, \
7777
`{WASI_HTTP_EXPORT_2023_11_10}`, \
7878
`{WASI_HTTP_EXPORT_0_2_PREFIX}.*`, \
79-
`{WASI_HTTP_EXPORT_0_3_0_RC_2025_09_16}`, \
79+
`{WASI_HTTP_EXPORT_0_3_0_UNSTABLE}`, \
8080
or `{SPIN_HTTP_EXPORT}` but it exported none of those. \
8181
This may mean the component handles a different trigger, or that its `wasi:http` export is newer then those supported by Spin. \
8282
If you're sure this is an HTTP module, check if a Spin upgrade is available: this may handle the newer version."
@@ -102,7 +102,7 @@ impl<T, S: HandlerState<StoreData = T>> HandlerType<S> {
102102
}
103103
(HandlerType::Wasi0_3(_), Some(_) | None) => {
104104
anyhow::bail!(
105-
"`{WASI_HTTP_EXPORT_0_3_0_RC_2025_09_16}` is currently unstable and will be \
105+
"`{WASI_HTTP_EXPORT_0_3_0_UNSTABLE}` is currently unstable and will be \
106106
removed in a future Spin release. You can opt-in to this unstable interface \
107107
by adding `executor = {{ type = \"wasip3-unstable\" }}` to the appropriate \
108108
`[[trigger.http]]` section of your spin.toml file."
@@ -111,7 +111,7 @@ impl<T, S: HandlerState<StoreData = T>> HandlerType<S> {
111111
(handler_type, Some(HttpExecutorType::Wasip3Unstable)) => {
112112
anyhow::bail!(
113113
"The wasip3-unstable trigger executor expected a component that \
114-
exports `{WASI_HTTP_EXPORT_0_3_0_RC_2025_09_16}` but found a \
114+
exports `{WASI_HTTP_EXPORT_0_3_0_UNSTABLE}` but found a \
115115
component with type {name}",
116116
name = handler_type.name(),
117117
)
@@ -124,7 +124,7 @@ impl<T, S: HandlerState<StoreData = T>> HandlerType<S> {
124124
match self {
125125
HandlerType::Spin => SPIN_HTTP_EXPORT,
126126
HandlerType::Wasi0_2(_) => WASI_HTTP_EXPORT_0_2_PREFIX,
127-
HandlerType::Wasi0_3(_) => WASI_HTTP_EXPORT_0_3_0_RC_2025_09_16,
127+
HandlerType::Wasi0_3(_) => WASI_HTTP_EXPORT_0_3_0_UNSTABLE,
128128
HandlerType::Wasi2023_11_10(_) => WASI_HTTP_EXPORT_2023_11_10,
129129
HandlerType::Wasi2023_10_18(_) => WASI_HTTP_EXPORT_2023_10_18,
130130
_ => unreachable!(), // WAGI variant will never appear here

crates/world/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ wasmtime::component::bindgen!({
1212
include fermyon:spin/platform@3.0.0;
1313
include spin:up/platform@3.2.0;
1414
include spin:up/platform@3.4.0;
15-
include spin:up/platform@3.5.0;
15+
include spin:up/platform@3.6.0;
1616
include wasi:keyvalue/imports@0.2.0-draft2;
1717
}
1818
"#,

wit/world.wit

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1-
package spin:up@3.5.0;
1+
package spin:up@3.6.0;
22

33
/// The full world of a guest targeting an http-trigger
44
world http-trigger {
55
include platform;
6+
@unstable(feature = wasip3-rc20260106)
67
export wasi:http/handler@0.3.0-rc-2026-01-06;
78
}
89

910
/// The imports needed for a guest to run on a Spin host
1011
world platform {
1112
include wasi:cli/imports@0.2.6;
1213
import wasi:http/outgoing-handler@0.2.6;
14+
@unstable(feature = wasip3-rc20260106)
1315
include wasi:cli/imports@0.3.0-rc-2026-01-06;
16+
@unstable(feature = wasip3-rc20260106)
1417
import wasi:http/handler@0.3.0-rc-2026-01-06;
1518
include fermyon:spin/platform@2.0.0;
1619
include wasi:keyvalue/imports@0.2.0-draft2;

0 commit comments

Comments
 (0)