Skip to content

Commit dcebfcf

Browse files
committed
Create a package in the spin namespace
Signed-off-by: itowlson <[email protected]>
1 parent 2b13d88 commit dcebfcf

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

Diff for: 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/[email protected];
1212
include fermyon:spin/[email protected];
13+
include spin:up/[email protected];
1314
include wasi:keyvalue/[email protected];
1415
}
1516
"#,

Diff for: tests/test-components/helper/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use bindings::wasi::io0_2_0::streams::OutputStream;
1717
#[cfg(feature = "define-component")]
1818
pub mod http_trigger_bindings {
1919
wit_bindgen::generate!({
20-
world: "fermyon:spin/http-trigger@3.0.0",
20+
world: "spin:spin/http-trigger@3.2.0",
2121
path: "../../../wit",
2222
generate_all,
2323
pub_export_macro: true,

Diff for: wit/deps/[email protected]/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+
}

Diff for: 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:up@3.2.0;
22

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

0 commit comments

Comments
 (0)