-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wasm-compose
: implement a component composition tool.
#691
Commits on Jul 29, 2022
-
wasmparser: allow subtype checks across type collections.
This commit refactors the subtype checks in the validator type information to support comparing types from different type lists. This will allow tools to validate different components and be able to easily perform subtype checks from the disjoint type lists.
Configuration menu - View commit details
-
Copy full SHA for d33ce84 - Browse repository at this point
Copy the full SHA d33ce84View commit details -
wasmparser: expose
exports
method from validation instance types.This commit exposes the `exports` utility method from the validation instance types.
Configuration menu - View commit details
-
Copy full SHA for d5fe238 - Browse repository at this point
Copy the full SHA d5fe238View commit details -
wasmparser: extend validator type information.
This commit extends the validator type information to include getting the entity types for imports and exports.
Configuration menu - View commit details
-
Copy full SHA for 839d52b - Browse repository at this point
Copy the full SHA 839d52bView commit details -
wasmprinter: implement aliases to type exports.
This commit implements printing components that alias type exports from component instances.
Configuration menu - View commit details
-
Copy full SHA for 339ff01 - Browse repository at this point
Copy the full SHA 339ff01View commit details -
wasm-compose: implement a component composition tool.
This commit implements `wasm-compose`, a tool for composing WebAssembly components from other components. Right now the tool is pretty simple: you specify a list of component imports, specify how they get instantiated, and which of the instances gets its exports exported from the composed component. `wasm-compose` operates directly on WebAssembly components and has no dependencies on `wit` or `wit-bindgen`.
Configuration menu - View commit details
-
Copy full SHA for 688edb7 - Browse repository at this point
Copy the full SHA 688edb7View commit details -
wasm-compose: normalize path separator in test baselines.
This commit normalizes the path separator for error baselines in the tests for `wasm-compose`. It also normalizes a platform-specific error message.
Configuration menu - View commit details
-
Copy full SHA for 2a2fd90 - Browse repository at this point
Copy the full SHA 2a2fd90View commit details -
Remove
wasm-compose
binary in favor ofwasm-tools compose
.This commit removes the `wasm-compose` standalone binary and moves its functionality to the `wasm-tools compose` subcommand. It also updates the example README to use `wasm-tools compose`.
Configuration menu - View commit details
-
Copy full SHA for c5853f9 - Browse repository at this point
Copy the full SHA c5853f9View commit details -
This tweaked a bunch of the error messages and made missing/incompatible exports for instances a little clearer.
Configuration menu - View commit details
-
Copy full SHA for d3d2213 - Browse repository at this point
Copy the full SHA d3d2213View commit details -
Redesign the composition configuration format.
This commit changes how the composition configuration format is defined. It replaces `imports` with `components` and makes embedding components the default. The simplified format will hopefully make more sense. In addition, the explainer for the configuration file format has been split out from `README.md` into `CONFIG.md`.
Configuration menu - View commit details
-
Copy full SHA for b5b03b3 - Browse repository at this point
Copy the full SHA b5b03b3View commit details -
wasm-compose: use YAML as the configuration file format.
This commit removes support for TOML as the configuration file format and just supports YAML.
Configuration menu - View commit details
-
Copy full SHA for 6b5be70 - Browse repository at this point
Copy the full SHA 6b5be70View commit details -
Configuration menu - View commit details
-
Copy full SHA for 784a16a - Browse repository at this point
Copy the full SHA 784a16aView commit details
Commits on Aug 2, 2022
-
wasm-compose: update example component
Cargo.toml
formats.This commit updates the example component `Cargo.toml` formats for `wasm-compose` to include changes to the latest `cargo component`.
Configuration menu - View commit details
-
Copy full SHA for c9f0b28 - Browse repository at this point
Copy the full SHA c9f0b28View commit details -
This commit replaces the example with a sillier, but slightly more complex, example using lists in the interfaces (hot off the presses).
Configuration menu - View commit details
-
Copy full SHA for 340f95d - Browse repository at this point
Copy the full SHA 340f95dView commit details
Commits on Aug 5, 2022
-
Update example to something substantive.
This commit updates the composition demo to include a simple HTTP service that uses a configurable backend to talk to. The backend in the demo expects a `text/plain` body and echoes the body in the response. With a simple change to how the component gets composed, a middleware component can be inserted between the service and the backend components; it is responsible for gzip compressing the response from the backend.
Configuration menu - View commit details
-
Copy full SHA for 3283996 - Browse repository at this point
Copy the full SHA 3283996View commit details