diff options
author | nickelc <constantin.nickel@gmail.com> | 2023-04-26 17:04:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 11:04:15 -0400 |
commit | 12fd54e7a81c016fc54f46537e2acebd5e4f45c6 (patch) | |
tree | 974ef6817d4fc979b726d8f11d5103403a4601d5 | |
parent | d89b357ad3f28075d835280ab376d3351eefe7a0 (diff) |
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
```
-rw-r--r-- | Cargo.lock | 137 | ||||
-rw-r--r-- | Cargo.toml | 2 |
2 files changed, 3 insertions, 136 deletions
@@ -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" @@ -170,12 +166,6 @@ 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" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -532,95 +522,6 @@ dependencies = [ ] [[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" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -1089,18 +990,6 @@ dependencies = [ ] [[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" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -1341,15 +1230,6 @@ 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" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -1517,19 +1397,6 @@ 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" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -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" |