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
.