From 981de981ac857527943a337aba3a8643041c3451 Mon Sep 17 00:00:00 2001 From: Yusuf Simonson Date: Thu, 8 Nov 2018 13:36:40 -0500 Subject: [PATCH] Add missing metadata fields that were added in https://github.com/rust-lang/cargo/pull/5386 --- src/lib.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 773ff230..8b441456 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -163,14 +163,26 @@ pub struct Package { /// An opaque identifier for a package pub id: String, source: Option, + /// Description as given in the `Cargo.toml` + pub description: Option, /// List of dependencies of this particular package pub dependencies: Vec, + /// License as given in the `Cargo.toml` + pub license: Option, /// Targets provided by the crate (lib, bin, example, test, ...) pub targets: Vec, /// Features provided by the crate, mapped to the features required by that feature. pub features: HashMap>, /// Path containing the `Cargo.toml` pub manifest_path: String, + /// Categories as given in the `Cargo.toml` + pub categories: Vec, + /// Keywords as given in the `Cargo.toml` + pub keywords: Vec, + /// Readme as given in the `Cargo.toml` + pub readme: Option, + /// Repository as given in the `Cargo.toml` + pub repository: Option, /// Default Rust edition for the package /// /// Beware that individual targets may specify their own edition in