dhuseby / cargo-bootstrap

Bootstrapping script for Rust Cargo when cross-compilation is difficult or impossible.
BSD 2-Clause "Simplified" License
37 stars 9 forks source link

Add a --no-download flag to avoid fetching crates #10

Closed stevenjm closed 7 years ago

stevenjm commented 9 years ago

In theory, cargo-bootstrap would previously have worked in no-download mode, as long as all of the versions installed are the latest versions in the crates index. For use in a networkless environment, or a package build system that needs to be usable without networking, it's sometimes useful to have a set of pre-downloaded crates that satisfy dependencies without being the latest versions available.

This commit adds a --no-download flag which forces cargo-bootstrap to look only for locally downloaded versions of crates, and fail if a dependency cannot be resolved that way.

This is a reworked version of https://github.com/dhuseby/cargo-bootstrap/pull/7, with the following main differences:

dhuseby commented 8 years ago

@stevenjm can you rebase this for me? I'll land it then.

dhuseby commented 7 years ago

@stevenjm I'm still waiting for a rebase.

stevenjm commented 7 years ago

Sorry, I just got around to this now. It appears to have already been manually merged as ed1ed377a97d9dbef26883e2928867acc5f7f630 by @krig, prior to the changes that created the conflicts. I'll close this PR.

dhuseby commented 7 years ago

Great! Thanks