Skip to content

command-parser: 0.4.0

Compare
Choose a tag to compare
@zeylahellyer zeylahellyer released this 12 May 22:16
5b05dcc

Upgrade Path

The MSRV is now Rust 1.49.

Create an Arguments instance via Arguments::new instead of using the From implementation.

When checking if a command is case-sensitive use CaseSensitivity::is_sensitive.

Changes

Remove From<&str> implementation for Arguments (#763 - @vivian).

Hide the unicase dependency by offering alternatives in the API:

  • Add CaseSensitivity::is_sensitive to check if the command is case-sensitive
  • Implement AsMut<str> for CaseSensitivity
  • Commands now iterates over (&str, bool) instead of &CaseSensitivity
  • CommandsMut now iterates over (&mut str, bool) instead of &mut CaseSensitivity

(#692 - @vivian).