From 12fd54e7a81c016fc54f46537e2acebd5e4f45c6 Mon Sep 17 00:00:00 2001 From: nickelc Date: Wed, 26 Apr 2023 17:04:15 +0200 Subject: [PATCH] Downgrade and pin the `bytelines` crate (#1378) The versions 2.3+ added support for Tokio's `AsyncBufRead` trait and futures' `Stream` trait without making the new dependencies optional. By downgrading `bytelines`, the compilation time can be reduced. ``` $ cargo up -p bytelines --precise 2.2.2 Updating bytelines v2.4.0 -> v2.2.2 Removing bytes v1.4.0 Removing futures v0.3.26 Removing futures-channel v0.3.26 Removing futures-core v0.3.26 Removing futures-executor v0.3.26 Removing futures-io v0.3.26 Removing futures-macro v0.3.26 Removing futures-sink v0.3.26 Removing futures-task v0.3.26 Removing futures-util v0.3.26 Removing pin-project-lite v0.2.9 Removing pin-utils v0.1.0 Removing slab v0.4.8 Removing tokio v1.26.0 ``` --- Cargo.lock | 137 +---------------------------------------------------- Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 136 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 22cce757d..46e704a1c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -155,13 +155,9 @@ checksum = "0d261e256854913907f67ed06efbc3338dfe6179796deefc1ff763fc1aee5535" [[package]] name = "bytelines" -version = "2.4.0" +version = "2.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "784face321c535fcd9a1456632fa720aa53ea0640b57341d961c8c09de2da59f" -dependencies = [ - "futures", - "tokio", -] +checksum = "791e4e40d13e1463dee537b254225c12c46ec7328f1817c6264873bc166f615f" [[package]] name = "bytemuck" @@ -169,12 +165,6 @@ version = "1.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "17febce684fd15d89027105661fec94afb475cb995fbc59d2865198446ba2eea" -[[package]] -name = "bytes" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89b2fd2a0dcf38d7971e2194b6b6eebab45ae01067456a7fd93d5547a61b70be" - [[package]] name = "bytesize" version = "1.2.0" @@ -531,95 +521,6 @@ dependencies = [ "percent-encoding", ] -[[package]] -name = "futures" -version = "0.3.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13e2792b0ff0340399d58445b88fd9770e3489eff258a4cbc1523418f12abf84" -dependencies = [ - "futures-channel", - "futures-core", - "futures-executor", - "futures-io", - "futures-sink", - "futures-task", - "futures-util", -] - -[[package]] -name = "futures-channel" -version = "0.3.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e5317663a9089767a1ec00a487df42e0ca174b61b4483213ac24448e4664df5" -dependencies = [ - "futures-core", - "futures-sink", -] - -[[package]] -name = "futures-core" -version = "0.3.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec90ff4d0fe1f57d600049061dc6bb68ed03c7d2fbd697274c41805dcb3f8608" - -[[package]] -name = "futures-executor" -version = "0.3.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8de0a35a6ab97ec8869e32a2473f4b1324459e14c29275d14b10cb1fd19b50e" -dependencies = [ - "futures-core", - "futures-task", - "futures-util", -] - -[[package]] -name = "futures-io" -version = "0.3.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfb8371b6fb2aeb2d280374607aeabfc99d95c72edfe51692e42d3d7f0d08531" - -[[package]] -name = "futures-macro" -version = "0.3.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95a73af87da33b5acf53acfebdc339fe592ecf5357ac7c0a7734ab9d8c876a70" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "futures-sink" -version = "0.3.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f310820bb3e8cfd46c80db4d7fb8353e15dfff853a127158425f31e0be6c8364" - -[[package]] -name = "futures-task" -version = "0.3.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcf79a1bf610b10f42aea489289c5a2c478a786509693b80cd39c44ccd936366" - -[[package]] -name = "futures-util" -version = "0.3.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c1d6de3acfef38d2be4b1f543f553131788603495be83da675e180c8d6b7bd1" -dependencies = [ - "futures-channel", - "futures-core", - "futures-io", - "futures-macro", - "futures-sink", - "futures-task", - "memchr", - "pin-project-lite", - "pin-utils", - "slab", -] - [[package]] name = "getrandom" version = "0.2.8" @@ -1088,18 +989,6 @@ dependencies = [ "siphasher", ] -[[package]] -name = "pin-project-lite" -version = "0.2.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" - -[[package]] -name = "pin-utils" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" - [[package]] name = "pkg-config" version = "0.3.26" @@ -1340,15 +1229,6 @@ version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7bd3e3206899af3f8b12af284fafc038cc1dc2b41d1b89dd17297221c5d225de" -[[package]] -name = "slab" -version = "0.4.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6528351c9bc8ab22353f9d776db39a20288e8d6c37ef8cfe3317cf875eecfc2d" -dependencies = [ - "autocfg", -] - [[package]] name = "smol_str" version = "0.1.24" @@ -1516,19 +1396,6 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" -[[package]] -name = "tokio" -version = "1.26.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03201d01c3c27a29c8a5cee5b55a93ddae1ccf6f08f65365c2c918f8c1b76f64" -dependencies = [ - "autocfg", - "bytes", - "memchr", - "pin-project-lite", - "windows-sys 0.45.0", -] - [[package]] name = "toml" version = "0.5.11" diff --git a/Cargo.toml b/Cargo.toml index a5dcb97e9..fb75c24da 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,7 @@ ansi_term = "0.12.1" atty = "0.2.14" bitflags = "2.2.1" box_drawing = "0.1.2" -bytelines = "2.4.0" +bytelines = "=2.2.2" # Pin version until its tokio and futures dependencies are optional. clap = { version = "4.1.8", features = ["derive", "help", "usage", "error-context", "wrap_help"] } console = "0.15.0" ctrlc = "3.2.5"