From c9377f864452fe4f7a9c4ee464da00397f682746 Mon Sep 17 00:00:00 2001 From: Davis Vaughan Date: Fri, 30 Aug 2024 10:10:14 -0400 Subject: [PATCH] Clean up list of direct dependencies with `cargo machete` (#495) --- Cargo.lock | 59 ++++-------------------------- crates/ark/Cargo.toml | 6 --- crates/harp/Cargo.toml | 3 -- crates/harp/harp-macros/Cargo.toml | 2 - crates/stdext/Cargo.toml | 1 - 5 files changed, 7 insertions(+), 64 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7df634b31..c121af8ad 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -297,20 +297,16 @@ dependencies = [ "futures", "harp", "home", - "html5ever", "http 0.2.9", - "hyper 0.14.26", "itertools", "lazy_static", "libc", "libr", - "lock_api", "log", "mime_guess", "nix", "notify", "once_cell", - "parking_lot 0.12.1", "regex", "reqwest", "reqwest-middleware", @@ -329,7 +325,6 @@ dependencies = [ "tracing", "tracing-appender", "tracing-error", - "tracing-log", "tracing-subscriber", "tree-sitter", "tree-sitter-r", @@ -1116,14 +1111,11 @@ dependencies = [ "ctor", "harp-macros", "itertools", - "lazy_static", "libc", "libloading", "libr", - "lock_api", "log", "once_cell", - "parking_lot 0.12.1", "regex", "rust-embed", "semver", @@ -1137,7 +1129,6 @@ dependencies = [ name = "harp-macros" version = "0.1.0" dependencies = [ - "proc-macro2", "quote", "syn 2.0.32", ] @@ -1235,17 +1226,6 @@ dependencies = [ "itoa", ] -[[package]] -name = "http-body" -version = "0.4.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5f38f16d184e36f2408a55281cd658ecbd3ca05cce6d6510a176eca393e26d1" -dependencies = [ - "bytes", - "http 0.2.9", - "pin-project-lite", -] - [[package]] name = "http-body" version = "1.0.1" @@ -1265,7 +1245,7 @@ dependencies = [ "bytes", "futures-util", "http 1.1.0", - "http-body 1.0.1", + "http-body", "pin-project-lite", ] @@ -1287,30 +1267,6 @@ version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" -[[package]] -name = "hyper" -version = "0.14.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab302d72a6f11a3b910431ff93aae7e773078c769f0a3ef15fb9ec692ed147d4" -dependencies = [ - "bytes", - "futures-channel", - "futures-core", - "futures-util", - "h2", - "http 0.2.9", - "http-body 0.4.5", - "httparse", - "httpdate", - "itoa", - "pin-project-lite", - "socket2 0.4.9", - "tokio", - "tower-service", - "tracing", - "want", -] - [[package]] name = "hyper" version = "1.1.0" @@ -1321,7 +1277,7 @@ dependencies = [ "futures-channel", "futures-util", "http 1.1.0", - "http-body 1.0.1", + "http-body", "httparse", "itoa", "pin-project-lite", @@ -1339,8 +1295,8 @@ dependencies = [ "futures-channel", "futures-util", "http 1.1.0", - "http-body 1.0.1", - "hyper 1.1.0", + "http-body", + "hyper", "pin-project-lite", "socket2 0.5.4", "tokio", @@ -2272,9 +2228,9 @@ dependencies = [ "futures-core", "futures-util", "http 1.1.0", - "http-body 1.0.1", + "http-body", "http-body-util", - "hyper 1.1.0", + "hyper", "hyper-util", "ipnet", "js-sys", @@ -2322,7 +2278,7 @@ dependencies = [ "futures", "getrandom 0.2.9", "http 1.1.0", - "hyper 1.1.0", + "hyper", "parking_lot 0.11.2", "reqwest", "reqwest-middleware", @@ -2680,7 +2636,6 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" name = "stdext" version = "0.1.0" dependencies = [ - "libc", "log", ] diff --git a/crates/ark/Cargo.toml b/crates/ark/Cargo.toml index 42c124f7e..a3ddef8b4 100644 --- a/crates/ark/Cargo.toml +++ b/crates/ark/Cargo.toml @@ -18,28 +18,23 @@ async-trait = "0.1.66" base64 = "0.21.0" bus = "2.3.0" cfg-if = "1.0.0" -chrono = "0.4.23" crossbeam = { version = "0.8.2", features = ["crossbeam-channel"] } ctor = "0.1.26" dap = { git = "https://github.com/sztomi/dap-rs", branch = "main" } dashmap = "5.4.0" ego-tree = "0.6.2" harp = { path = "../harp" } -html5ever = "0.26.0" http = "0.2.9" home = "0.5.5" -hyper = { version = "0.14.24", features = ["full"] } itertools = "0.10.5" lazy_static = "1.4.0" libc = "0.2" libr = { path = "../libr" } -lock_api = "0.4.11" log = "0.4.17" mime_guess = "2.0.4" nix = { version = "0.26.2", features = ["signal"] } notify = "6.0.0" once_cell = "1.17.1" -parking_lot = "0.12.1" regex = "1.10.0" reqwest = { version = "0.12.5", default-features = false, features = ["json"] } reqwest-retry = "0.6.1" @@ -65,7 +60,6 @@ futures = "0.3.30" tracing = "0.1.40" tracing-subscriber = { version = "0.3.18", features = ["env-filter"] } tracing-appender = "0.2.3" -tracing-log = "0.2.0" rustc-hash = "1.2.0" tracing-error = "0.2.0" diff --git a/crates/harp/Cargo.toml b/crates/harp/Cargo.toml index 967a640b1..22ba3b0f2 100644 --- a/crates/harp/Cargo.toml +++ b/crates/harp/Cargo.toml @@ -17,14 +17,11 @@ cfg-if = "1.0.0" ctor = "0.1.26" harp-macros = { path = "./harp-macros" } itertools = "0.10.5" -lazy_static = "1.4.0" libc = "0.2.140" libloading = "0.8.1" libr = { path = "../libr" } -lock_api = "0.4.11" log = "0.4.17" once_cell = "1.17.1" -parking_lot = "0.12.1" regex = "1.7.3" semver = "1.0.19" stdext = { path = "../stdext" } diff --git a/crates/harp/harp-macros/Cargo.toml b/crates/harp/harp-macros/Cargo.toml index 14cd89a3d..d394fd8de 100644 --- a/crates/harp/harp-macros/Cargo.toml +++ b/crates/harp/harp-macros/Cargo.toml @@ -7,9 +7,7 @@ edition = "2021" proc-macro = true [dependencies] -proc-macro2 = "*" quote = "*" syn = { version = "*", features = ["full"] } # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - diff --git a/crates/stdext/Cargo.toml b/crates/stdext/Cargo.toml index 68e42b45f..8ef476b73 100644 --- a/crates/stdext/Cargo.toml +++ b/crates/stdext/Cargo.toml @@ -11,7 +11,6 @@ license.workspace = true rust-version.workspace = true [dependencies] -libc = "0.2.146" log = "0.4.18" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html