cargo-edit icon indicating copy to clipboard operation
cargo-edit copied to clipboard

Input validation

Open lentalamp opened this issue 4 years ago • 0 comments

Add some checks when parsing crate names passed as arguments:

  1. Check whether the name starts with a letter and contains only letters, numbers, dashes and hyphens (same requirements as crates.io has).
  2. Disallow passing '.' as path to crate to prevent accidental creation of circular dependencies.

lentalamp avatar May 22 '21 14:05 lentalamp