Skip to content

Commit

Permalink
Use a global cache for all downloaded binaries
Browse files Browse the repository at this point in the history
This commit switches wasm-pack to using a global cache for all download
binaries, living typically in a user's home directory. The intention
here is to aovid creating a `bin` folder in all wasm-pack projects and
additionally share downloads between projects to ensure that you're
downloading a minimal number of binaries from the network.

Along the way the downloading code was restructured to support a global
cache, but everything should largely be as it was before!

Closes #292
  • Loading branch information
alexcrichton committed Nov 2, 2018
1 parent df4ef1f commit c664cfd
Show file tree
Hide file tree
Showing 13 changed files with 670 additions and 600 deletions.
191 changes: 146 additions & 45 deletions Cargo.lock

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ atty = "0.2.11"
cargo_metadata = "0.6.0"
console = "0.6.1"
curl = "0.4.13"
dirs = "1.0.4"
failure = "0.1.2"
flate2 = "1.0.2"
hex = "0.3"
human-panic = "1.0.1"
indicatif = "0.9.0"
lazy_static = "1.1.0"
Expand All @@ -24,6 +26,7 @@ parking_lot = "0.6"
serde = "1.0.74"
serde_derive = "1.0.74"
serde_json = "1.0.26"
siphasher = "0.2.3"
slog = "2.3"
slog-term = "2.4"
slog-async = "2.3"
Expand Down
Loading

0 comments on commit c664cfd

Please sign in to comment.