rust-version 0.4.0

Crate for parsing Rust versions.
Documentation

Rust version parsing

Crate for parsing Rust versions. You may freely use and modify this code under the CC0 1.0 Universal License.

You can find the rustdoc here.

Usage

To use in your own project, just add the below to your Cargo.toml file.

[dependencies]
rust-version = "0.1"

By default, Version will parse out commit strings and ensure that they match actual git commits to the Rust project. This is very expensive, and can be disabled by disabling the commit feature:

[dependencies]
rust-version = { version = "0.1", default-features = false }