Initial addition of airplane mode #4686 #4864
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#4686
Hi all, sorry for the delay in getting this implemented. @alexcrichton thanks again for the amazing write up. I have a lot more time now to go back on forth on this, so I wanted to get the first version of airplane mode up for review. I've implemented everything except for the subcommand for populating the offline cache, which I've wanted to discuss some. There's already been some work in this space:
Additionally, one can already download the crates they want by setting up a cargo project with their desired dependencies, and running something like
cargo update && cargo build
.We could take the approach of trying to make all of crates accessible offline via some clever caching (@est31 mentioned it's possible to reduce the size of crates to only 3GB), or try to make a better user interface for choosing crates to download. Maybe something like
cargo download --popular 100
to download the 100 most popular crates, orcargo download $crate
to download the dependencies needed to build a certain crate?Also, Happy Holidays 🎅🎉!