Struct cargo::core::workspace::WorkspaceRootConfig
source · pub struct WorkspaceRootConfig {
root_dir: PathBuf,
members: Option<Vec<String>>,
default_members: Option<Vec<String>>,
exclude: Vec<String>,
inheritable_fields: InheritableFields,
custom_metadata: Option<Value>,
}
Expand description
Intermediate configuration of a workspace root in a manifest.
Knows the Workspace Root path, as well as members
and exclude
lists of path patterns, which
together tell if some path is recognized as a member by this root or not.
Fields§
§root_dir: PathBuf
§members: Option<Vec<String>>
§default_members: Option<Vec<String>>
§exclude: Vec<String>
§inheritable_fields: InheritableFields
§custom_metadata: Option<Value>
Implementations§
source§impl WorkspaceRootConfig
impl WorkspaceRootConfig
sourcepub fn new(
root_dir: &Path,
members: &Option<Vec<String>>,
default_members: &Option<Vec<String>>,
exclude: &Option<Vec<String>>,
inheritable: &Option<InheritableFields>,
custom_metadata: &Option<Value>
) -> WorkspaceRootConfig
pub fn new( root_dir: &Path, members: &Option<Vec<String>>, default_members: &Option<Vec<String>>, exclude: &Option<Vec<String>>, inheritable: &Option<InheritableFields>, custom_metadata: &Option<Value> ) -> WorkspaceRootConfig
Creates a new Intermediate Workspace Root configuration.
sourcefn is_excluded(&self, manifest_path: &Path) -> bool
fn is_excluded(&self, manifest_path: &Path) -> bool
Checks the path against the excluded
list.
This method does not consider the members
list.
fn has_members_list(&self) -> bool
fn members_paths(&self, globs: &[String]) -> CargoResult<Vec<PathBuf>>
fn expand_member_path(path: &Path) -> CargoResult<Vec<PathBuf>>
pub fn inheritable(&self) -> &InheritableFields
Trait Implementations§
source§impl Clone for WorkspaceRootConfig
impl Clone for WorkspaceRootConfig
source§fn clone(&self) -> WorkspaceRootConfig
fn clone(&self) -> WorkspaceRootConfig
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 moreAuto Trait Implementations§
impl RefUnwindSafe for WorkspaceRootConfig
impl Send for WorkspaceRootConfig
impl Sync for WorkspaceRootConfig
impl Unpin for WorkspaceRootConfig
impl UnwindSafe for WorkspaceRootConfig
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 696 bytes