Skip to content

Commit

Permalink
Investigating having the Spin 3 package alongside others instead of t…
Browse files Browse the repository at this point in the history
…op level

Signed-off-by: itowlson <[email protected]>
  • Loading branch information
itowlson committed Oct 15, 2024
1 parent 73fe25e commit 63d82ec
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 43 deletions.
43 changes: 43 additions & 0 deletions wit/deps/[email protected]/world.wit
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package fermyon:spin@3.0.0;

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

/// Like `http-trigger`, but using WASI 0.2.0-rc-2023-10-18
world http-trigger-rc20231018 {
include platform-rc20231018;
export wasi:http/incoming-handler@0.2.0-rc-2023-10-18;
}

/// The imports needed for a guest to run on a Spin host
world platform {
include wasi:cli/imports@0.2.0;
import wasi:http/outgoing-handler@0.2.0;
import wasi:config/store@0.2.0-draft;
import fermyon:spin/llm@2.0.0;
import fermyon:spin/redis@2.0.0;
import fermyon:spin/mqtt@2.0.0;
import fermyon:spin/postgres@2.0.0;
import fermyon:spin/mysql@2.0.0;
import fermyon:spin/sqlite@2.0.0;
import fermyon:spin/key-value@2.0.0;
import fermyon:spin/variables@2.0.0;
}

/// Like `platform`, but using WASI 0.2.0-rc-2023-10-18
world platform-rc20231018 {
include wasi:cli/reactor@0.2.0-rc-2023-10-18;
import wasi:http/outgoing-handler@0.2.0-rc-2023-10-18;
import wasi:config/store@0.2.0-draft;
import fermyon:spin/llm@2.0.0;
import fermyon:spin/redis@2.0.0;
import fermyon:spin/mqtt@2.0.0;
import fermyon:spin/postgres@2.0.0;
import fermyon:spin/mysql@2.0.0;
import fermyon:spin/sqlite@2.0.0;
import fermyon:spin/key-value@2.0.0;
import fermyon:spin/variables@2.0.0;
}
44 changes: 1 addition & 43 deletions wit/world.wit
Original file line number Diff line number Diff line change
@@ -1,43 +1 @@
package fermyon:spin@3.0.0;

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

/// Like `http-trigger`, but using WASI 0.2.0-rc-2023-10-18
world http-trigger-rc20231018 {
include platform-rc20231018;
export wasi:http/incoming-handler@0.2.0-rc-2023-10-18;
}

/// The imports needed for a guest to run on a Spin host
world platform {
include wasi:cli/imports@0.2.0;
import wasi:http/outgoing-handler@0.2.0;
import wasi:config/store@0.2.0-draft;
import fermyon:spin/llm@2.0.0;
import fermyon:spin/redis@2.0.0;
import fermyon:spin/mqtt@2.0.0;
import fermyon:spin/postgres@2.0.0;
import fermyon:spin/mysql@2.0.0;
import fermyon:spin/sqlite@2.0.0;
import fermyon:spin/key-value@2.0.0;
import fermyon:spin/variables@2.0.0;
}

/// Like `platform`, but using WASI 0.2.0-rc-2023-10-18
world platform-rc20231018 {
include wasi:cli/reactor@0.2.0-rc-2023-10-18;
import wasi:http/outgoing-handler@0.2.0-rc-2023-10-18;
import wasi:config/store@0.2.0-draft;
import fermyon:spin/llm@2.0.0;
import fermyon:spin/redis@2.0.0;
import fermyon:spin/mqtt@2.0.0;
import fermyon:spin/postgres@2.0.0;
import fermyon:spin/mysql@2.0.0;
import fermyon:spin/sqlite@2.0.0;
import fermyon:spin/key-value@2.0.0;
import fermyon:spin/variables@2.0.0;
}
package spin:top-level;

0 comments on commit 63d82ec

Please sign in to comment.