pub struct WorkspacePackage {
Show 15 fields pub edition: Option<Edition>, pub version: Option<String>, pub authors: Option<Vec<String>>, pub description: Option<String>, pub homepage: Option<String>, pub documentation: Option<String>, pub readme: Option<StringOrBool>, pub keywords: Option<Vec<String>>, pub categories: Option<Vec<String>>, pub license: Option<String>, pub license_file: Option<String>, pub publish: Option<Publish>, pub exclude: Option<Vec<String>>, pub include: Option<Vec<String>>, pub rust_version: Option<String>,
}
Expand description

The workspace.package table is where you define keys that can be inherited by members of a workspace. These keys can be inherited by defining them in the member package with {key}.workspace = true.

See https://doc.rust-lang.org/nightly/cargo/reference/workspaces.html#the-package-table for more details.

Fields

edition: Option<Edition>version: Option<String>

e.g. “1.9.0”

authors: Option<Vec<String>>

e.g. [“Author e@mail”, “etc”]

description: Option<String>

A short blurb about the package. This is not rendered in any format when uploaded to crates.io (aka this is not markdown).

homepage: Option<String>documentation: Option<String>readme: Option<StringOrBool>

This points to a file under the package root (relative to this Cargo.toml).

keywords: Option<Vec<String>>categories: Option<Vec<String>>

This is a list of up to five categories where this crate would fit. e.g. [“command-line-utilities”, “development-tools::cargo-plugins”]

license: Option<String>

e.g. “MIT”

license_file: Option<String>publish: Option<Publish>exclude: Option<Vec<String>>include: Option<Vec<String>>rust_version: Option<String>

e.g. “1.63.0”

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.