-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various improvements to
cargo-component
.
This commit includes the following improvements to `cargo-component`: * `cargo-component` now componentizes based off the presence of component type information custom sections rather than always requiring a `[package.metadata.component]` section be present in `Cargo.toml`. * Bindings generation will now occur if a `wit` directory is present and `[package.metadata.component]` is not present in `Cargo.toml`. * Fix a panic in `cargo component add` if it encounters expected items that are not tables in `Cargo.toml`. * Fix not setting implicit tables for intermediate tables for the `cargo component add` command. * Fix not displaying anything when `--help` is present for commands passed directly to `cargo`. * `cargo-component` now uses the command adapter for binary examples and test/bench artifacts. * `cargo-component` now displays the same "Running" message that `cargo` does when using the `run`, `test`, and `bench` commands. * Some paths displayed in status messages have been prefix-stripped based on the CWD. This commit also contains a bit of refactoring to `run_cargo_command`, as it was getting long and unwieldy. Fixes #236.
- Loading branch information
1 parent
c627163
commit f38df25
Showing
9 changed files
with
661 additions
and
333 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Oops, something went wrong.