-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
Problem
cargo flags --frozen and --offline are confusing. the cargo book says:
_As of Rust 1.11.0, Cargo understands a new flag, --frozen, which is an assertion that it shouldn’t touch the network. When passed, Cargo will immediately return an error if it would otherwise attempt a network request. The error should include contextual information about why the network request is being made in the first place to help debug as well. Note that this flag does not change the behavior of Cargo, it simply asserts that Cargo shouldn’t touch the network as a previous command has been run to ensure that network activity shouldn’t be necessary.
The --offline flag was added in Rust 1.36.0. This flag tells Cargo to not access the network, and try to proceed with available cached data if possible. You can use cargo fetch in one project to download dependencies before going offline, and then use those same dependencies in another project with the --offline flag (or configuration value)._
if you paste here a better description what the difference is i d create a pull request to adjust. if it is really the same, maybe drop one of the flags. it sounds weird that experienced programmers use both flags then, like COSMIC desktop build vendored with:
cargo build --release --frozen --offline
reference: