Expand description
cargo kick add <feature> — toggle an opt-in kick-rs feature
in the project’s Cargo.toml.
Why not just cargo add kick-rs --features X? Two reasons:
- We validate the feature name against a known list, so a typo
fails fast with a list of what’s available instead of producing
a working-but-useless
["typo"]features array. - We can describe each feature in one line —
cargo kick add listis a quick reference without leaving the shell.
The actual Cargo.toml mutation is done by toml_edit so the rest
of the file (layout, comments, dep ordering) is left alone.
Structs§
- AddArgs
- Decoded form of the
addsubcommand.
Enums§
- AddError
- AddOutcome
- Result of one
addinvocation.
Constants§
- KNOWN_
FEATURES - The features
cargo kick addknows about, with a one-line description forcargo kick add list. Keep in sync with the[features]blocks incrates/kick-rs/Cargo.toml.
Functions§
- add_
feature - Run the
addflow.