From dfc5a978fa47085f911f8f4b5fdd4d57a7b45779 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 2 Jan 2019 15:04:36 +0300 Subject: [PATCH] use semver::Version for version --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 2255b976..b4f5785c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -123,6 +123,8 @@ use std::process::Command; use std::str::from_utf8; use std::fmt; +use semver::Version; + pub use errors::{Error, ErrorKind, Result}; pub use dependency::{Dependency, DependencyKind}; @@ -230,7 +232,7 @@ pub struct Package { /// Name as given in the `Cargo.toml` pub name: String, /// Version given in the `Cargo.toml` - pub version: String, + pub version: Version, /// Authors given in the `Cargo.toml` #[serde(default)] pub authors: Vec,