Skip to content

Conversation

@alexcrichton
Copy link
Member

This commit implements a few minor improvements I've been wanting to make this this subcommand, notably changing the default output to use the multi-package form if needed to print everything in a component instead of just the "top"

* Lift files in `deps` outside of their folders to be `deps/*.wit`
  instead of `deps/*/main.wit` since this structure is now supported.
* Handle multi-package input documents by placing each package in the
  main folder.
* Name the main wit file after the package name.
* Add some tests for these cases.
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.
@alexcrichton alexcrichton added this pull request to the merge queue Jul 11, 2024
Merged via the queue into bytecodealliance:main with commit d4bdb5b Jul 11, 2024
@alexcrichton alexcrichton deleted the print-improvements branch July 11, 2024 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants