cargo-edit
cargo-edit copied to clipboard
Input validation
Add some checks when parsing crate names passed as arguments:
- Check whether the name starts with a letter and contains only letters, numbers, dashes and hyphens (same requirements as crates.io has).
- Disallow passing '.' as path to crate to prevent accidental creation of circular dependencies.