Crate workspacer_add_new_crate_to_workspace

Source

Traits§

AddNewCrateToWorkspace
The main trait: Add a brand-new crate to the workspace with minimal scaffolding.
AddToWorkspaceMembers
CreateCrateSkeleton
Extension trait to create the new crate skeleton: directory, Cargo.toml, src/lib.rs, …

Functions§

dash_to_snake_case
Helper to transform dashes => underscores for snake-case usage
find_single_prefix_match
A small helper that checks if crate_name starts with exactly one prefix + "-" from the scanned groups. If we find exactly one match, returns that prefix. If zero or multiple, None.