dart-semver

Crates.iodart-semver
lib.rsdart-semver
version0.2.0
sourcesrc
created_at2023-05-13 09:16:41.238066
updated_at2023-07-17 05:50:56.510244
descriptionRust crate for parsing dart sdk's semver
homepagehttps://github.com/Yakiyo/dart-semver.rs
repositoryhttps://github.com/Yakiyo/dart-semver.rs
max_upload_size
id863637
size11,382
Yakiyo (Yakiyo)

documentation

https://docs.rs/dart-semver

README

Dart Semver

Crates.io docs.rs ci

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 Documentation: docs.rs/dart-semver

Usage

Add the crate to Cargo.toml

$ cargo add dart-semver
use dart_semver::{Version, Channel};

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

assert_eq!(v, Version::FullStable(4, 3, 4));
assert!(v.is_stable());

Commit count: 60

cargo fmt