-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Investigating having the Spin 3 package alongside others instead of t…
…op level Signed-off-by: itowlson <[email protected]>
- Loading branch information
Showing
2 changed files
with
44 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |