You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This command is asking Cargo to install cbindgen from crates.io, so it inherently needs to be online.
If you want to install something that is downloaded locally, the --path option can be used. In this example, perhaps something like cargo install --path vendor/cbindgen --offline. The choice of --locked vs --frozen vs --offline is maybe a little subtle, and in this case no flag is also an option if you already have vendoring configured, as it doesn't need the network in that case.
cargo install --frozen
with a vendor directory set in.cargo/config
is updating the crates-io index while it shouldn't do that.This can currently be solved with
--offline
, but it should not attempt reach out to the internet with--frozen
.Also,
--offline
doesn't exist before v1.36.0.Reproducing this:
Cargo.toml
.cargo/config
The text was updated successfully, but these errors were encountered: