A crate name and version parser
serde
enables serde supportstd
to enable std::error::Error
```rust let input = "zstd-sys-1.4.15+zstd.1.4.4"; let crate_ = CrateVersion::tryparse(input).unwrap(); asserteq!(crate.name, "zstd-sys"); asserteq!(crate_.version, "1.4.15+zstd.1.4.4");
let input = "wasi-0.9.0+wasi-snapshot-preview1"; let crate_ = CrateVersion::tryparse(input).unwrap(); asserteq!(crate.name, "wasi"); asserteq!(crate_.version, "0.9.0+wasi-snapshot-preview1");
let input = "winapi-i686-pc-windows-gnu-0.4.0"; let crate_ = CrateVersion::tryparse(input).unwrap(); asserteq!(crate.name, "winapi-i686-pc-windows-gnu"); asserteq!(crate_.version, "0.4.0"); ```
License: 0BSD