Skip to main content

Module add

Module add 

Source
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:

  1. 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.
  2. We can describe each feature in one line — cargo kick add list is 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 add subcommand.

Enums§

AddError
AddOutcome
Result of one add invocation.

Constants§

KNOWN_FEATURES
The features cargo kick add knows about, with a one-line description for cargo kick add list. Keep in sync with the [features] blocks in crates/kick-rs/Cargo.toml.

Functions§

add_feature
Run the add flow.