Skip to main content

Module new

Module new 

Source
Expand description

cargo kick new — scaffold a new kick-rs project.

Walks the embedded template manifest and writes each file under a freshly-created project directory, substituting {{project_name}} / {{project_name_snake}} into the contents.

Structs§

NewArgs
Decoded form of the new subcommand’s arguments.

Enums§

NewError
User-facing error from the new flow. Stringly-typed because the CLI shows them to a human, not a downstream caller.

Functions§

run
Run the scaffold against the given args. Returns the path that was written so the caller can echo it back.
validate_name
Validate the project name. Mirrors what cargo itself accepts for crate names: lowercase ASCII letters / digits / - / _, must start with a letter, no consecutive hyphens.