Skip to content

Commit bf10a8a

Browse files
authored
Merge pull request #3295 from itowlson/wit-world-3.5.0
Update WIT world to WASI P3 RC
2 parents 1e1f54f + 183e6f6 commit bf10a8a

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

crates/world/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ wasmtime::component::bindgen!({
1212
include fermyon:spin/[email protected];
1313
include spin:up/[email protected];
1414
include spin:up/[email protected];
15+
include spin:up/[email protected];
1516
include wasi:keyvalue/[email protected];
1617
}
1718
"#,
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package spin:up@3.4.0;
2+
3+
/// The full world of a guest targeting an http-trigger
4+
world http-trigger {
5+
include platform;
6+
export wasi:http/incoming-handler@0.2.0;
7+
}
8+
9+
/// The imports needed for a guest to run on a Spin host
10+
world platform {
11+
include fermyon:spin/platform@2.0.0;
12+
include wasi:keyvalue/imports@0.2.0-draft2;
13+
import spin:postgres/postgres@3.0.0;
14+
import spin:postgres/postgres@4.0.0;
15+
import spin:sqlite/sqlite@3.0.0;
16+
import wasi:config/store@0.2.0-draft-2024-09-27;
17+
}

wit/world.wit

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
package spin:up@3.4.0;
1+
package spin:up@3.5.0;
22

33
/// The full world of a guest targeting an http-trigger
44
world http-trigger {
55
include platform;
6-
export wasi:http/incoming-handler@0.2.0;
6+
export wasi:http/handler@0.3.0-rc-2025-09-16;
77
}
88

99
/// The imports needed for a guest to run on a Spin host
1010
world platform {
11+
include wasi:cli/imports@0.3.0-rc-2025-09-16;
12+
import wasi:http/handler@0.3.0-rc-2025-09-16;
1113
include fermyon:spin/platform@2.0.0;
1214
include wasi:keyvalue/imports@0.2.0-draft2;
1315
import spin:postgres/postgres@3.0.0;

0 commit comments

Comments
 (0)