forked from bytecodealliance/wasm-tools
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit changes the output of `wasm-tools component wit` to by default output all WIT packages using the multi-package syntax implemented in bytecodealliance#1577. This means that a complete view of the WIT will be seen when running this command instead of just the top-level world.
- Loading branch information
1 parent
a1a5f7b
commit f46bcc5
Showing
4 changed files
with
38 additions
and
16 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
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
17 changes: 14 additions & 3 deletions
17
tests/cli/print-core-wasm-wit-multiple-packages.wit.stdout
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,5 +1,16 @@ | ||
package root:root; | ||
package root:root { | ||
world root { | ||
import bar:bar/my-interface; | ||
} | ||
} | ||
|
||
|
||
package bar:bar { | ||
interface my-interface { | ||
foo: func(); | ||
} | ||
|
||
world root { | ||
import bar:bar/my-interface; | ||
world my-world { | ||
import my-interface; | ||
} | ||
} |
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,5 +1,16 @@ | ||
package root:root; | ||
package root:root { | ||
world root { | ||
import foo:foo/my-interface; | ||
} | ||
} | ||
|
||
|
||
package foo:foo { | ||
interface my-interface { | ||
foo: func(); | ||
} | ||
|
||
world root { | ||
import foo:foo/my-interface; | ||
world my-world { | ||
import my-interface; | ||
} | ||
} |