pub struct Workspace<Metadata = Value> {
pub members: Vec<String>,
pub default_members: Vec<String>,
pub package: Option<PackageTemplate>,
pub exclude: Vec<String>,
pub metadata: Option<Metadata>,
pub resolver: Option<Resolver>,
pub dependencies: DepsSet,
pub lints: Option<LintGroups>,
}
Expand description
A manifest can contain both a package and workspace-wide properties
Fields§
§members: Vec<String>
Relative paths of crates in here
default_members: Vec<String>
Members to operate on when in the workspace root.
When specified, default-members
must expand to a subset of members
.
package: Option<PackageTemplate>
Template for inheritance
exclude: Vec<String>
Ignore these dirs
metadata: Option<Metadata>
Shared info
resolver: Option<Resolver>
Compatibility setting
dependencies: DepsSet
Template for needs_workspace_inheritance
lints: Option<LintGroups>
Workspace-level lint groups
Trait Implementations§
Source§impl<'de, Metadata> Deserialize<'de> for Workspace<Metadata>where
Metadata: Deserialize<'de>,
impl<'de, Metadata> Deserialize<'de> for Workspace<Metadata>where
Metadata: Deserialize<'de>,
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
impl<Metadata> StructuralPartialEq for Workspace<Metadata>
Auto Trait Implementations§
impl<Metadata> Freeze for Workspace<Metadata>where
Metadata: Freeze,
impl<Metadata> RefUnwindSafe for Workspace<Metadata>where
Metadata: RefUnwindSafe,
impl<Metadata> Send for Workspace<Metadata>where
Metadata: Send,
impl<Metadata> Sync for Workspace<Metadata>where
Metadata: Sync,
impl<Metadata> Unpin for Workspace<Metadata>where
Metadata: Unpin,
impl<Metadata> UnwindSafe for Workspace<Metadata>where
Metadata: UnwindSafe,
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