Struct krates::LockOptions
source · pub struct LockOptions {
pub frozen: bool,
pub locked: bool,
pub offline: bool,
}
Fields§
§frozen: bool
Requires that the Cargo.lock file is up-to-date. If the lock file is missing, or it needs to be updated, Cargo will exit with an error. Prevents Cargo from attempting to access the network to determine if it is out-of-date.
locked: bool
Requires that the Cargo.lock file is up-to-date. If the lock file is missing, or it needs to be updated, Cargo will exit with an error.
offline: bool
Prevents Cargo from accessing the network for any reason. Without this flag, Cargo will stop with an error if it needs to access the network and the network is not available. With this flag, Cargo will attempt to proceed without the network if possible.
Beware that this may result in different dependency resolution than online mode. Cargo will restrict itself to crates that are downloaded locally, even if there might be a newer version as indicated in the local copy of the index. See the cargo fetch command to download dependencies before going offline.
Trait Implementations§
source§impl Clone for LockOptions
impl Clone for LockOptions
source§fn clone(&self) -> LockOptions
fn clone(&self) -> LockOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more