Struct krates::LockOptions [−][src]
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
Auto Trait Implementations
impl RefUnwindSafe for LockOptions
impl Send for LockOptions
impl Sync for LockOptions
impl Unpin for LockOptions
impl UnwindSafe for LockOptions
Blanket Implementations
Mutably borrows from an owned value. Read more