Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions crates/world/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ wasmtime::component::bindgen!({
include fermyon:spin/[email protected];
include spin:up/[email protected];
include spin:up/[email protected];
include spin:up/[email protected];
include wasi:keyvalue/[email protected];
}
"#,
Expand Down
17 changes: 17 additions & 0 deletions wit/deps/[email protected]/world.wit
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package spin:[email protected];

/// The full world of a guest targeting an http-trigger
world http-trigger {
include platform;
export wasi:http/[email protected];
}

/// The imports needed for a guest to run on a Spin host
world platform {
include fermyon:spin/[email protected];
include wasi:keyvalue/[email protected];
import spin:postgres/[email protected];
import spin:postgres/[email protected];
import spin:sqlite/[email protected];
import wasi:config/[email protected];
}
6 changes: 4 additions & 2 deletions wit/world.wit
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
package spin:up@3.4.0;
package spin:up@3.5.0;

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

/// The imports needed for a guest to run on a Spin host
world platform {
include wasi:cli/[email protected];
import wasi:http/[email protected];
include fermyon:spin/[email protected];
include wasi:keyvalue/[email protected];
import spin:postgres/[email protected];
Expand Down
Loading