From 9d2dcfe4d7d6792d2be8d32acc0e21186ccb66fa Mon Sep 17 00:00:00 2001 From: "Dr. Matthias Ratajczak" Date: Wed, 1 Mar 2023 17:51:42 +0100 Subject: [PATCH] prune dependency features --- .gitignore | 2 ++ Cargo.lock | 52 ---------------------------------------------------- Cargo.toml | 18 +++--------------- 3 files changed, 5 insertions(+), 67 deletions(-) diff --git a/.gitignore b/.gitignore index ea8c4bf..6566dd6 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /target +report.json +report.html diff --git a/Cargo.lock b/Cargo.lock index c69d74b..650625f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -14,12 +14,6 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" -[[package]] -name = "bytes" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89b2fd2a0dcf38d7971e2194b6b6eebab45ae01067456a7fd93d5547a61b70be" - [[package]] name = "cfg-if" version = "1.0.0" @@ -60,7 +54,6 @@ checksum = "13e2792b0ff0340399d58445b88fd9770e3489eff258a4cbc1523418f12abf84" dependencies = [ "futures-channel", "futures-core", - "futures-executor", "futures-io", "futures-sink", "futures-task", @@ -83,34 +76,12 @@ 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" @@ -129,16 +100,11 @@ 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]] @@ -166,12 +132,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "memchr" -version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" - [[package]] name = "mio" version = "0.8.6" @@ -291,15 +251,6 @@ dependencies = [ "libc", ] -[[package]] -name = "slab" -version = "0.4.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6528351c9bc8ab22353f9d776db39a20288e8d6c37ef8cfe3317cf875eecfc2d" -dependencies = [ - "autocfg", -] - [[package]] name = "smallvec" version = "1.10.0" @@ -324,9 +275,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c8e00990ebabbe4c14c08aca901caed183ecd5c09562a12c824bb53d3c3fd3af" dependencies = [ "autocfg", - "bytes", - "libc", - "memchr", "pin-project-lite", "tokio-macros", "windows-sys 0.42.0", diff --git a/Cargo.toml b/Cargo.toml index 4c90c78..c53e0a4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,21 +4,9 @@ edition = "2021" version = "0.1.0" [dependencies] -futures = "0.3" -crossterm = { version = "0.26", default-features = false, features = [ - "event-stream", -] } -tokio = { version = "1.25", default-features = false, features = [ - "io-util", - "macros", - "sync", - "rt", - "libc", - "memchr", - "io-std", - "bytes", - "time", -] } +futures = { default-features = false, version = "0.3" } +crossterm = { version = "0.26", default-features = false, features = ["event-stream"] } +tokio = { version = "1.25", default-features = false, features = ["time", "macros", "rt"] } [profile.release] opt-level = "z"