From e4b31d9508f88454b0cc28bdf5cf688f89318bae Mon Sep 17 00:00:00 2001 From: itowlson Date: Fri, 25 Oct 2024 11:52:39 +1300 Subject: [PATCH] Fix WITs not playing nicely with wasm-tools etc. Signed-off-by: itowlson --- wit/deps/spin@3.0.0/world.wit | 13 ------------- wit/world.wit | 14 +++++++++++++- 2 files changed, 13 insertions(+), 14 deletions(-) delete mode 100644 wit/deps/spin@3.0.0/world.wit diff --git a/wit/deps/spin@3.0.0/world.wit b/wit/deps/spin@3.0.0/world.wit deleted file mode 100644 index b38f1f463..000000000 --- a/wit/deps/spin@3.0.0/world.wit +++ /dev/null @@ -1,13 +0,0 @@ -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; -} - -/// The imports needed for a guest to run on a Spin host -world platform { - include fermyon:spin/platform@2.0.0; - import wasi:config/store@0.2.0-draft-2024-09-27; -} diff --git a/wit/world.wit b/wit/world.wit index 9bfa3f0d7..b38f1f463 100644 --- a/wit/world.wit +++ b/wit/world.wit @@ -1 +1,13 @@ -package spin:top-level; +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; +} + +/// The imports needed for a guest to run on a Spin host +world platform { + include fermyon:spin/platform@2.0.0; + import wasi:config/store@0.2.0-draft-2024-09-27; +}