Skip to content

Commit

Permalink
Add missing metadata fields that were added in rust-lang/cargo#5386
Browse files Browse the repository at this point in the history
  • Loading branch information
ysimonson committed Nov 8, 2018
1 parent 7678c74 commit 981de98
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,26 @@ pub struct Package {
/// An opaque identifier for a package
pub id: String,
source: Option<String>,
/// Description as given in the `Cargo.toml`
pub description: Option<String>,
/// List of dependencies of this particular package
pub dependencies: Vec<Dependency>,
/// License as given in the `Cargo.toml`
pub license: Option<String>,
/// Targets provided by the crate (lib, bin, example, test, ...)
pub targets: Vec<Target>,
/// Features provided by the crate, mapped to the features required by that feature.
pub features: HashMap<String, Vec<String>>,
/// Path containing the `Cargo.toml`
pub manifest_path: String,
/// Categories as given in the `Cargo.toml`
pub categories: Vec<String>,
/// Keywords as given in the `Cargo.toml`
pub keywords: Vec<String>,
/// Readme as given in the `Cargo.toml`
pub readme: Option<String>,
/// Repository as given in the `Cargo.toml`
pub repository: Option<String>,
/// Default Rust edition for the package
///
/// Beware that individual targets may specify their own edition in
Expand Down

0 comments on commit 981de98

Please sign in to comment.