pub struct PackageTemplate {Show 16 fields
pub authors: Option<Vec<String>>,
pub categories: Option<Vec<String>>,
pub description: Option<String>,
pub documentation: Option<String>,
pub edition: Option<Edition>,
pub exclude: Option<Vec<String>>,
pub homepage: Option<String>,
pub include: Option<Vec<String>>,
pub keywords: Option<Vec<String>>,
pub license: Option<String>,
pub license_file: Option<PathBuf>,
pub publish: Publish,
pub readme: OptionalFile,
pub repository: Option<String>,
pub rust_version: Option<String>,
pub version: Option<String>,
}
Expand description
Workspace can predefine properties that can be inherited via { workspace = true }
in its member packages.
Fields§
Deprecated
categories: Option<Vec<String>>
§description: Option<String>
Multi-line text, some people use Markdown here
documentation: Option<String>
URL
edition: Option<Edition>
Opt-in to new Rust behaviors
exclude: Option<Vec<String>>
Don’t publish these files, relative to workspace
homepage: Option<String>
Homepage URL
include: Option<Vec<String>>
Publish these files, relative to workspace
keywords: Option<Vec<String>>
For search
license: Option<String>
SPDX
license_file: Option<PathBuf>
If not SPDX
publish: Publish
Block publishing or choose custom registries
readme: OptionalFile
Opt-out or custom path, relative to workspace
repository: Option<String>
(HTTPS) repository URL
rust_version: Option<String>
Minimum required rustc version in format 1.99
version: Option<String>
Package version semver
Trait Implementations§
Source§impl Clone for PackageTemplate
impl Clone for PackageTemplate
Source§fn clone(&self) -> PackageTemplate
fn clone(&self) -> PackageTemplate
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PackageTemplate
impl Debug for PackageTemplate
Source§impl Default for PackageTemplate
impl Default for PackageTemplate
Source§fn default() -> PackageTemplate
fn default() -> PackageTemplate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PackageTemplate
impl<'de> Deserialize<'de> for PackageTemplate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PackageTemplate
impl PartialEq for PackageTemplate
Source§impl Serialize for PackageTemplate
impl Serialize for PackageTemplate
impl Eq for PackageTemplate
impl StructuralPartialEq for PackageTemplate
Auto Trait Implementations§
impl Freeze for PackageTemplate
impl RefUnwindSafe for PackageTemplate
impl Send for PackageTemplate
impl Sync for PackageTemplate
impl Unpin for PackageTemplate
impl UnwindSafe for PackageTemplate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.