Crates.io | recital |
lib.rs | recital |
version | 0.3.0 |
source | src |
created_at | 2016-02-18 18:22:23.412174 |
updated_at | 2016-02-20 00:13:02.817406 |
description | Create, parse, edit, and compare semantic version numbers. |
homepage | https://github.com/kherge/recital/ |
repository | https://github.com/kherge/recital.git |
max_upload_size | |
id | 4205 |
size | 40,333 |
Create, parse, edit, and compare semantic version numbers.
#[macro_use]
extern crate recital;
fn main() {
let installed: Version = "1.0.0-beta".parse();
let published: Version = "1.3.4".parse();
if published > installed {
println("A new version is available: {}", published);
}
}
Please refer to the documentation for the crate.
Add it to your list of dependencies.
"recital" = "0.3.0"
Released under the MIT license.