Dart Semver

Rust crate for parsing dart sdk's semver

Pure rust implementation to parse a dart sdk version string to a rust struct.

Reference: https://github.com/dart-lang/sdk/blob/main/tools/VERSION

Usage

Add the crate to Cargo.toml bash $ cargo add dart-semver

```rs use dart_semver::{Version, Channel};

let v = Version::parse("4.3.4").unwrap();

asserteq!(v, Version { major: 4, minor: 3, patch: 4, prerelease: None, prereleasepatch: None, channel: Channel::Stable })

```