Skip to content

Commit e266277

Browse files
committed
Create a package in the spin namespace
Signed-off-by: itowlson <ivan.towlson@fermyon.com>
1 parent 2b13d88 commit e266277

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

crates/world/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ wasmtime::component::bindgen!({
1010
include fermyon:spin/host;
1111
include fermyon:spin/platform@2.0.0;
1212
include fermyon:spin/platform@3.0.0;
13+
include spin:spin/platform@3.2.0;
1314
include wasi:keyvalue/imports@0.2.0-draft2;
1415
}
1516
"#,

wit/deps/spin@3.0.0/world.wit

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package fermyon:spin@3.0.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 wasi:config/store@0.2.0-draft-2024-09-27;
15+
}

wit/world.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package fermyon:spin@3.0.0;
1+
package spin:spin@3.2.0;
22

33
/// The full world of a guest targeting an http-trigger
44
world http-trigger {

0 commit comments

Comments
 (0)