#[non_exhaustive]pub struct Manifest {
pub packages: Vec<Package>,
}
Available on crate feature
workspace
only.Expand description
The manifest of a workspace.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.packages: Vec<Package>
List of packages found.
Implementations§
Source§impl Manifest
impl Manifest
Sourcepub fn find_all(&self, m: WorkspaceFilter<'_>) -> Result<Vec<FoundPackage<'_>>>
pub fn find_all(&self, m: WorkspaceFilter<'_>) -> Result<Vec<FoundPackage<'_>>>
Find every single entrypoint available.
Sourcepub fn find_bins(&self, m: WorkspaceFilter<'_>) -> Result<Vec<FoundPackage<'_>>>
pub fn find_bins(&self, m: WorkspaceFilter<'_>) -> Result<Vec<FoundPackage<'_>>>
Find all binaries matching the given name in the workspace.
Sourcepub fn find_tests(
&self,
m: WorkspaceFilter<'_>,
) -> Result<Vec<FoundPackage<'_>>>
pub fn find_tests( &self, m: WorkspaceFilter<'_>, ) -> Result<Vec<FoundPackage<'_>>>
Find all tests associated with the given base name.
Sourcepub fn find_examples(
&self,
m: WorkspaceFilter<'_>,
) -> Result<Vec<FoundPackage<'_>>>
pub fn find_examples( &self, m: WorkspaceFilter<'_>, ) -> Result<Vec<FoundPackage<'_>>>
Find all examples matching the given name in the workspace.
Sourcepub fn find_benches(
&self,
m: WorkspaceFilter<'_>,
) -> Result<Vec<FoundPackage<'_>>>
pub fn find_benches( &self, m: WorkspaceFilter<'_>, ) -> Result<Vec<FoundPackage<'_>>>
Find all benches matching the given name in the workspace.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Manifest
impl RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin for Manifest
impl UnwindSafe for Manifest
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