Expand description
Module for cargo-component configuration.
This implements an argument parser because clap
is not
designed for parsing unknown or unsupported arguments.
See https://github.com/clap-rs/clap/issues/1404 for some discussion around this issue.
To properly “wrap” cargo
commands, we need to be able to
detect certain arguments, but not error out if the arguments
are otherwise unknown as they will be passed to cargo
directly.
This will allow cargo-component
to be used as a drop-in
replacement for cargo
without having to be fully aware of
the many subcommands and options that cargo
supports.
What is detected here is the minimal subset of the arguments
that cargo
supports which are necessary for cargo-component
to function.
Structs§
- Represents known cargo arguments.
- Represents a cargo package specifier.
- Configuration information for cargo-component.