Skip to content

Commit

Permalink
use semver::Version for version
Browse files Browse the repository at this point in the history
  • Loading branch information
matklad committed Jan 2, 2019
1 parent 86705c4 commit dfc5a97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down Expand Up @@ -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<String>,
Expand Down

0 comments on commit dfc5a97

Please sign in to comment.