aboutsummaryrefslogtreecommitdiff
path: root/Cargo.lock
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-07-07 21:36:18 +0100
committerGitHub <[email protected]>2020-07-07 21:36:18 +0100
commit56ade20380a028026eeb71af2a8a81e37ede7efb (patch)
treefbf0e24250cc36eaa122904e78cd7cb50fe1c665 /Cargo.lock
parent980a67f44629ed67a54b603aaf9d015a81d61f7a (diff)
parentf92bfb580780cda02f9ba8a935538f984d8a4c0d (diff)
Merge #4972
4972: Gzip artifacts r=Veetaha a=Veetaha [Here is the test release](https://github.com/Veetaha/rust-analyzer/releases/tag/2020-06-21) Change in size: `~ 25 MB -> ~ 8 MB (gzipped)` The time to gzip during the dist build takes a somewhat considerable amount of time tho. Having already compiled artifacts this takes in debug mode: ``` ~/dev/rust-analyzer (feat/gzip-binaries) $ time cargo xtask dist Finished dev [unoptimized] target(s) in 0.06s Running `target/debug/xtask dist` > cargo build --manifest-path ./crates/rust-analyzer/Cargo.toml --bin rust-analyzer --release Finished release [optimized] target(s) in 0.05s > strip ./target/release/rust-analyzer real 0m34.331s user 0m34.245s sys 0m0.078s ``` In release mode this is much faster: ``` ~/dev/rust-analyzer (feat/gzip-binaries) $ time cargo run -p xtask --release -- dist Finished release [optimized] target(s) in 0.04s Running `target/release/xtask dist` > cargo build --manifest-path ./crates/rust-analyzer/Cargo.toml --bin rust-analyzer --release Finished release [optimized] target(s) in 0.06s > strip ./target/release/rust-analyzer real 0m2.401s ``` **[UPD]** adding a profile override for `miniz_oxide` does the thing to ensure good performrance We might need to notify all other ra plugins' maintainers about the change in our GH releases if we merge this PR, or we could leave uncompressed files along with gzipped for a while until everyone migrates. Co-authored-by: Veetaha <[email protected]>
Diffstat (limited to 'Cargo.lock')
-rw-r--r--Cargo.lock22
1 files changed, 22 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 916fc53e0..108403ce6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -208,6 +208,15 @@ dependencies = [
208] 208]
209 209
210[[package]] 210[[package]]
211name = "crc32fast"
212version = "1.2.0"
213source = "registry+https://github.com/rust-lang/crates.io-index"
214checksum = "ba125de2af0df55319f41944744ad91c71113bf74a4646efff39afe1f6842db1"
215dependencies = [
216 "cfg-if",
217]
218
219[[package]]
211name = "crossbeam-channel" 220name = "crossbeam-channel"
212version = "0.4.2" 221version = "0.4.2"
213source = "registry+https://github.com/rust-lang/crates.io-index" 222source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -341,6 +350,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
341checksum = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d" 350checksum = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d"
342 351
343[[package]] 352[[package]]
353name = "flate2"
354version = "1.0.16"
355source = "registry+https://github.com/rust-lang/crates.io-index"
356checksum = "68c90b0fc46cf89d227cc78b40e494ff81287a92dd07631e5af0d06fe3cf885e"
357dependencies = [
358 "cfg-if",
359 "crc32fast",
360 "libc",
361 "miniz_oxide",
362]
363
364[[package]]
344name = "flycheck" 365name = "flycheck"
345version = "0.1.0" 366version = "0.1.0"
346dependencies = [ 367dependencies = [
@@ -1993,6 +2014,7 @@ name = "xtask"
1993version = "0.1.0" 2014version = "0.1.0"
1994dependencies = [ 2015dependencies = [
1995 "anyhow", 2016 "anyhow",
2017 "flate2",
1996 "pico-args", 2018 "pico-args",
1997 "proc-macro2", 2019 "proc-macro2",
1998 "quote", 2020 "quote",