pub struct BuildPlan { /* private fields */ }
Expand description
Represents the full build plan for a project.
Implementations
sourceimpl BuildPlan
impl BuildPlan
sourcepub fn new(
manifest: &ManifestFile,
sway_git_tag: &str,
offline: bool
) -> Result<Self>
pub fn new(
manifest: &ManifestFile,
sway_git_tag: &str,
offline: bool
) -> Result<Self>
Create a new build plan for the project by fetching and pinning dependenies.
sourcepub fn from_lock(
proj_path: &Path,
lock: &Lock,
sway_git_tag: &str
) -> Result<Self>
pub fn from_lock(
proj_path: &Path,
lock: &Lock,
sway_git_tag: &str
) -> Result<Self>
Attempt to load the build plan from the Lock
.
sourcepub fn from_lock_file(lock_path: &Path, sway_git_tag: &str) -> Result<Self>
pub fn from_lock_file(lock_path: &Path, sway_git_tag: &str) -> Result<Self>
Attempt to load the build plan from the Forc.lock
file.
sourcepub fn validate(&self, manifest: &Manifest, sway_git_tag: &str) -> Result<()>
pub fn validate(&self, manifest: &Manifest, sway_git_tag: &str) -> Result<()>
Ensure that the build plan is valid for the given manifest.
sourcepub fn path_map(&self) -> &PathMap
pub fn path_map(&self) -> &PathMap
View the build plan’s map of pinned package IDs to the path containing a local copy of their source.
sourcepub fn compilation_order(&self) -> &[NodeIx]
pub fn compilation_order(&self) -> &[NodeIx]
The order in which nodes are compiled, determined via a toposort of the package graph.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BuildPlan
impl Send for BuildPlan
impl Sync for BuildPlan
impl Unpin for BuildPlan
impl UnwindSafe for BuildPlan
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more