pub struct PkgOpts {
pub path: Option<String>,
pub offline: bool,
pub terse: bool,
pub locked: bool,
pub output_directory: Option<String>,
}
Fields
path: Option<String>
Path to the project, if not specified, current working directory will be used.
offline: bool
Offline mode, prevents Forc from using the network when managing dependencies. Meaning it will only try to use previously downloaded dependencies.
terse: bool
Terse mode. Limited warning and error output.
locked: bool
Requires that the Forc.lock file is up-to-date. If the lock file is missing, or it needs to be updated, Forc will exit with an error
output_directory: Option<String>
The directory in which the sway compiler output artifacts are placed.
By default, this is <project-root>/out
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PkgOpts
impl Send for PkgOpts
impl Sync for PkgOpts
impl Unpin for PkgOpts
impl UnwindSafe for PkgOpts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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