diff --git a/src/rust/engine/Cargo.lock b/src/rust/engine/Cargo.lock index 10faf811f27..d88cbbb5f43 100644 --- a/src/rust/engine/Cargo.lock +++ b/src/rust/engine/Cargo.lock @@ -161,7 +161,6 @@ dependencies = [ name = "async_value" version = "0.0.1" dependencies = [ - "futures", "tokio", ] @@ -444,9 +443,7 @@ version = "0.0.1" dependencies = [ "bytes", "clap", - "dirs-next", "env_logger", - "errno 0.2.8", "fuser", "futures", "grpc_util", @@ -462,7 +459,6 @@ dependencies = [ "time", "tokio", "tokio-stream", - "workunit_store", ] [[package]] @@ -725,7 +721,6 @@ version = "0.0.1" dependencies = [ "deepsize", "log", - "prost", "prost-types", "serde", "serde_derive", @@ -1041,7 +1036,6 @@ dependencies = [ name = "docker" version = "0.0.1" dependencies = [ - "async-lock", "async-oncecell", "async-stream", "async-trait", @@ -1065,8 +1059,6 @@ dependencies = [ "tempfile", "testutil", "tokio", - "tokio-rustls", - "tokio-util 0.7.12", "workunit_store", ] @@ -1104,15 +1096,12 @@ name = "engine" version = "0.0.1" dependencies = [ "address", - "async-oncecell", "async-trait", "async_latch", "axum", "axum-server", "bytes", "cache", - "concrete_time", - "crossbeam-channel", "deepsize", "dep_inference", "derivative", @@ -1163,7 +1152,6 @@ dependencies = [ "tokio", "tokio-retry2", "tokio-util 0.7.12", - "tryfuture", "ui", "url", "watch", @@ -1189,17 +1177,6 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" -[[package]] -name = "errno" -version = "0.2.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f639046355ee4f37944e44f60642c6f3a7efa3cf6b78c78a0d989a8ce6c396a1" -dependencies = [ - "errno-dragonfly", - "libc", - "winapi", -] - [[package]] name = "errno" version = "0.3.6" @@ -1210,16 +1187,6 @@ dependencies = [ "windows-sys 0.48.0", ] -[[package]] -name = "errno-dragonfly" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14ca354e36190500e1e1fb267c647932382b54053c50b14970856c0b00a35067" -dependencies = [ - "gcc", - "libc", -] - [[package]] name = "event-listener" version = "2.5.1" @@ -1346,7 +1313,6 @@ dependencies = [ "parking_lot 0.12.3", "prost", "protos", - "rand", "serde", "serde_derive", "serde_json", @@ -1470,12 +1436,6 @@ dependencies = [ "slab", ] -[[package]] -name = "gcc" -version = "0.3.55" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f5f3913fa0bfe7ee1fd8248b6b9f42a5af4b9d65ec2dd2c3c26132b950ecfc2" - [[package]] name = "generic-array" version = "0.14.6" @@ -1577,17 +1537,13 @@ dependencies = [ "either", "futures", "http", - "http-body", - "http-body-util", "hyper", "hyper-rustls", "hyper-util", "itertools", "lazy_static", - "log", "parking_lot 0.12.3", "pin-project", - "pin-project-lite", "prost", "prost-build", "prost-types", @@ -1599,13 +1555,11 @@ dependencies = [ "tokio", "tokio-rustls", "tokio-stream", - "tokio-util 0.7.12", "tonic", "tonic-build", "tower", "tower-layer", "tower-service", - "webpki", "workunit_store", ] @@ -2219,17 +2173,6 @@ dependencies = [ "parking_lot 0.12.3", "regex", "stdio", - "tokio", - "uuid", -] - -[[package]] -name = "madvise" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e1e75c3c34c2b34cec9f127418cb35240c7ebee5de36a51437e6b382c161b86" -dependencies = [ - "libc", ] [[package]] @@ -2345,13 +2288,9 @@ dependencies = [ "async-stream", "bytes", "futures", - "grpc_util", "hashing", - "hyper", - "log", "parking_lot 0.12.3", "prost", - "prost-types", "protos", "testutil", "tokio", @@ -2677,7 +2616,6 @@ name = "pe_nailgun" version = "0.0.1" dependencies = [ "async-lock", - "async-stream", "async-trait", "env_logger", "futures", @@ -2697,8 +2635,6 @@ dependencies = [ "tempfile", "testutil", "tokio", - "tokio-rustls", - "tokio-util 0.7.12", "workunit_store", ] @@ -2886,9 +2822,7 @@ dependencies = [ name = "process_execution" version = "0.0.1" dependencies = [ - "async-lock", "async-oncecell", - "async-stream", "async-trait", "bincode", "bytes", @@ -2909,15 +2843,12 @@ dependencies = [ "mock", "nails", "nix", - "once_cell", "parking_lot 0.12.3", "prost", "prost-types", "protos", - "rand", "regex", "serde", - "sha2", "sharded_lmdb", "shell-quote", "shlex", @@ -2928,13 +2859,10 @@ dependencies = [ "tempfile", "testutil", "tokio", - "tokio-rustls", "tokio-util 0.7.12", - "tonic", "tryfuture", "uname", "uuid", - "walkdir", "workunit_store", ] @@ -2943,7 +2871,6 @@ name = "process_executor" version = "0.0.1" dependencies = [ "clap", - "dirs-next", "env_logger", "fs", "futures", @@ -3031,7 +2958,6 @@ dependencies = [ name = "protos" version = "0.0.1" dependencies = [ - "bytes", "hashing", "prost", "prost-build", @@ -3140,7 +3066,7 @@ dependencies = [ "bytes", "getrandom 0.2.8", "rand", - "ring 0.17.3", + "ring", "rustc-hash 2.1.0", "rustls", "rustls-pki-types", @@ -3320,13 +3246,10 @@ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" name = "remote" version = "0.0.1" dependencies = [ - "async-lock", "async-oncecell", - "async-stream", "async-trait", "bytes", "concrete_time", - "derivative", "env_logger", "fs", "futures", @@ -3336,8 +3259,6 @@ dependencies = [ "log", "maplit", "mock", - "once_cell", - "opendal", "parking_lot 0.12.3", "process_execution", "prost", @@ -3354,8 +3275,6 @@ dependencies = [ "tempfile", "testutil", "tokio", - "tokio-rustls", - "tokio-util 0.7.12", "tonic", "workunit_store", ] @@ -3364,7 +3283,6 @@ dependencies = [ name = "remote_provider" version = "0.0.1" dependencies = [ - "grpc_util", "remote_provider_opendal", "remote_provider_reapi", "remote_provider_traits", @@ -3382,7 +3300,6 @@ dependencies = [ "http", "mock", "opendal", - "parking_lot 0.12.3", "prost", "protos", "remote_provider_traits", @@ -3422,7 +3339,6 @@ dependencies = [ name = "remote_provider_traits" version = "0.0.1" dependencies = [ - "async-oncecell", "async-trait", "bytes", "grpc_util", @@ -3477,21 +3393,6 @@ dependencies = [ "winreg", ] -[[package]] -name = "ring" -version = "0.16.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc" -dependencies = [ - "cc", - "libc", - "once_cell", - "spin 0.5.2", - "untrusted 0.7.1", - "web-sys", - "winapi", -] - [[package]] name = "ring" version = "0.17.3" @@ -3501,8 +3402,8 @@ dependencies = [ "cc", "getrandom 0.2.8", "libc", - "spin 0.9.8", - "untrusted 0.9.0", + "spin", + "untrusted", "windows-sys 0.48.0", ] @@ -3555,7 +3456,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "305efbd14fde4139eb501df5f136994bb520b033fa9fbdce287507dc23b8c7ed" dependencies = [ "bitflags 1.3.2", - "errno 0.3.6", + "errno", "io-lifetimes", "libc", "linux-raw-sys 0.1.4", @@ -3569,7 +3470,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d4790277f605573dd24b6751701e0823582a63c7cafc095e427e6c66e45dd75e" dependencies = [ "bitflags 1.3.2", - "errno 0.3.6", + "errno", "io-lifetimes", "libc", "linux-raw-sys 0.3.0", @@ -3583,7 +3484,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d7db8590df6dfcd144d22afd1b83b36c21a18d7cbc1dc4bb5295a8712e9eb662" dependencies = [ "bitflags 2.4.1", - "errno 0.3.6", + "errno", "libc", "linux-raw-sys 0.4.11", "windows-sys 0.48.0", @@ -3598,7 +3499,7 @@ dependencies = [ "aws-lc-rs", "log", "once_cell", - "ring 0.17.3", + "ring", "rustls-pki-types", "rustls-webpki", "subtle", @@ -3657,9 +3558,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ff448f7e92e913c4b7d4c6d8e4540a1724b319b4152b8aef6d4cf8339712b33e" dependencies = [ "aws-lc-rs", - "ring 0.17.3", + "ring", "rustls-pki-types", - "untrusted 0.9.0", + "untrusted", ] [[package]] @@ -3857,8 +3758,6 @@ name = "sharded_lmdb" version = "0.0.1" dependencies = [ "bytes", - "fs", - "futures", "hashing", "lmdb-rkv", "log", @@ -3926,12 +3825,6 @@ dependencies = [ "windows-sys 0.52.0", ] -[[package]] -name = "spin" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" - [[package]] name = "spin" version = "0.9.8" @@ -3952,31 +3845,21 @@ name = "store" version = "0.1.0" dependencies = [ "async-oncecell", - "async-stream", "async-trait", "bytes", - "concrete_time", "criterion", "deepsize", "fs", "fs-set-times", "futures", - "glob", "grpc_util", "hashing", - "http", - "http-body", - "indexmap 2.2.3", "itertools", - "lmdb-rkv", "log", - "madvise", "mock", "num_cpus", - "opendal", "parking_lot 0.12.3", "prost", - "prost-types", "protos", "remote_provider", "serde", @@ -3986,12 +3869,7 @@ dependencies = [ "tempfile", "testutil", "tokio", - "tokio-rustls", - "tokio-util 0.7.12", - "tonic", - "tower-service", "tryfuture", - "uuid", "walkdir", "workunit_store", ] @@ -4143,12 +4021,10 @@ dependencies = [ name = "testutil" version = "0.0.1" dependencies = [ - "async-stream", "bytes", "fs", "grpc_util", "hashing", - "prost", "protos", "tempfile", "tokio", @@ -4538,7 +4414,6 @@ dependencies = [ "stdio", "task_executor", "terminal_size", - "uuid", "workunit_store", ] @@ -4596,12 +4471,6 @@ version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "673aac59facbab8a9007c7f6108d11f63b603f7cabff99fabf650fea5c32b861" -[[package]] -name = "untrusted" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" - [[package]] name = "untrusted" version = "0.9.0" @@ -4796,8 +4665,6 @@ version = "0.0.1" dependencies = [ "crossbeam-channel", "fs", - "futures", - "hashing", "log", "notify", "parking_lot 0.12.3", @@ -4827,16 +4694,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "webpki" -version = "0.22.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07ecc0cd7cac091bf682ec5efa18b1cff79d617b84181f38b3951dbe135f607f" -dependencies = [ - "ring 0.16.20", - "untrusted 0.7.1", -] - [[package]] name = "webpki-roots" version = "0.26.3" diff --git a/src/rust/engine/Cargo.toml b/src/rust/engine/Cargo.toml index c53401f33d5..6bef54e70ee 100644 --- a/src/rust/engine/Cargo.toml +++ b/src/rust/engine/Cargo.toml @@ -40,12 +40,9 @@ async-trait = { workspace = true } protos = { path = "protos" } bytes = { workspace = true } cache = { path = "cache" } -concrete_time = { path = "concrete_time" } -crossbeam-channel = { workspace = true } deepsize = { workspace = true, features = ["internment", "smallvec"] } dep_inference = { path = "dep_inference" } derivative = { workspace = true } -async-oncecell = { workspace = true } docker = { path = "process_execution/docker" } fnv = { workspace = true } fs = { path = "fs" } @@ -86,7 +83,6 @@ time = { workspace = true } tokio = { workspace = true, features = ["macros", "rt", "rt-multi-thread"] } tokio-retry2 = { workspace = true } tokio-util = { workspace = true, features = ["io"] } -tryfuture = { path = "tryfuture" } ui = { path = "ui" } url = { workspace = true } watch = { path = "watch" } diff --git a/src/rust/engine/async_value/Cargo.toml b/src/rust/engine/async_value/Cargo.toml index 7dd2376cd4e..3edd9067531 100644 --- a/src/rust/engine/async_value/Cargo.toml +++ b/src/rust/engine/async_value/Cargo.toml @@ -6,7 +6,6 @@ authors = ["Pants Build "] publish = false [dependencies] -futures = { workspace = true } tokio = { workspace = true, features = ["macros", "sync"] } [dev-dependencies] diff --git a/src/rust/engine/concrete_time/Cargo.toml b/src/rust/engine/concrete_time/Cargo.toml index da707ed44f0..b57316f6e0e 100644 --- a/src/rust/engine/concrete_time/Cargo.toml +++ b/src/rust/engine/concrete_time/Cargo.toml @@ -8,10 +8,12 @@ publish = false [dependencies] deepsize = { workspace = true } log = { workspace = true } -prost = { workspace = true } prost-types = { workspace = true } serde = { workspace = true } serde_derive = { workspace = true } [lints] workspace = true + +[package.metadata.cargo-machete] +ignored = ["serde"] diff --git a/src/rust/engine/dep_inference/Cargo.toml b/src/rust/engine/dep_inference/Cargo.toml index 43cf4807070..2fffec86d82 100644 --- a/src/rust/engine/dep_inference/Cargo.toml +++ b/src/rust/engine/dep_inference/Cargo.toml @@ -39,3 +39,6 @@ regex = { workspace = true } [lints] workspace = true + +[package.metadata.cargo-machete] +ignored = ["serde"] diff --git a/src/rust/engine/fs/brfs/Cargo.toml b/src/rust/engine/fs/brfs/Cargo.toml index d743ac5f606..dcd66aa05ff 100644 --- a/src/rust/engine/fs/brfs/Cargo.toml +++ b/src/rust/engine/fs/brfs/Cargo.toml @@ -7,9 +7,7 @@ publish = false [dependencies] clap = { workspace = true } -dirs-next = { workspace = true } env_logger = { workspace = true } -errno = { workspace = true } fuser = { workspace = true } futures = { workspace = true } grpc_util = { path = "../../grpc_util" } @@ -23,7 +21,6 @@ task_executor = { path = "../../task_executor" } time = { workspace = true } tokio = { workspace = true, features = ["rt-multi-thread", "macros", "signal"] } tokio-stream = { workspace = true, features = ["signal"] } -workunit_store = { path = "../../workunit_store" } [dev-dependencies] bytes = { workspace = true } diff --git a/src/rust/engine/fs/fs_util/Cargo.toml b/src/rust/engine/fs/fs_util/Cargo.toml index 2079dc0007f..abcbe572eb6 100644 --- a/src/rust/engine/fs/fs_util/Cargo.toml +++ b/src/rust/engine/fs/fs_util/Cargo.toml @@ -17,7 +17,6 @@ hashing = { path = "../../hashing" } log = { workspace = true } parking_lot = { workspace = true } prost = { workspace = true } -rand = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } serde_derive = { workspace = true } @@ -28,3 +27,6 @@ workunit_store = { path = "../../workunit_store" } [lints] workspace = true + +[package.metadata.cargo-machete] +ignored = ["prost", "serde"] diff --git a/src/rust/engine/fs/store/Cargo.toml b/src/rust/engine/fs/store/Cargo.toml index c8231e260e4..fecfe3fb0f1 100644 --- a/src/rust/engine/fs/store/Cargo.toml +++ b/src/rust/engine/fs/store/Cargo.toml @@ -5,44 +5,29 @@ authors = ["Daniel Wagner-Hall "] edition = "2021" [dependencies] -async-stream = { workspace = true } async-trait = { workspace = true } protos = { path = "../../protos" } bytes = { workspace = true } -concrete_time = { path = "../../concrete_time" } async-oncecell = { workspace = true } deepsize = { workspace = true } fs = { path = ".." } fs-set-times = { workspace = true } futures = { workspace = true } -glob = { workspace = true } grpc_util = { path = "../../grpc_util" } hashing = { path = "../../hashing" } -http = { workspace = true } -http-body = { workspace = true } -indexmap = { workspace = true } itertools = { workspace = true } -lmdb-rkv = { workspace = true } log = { workspace = true } -madvise = { workspace = true } parking_lot = { workspace = true } prost = { workspace = true } -prost-types = { workspace = true } remote_provider = { path = "../../remote_provider" } serde = { workspace = true } serde_derive = { workspace = true } sharded_lmdb = { path = "../../sharded_lmdb" } task_executor = { path = "../../task_executor" } tempfile = { workspace = true } -tokio-rustls = { workspace = true } tokio = { workspace = true, features = ["fs"] } -tokio-util = { workspace = true, features = ["io"] } -tonic = { workspace = true, features = ["transport", "codegen", "tls", "tls-roots", "prost"] } -tower-service = { workspace = true } tryfuture = { path = "../../tryfuture" } -uuid = { workspace = true, features = ["v4"] } workunit_store = { path = "../../workunit_store" } -opendal = { workspace = true } [dev-dependencies] criterion = { workspace = true } @@ -59,3 +44,6 @@ harness = false [lints] workspace = true + +[package.metadata.cargo-machete] +ignored = ["serde"] diff --git a/src/rust/engine/grpc_util/Cargo.toml b/src/rust/engine/grpc_util/Cargo.toml index 0aabfc76b5a..9582a815c79 100644 --- a/src/rust/engine/grpc_util/Cargo.toml +++ b/src/rust/engine/grpc_util/Cargo.toml @@ -10,16 +10,12 @@ bytes = { workspace = true } either = { workspace = true } futures = { workspace = true } http = { workspace = true } -http-body = { workspace = true } -http-body-util = { workspace = true } hyper = { workspace = true } hyper-rustls = { workspace = true, features = ["http2"] } hyper-util = { workspace = true } itertools = { workspace = true } lazy_static = { workspace = true } -log = { workspace = true } pin-project = { workspace = true } -pin-project-lite = { workspace = true } prost = { workspace = true } rand = { workspace = true } rustls = { workspace = true, features = ["logging"] } @@ -29,12 +25,10 @@ rustls-pemfile = { workspace = true } tokio = { workspace = true, features = ["net", "process", "rt-multi-thread", "sync", "time"] } tokio-rustls = { workspace = true } tokio-stream = { workspace = true } -tokio-util = { workspace = true, features = ["codec"] } tonic = { workspace = true, features = ["transport", "codegen", "tls", "tls-roots", "prost"] } tower = { workspace = true, features = ["limit", "timeout"] } tower-layer = { workspace = true } tower-service = { workspace = true } -webpki = { workspace = true } workunit_store = { path = "../workunit_store" } [dev-dependencies] diff --git a/src/rust/engine/logging/Cargo.toml b/src/rust/engine/logging/Cargo.toml index 55e1aa54b40..9a23b9b8a8e 100644 --- a/src/rust/engine/logging/Cargo.toml +++ b/src/rust/engine/logging/Cargo.toml @@ -15,8 +15,6 @@ num_enum = { workspace = true } parking_lot = { workspace = true } regex = { workspace = true } stdio = { path = "../stdio" } -tokio = { version = "1.32" } -uuid = { workspace = true, features = ["v4"] } [build-dependencies] cargo_metadata = "0.19" diff --git a/src/rust/engine/process_execution/Cargo.toml b/src/rust/engine/process_execution/Cargo.toml index 7a0db6bc750..224bd3a822f 100644 --- a/src/rust/engine/process_execution/Cargo.toml +++ b/src/rust/engine/process_execution/Cargo.toml @@ -6,11 +6,8 @@ authors = ["Pants Build "] publish = false [dependencies] -async-stream = { workspace = true } async-trait = { workspace = true } -async-lock = { workspace = true } async-oncecell = { workspace = true } -walkdir = { workspace = true } protos = { path = "../protos" } bytes = { workspace = true } cache = { path = "../cache" } @@ -24,14 +21,12 @@ libc = { workspace = true } log = { workspace = true } nails = { workspace = true } nix = { workspace = true } -sha2 = { workspace = true } shell-quote = { workspace = true } store = { path = "../fs/store" } task_executor = { path = "../task_executor" } tempfile = { workspace = true } concrete_time = { path = "../concrete_time" } tokio = { workspace = true, features = ["net", "process", "rt-multi-thread", "sync", "time"] } -tokio-rustls = { workspace = true } tokio-util = { workspace = true, features = ["codec"] } uname = { workspace = true } uuid = { workspace = true, features = ["v4"] } @@ -42,14 +37,11 @@ parking_lot = { workspace = true } itertools = { workspace = true } serde = { workspace = true } bincode = { workspace = true } -once_cell = { workspace = true } -rand = { workspace = true } prost = { workspace = true } prost-types = { workspace = true } shlex = { workspace = true } strum = { workspace = true } strum_macros = { workspace = true } -tonic = { workspace = true, features = ["transport", "codegen", "tls", "tls-roots", "prost"] } tryfuture = { path = "../tryfuture" } [dev-dependencies] @@ -64,3 +56,6 @@ tokio = { workspace = true, features = ["macros"] } [lints] workspace = true + +[package.metadata.cargo-machete] +ignored = ["strum"] diff --git a/src/rust/engine/process_execution/docker/Cargo.toml b/src/rust/engine/process_execution/docker/Cargo.toml index 06680f61d14..e9a4bbbded5 100644 --- a/src/rust/engine/process_execution/docker/Cargo.toml +++ b/src/rust/engine/process_execution/docker/Cargo.toml @@ -8,7 +8,6 @@ publish = false [dependencies] async-stream = { workspace = true } async-trait = { workspace = true } -async-lock = { workspace = true } bollard = { workspace = true } docker_credential = { workspace = true } fs = { path = "../../fs" } @@ -18,8 +17,6 @@ nails = { workspace = true } store = { path = "../../fs/store" } task_executor = { path = "../../task_executor" } tokio = { workspace = true, features = ["net", "process", "rt-multi-thread", "sync", "time"] } -tokio-rustls = { workspace = true } -tokio-util = { workspace = true, features = ["codec"] } workunit_store = { path = "../../workunit_store" } parking_lot = { workspace = true } async-oncecell = { workspace = true } diff --git a/src/rust/engine/process_execution/pe_nailgun/Cargo.toml b/src/rust/engine/process_execution/pe_nailgun/Cargo.toml index fa1f64b1810..9a647525769 100644 --- a/src/rust/engine/process_execution/pe_nailgun/Cargo.toml +++ b/src/rust/engine/process_execution/pe_nailgun/Cargo.toml @@ -6,7 +6,6 @@ authors = ["Pants Build "] publish = false [dependencies] -async-stream = { workspace = true } async-trait = { workspace = true } async-lock = { workspace = true } futures = { workspace = true } @@ -15,8 +14,6 @@ nails = { workspace = true } store = { path = "../../fs/store" } task_executor = { path = "../../task_executor" } tokio = { workspace = true, features = ["net", "process", "rt-multi-thread", "sync", "time"] } -tokio-rustls = { workspace = true } -tokio-util = { workspace = true, features = ["codec"] } workunit_store = { path = "../../workunit_store" } itertools = { workspace = true } process_execution = { path = ".." } diff --git a/src/rust/engine/process_execution/remote/Cargo.toml b/src/rust/engine/process_execution/remote/Cargo.toml index 4206cbf9efd..8f60c166dc2 100644 --- a/src/rust/engine/process_execution/remote/Cargo.toml +++ b/src/rust/engine/process_execution/remote/Cargo.toml @@ -6,13 +6,9 @@ authors = ["Pants Build "] publish = false [dependencies] -async-stream = { workspace = true } async-trait = { workspace = true } -async-lock = { workspace = true } protos = { path = "../../protos" } bytes = { workspace = true } -derivative = { workspace = true } -# deepsize = { workspace = true, features=["log"] } grpc_util = { path = "../../grpc_util" } fs = { path = "../../fs" } futures = { workspace = true } @@ -23,11 +19,8 @@ store = { path = "../../fs/store" } task_executor = { path = "../../task_executor" } concrete_time = { path = "../../concrete_time" } tokio = { workspace = true, features = ["net", "process", "rt-multi-thread", "sync", "time"] } -tokio-rustls = { workspace = true } -tokio-util = { workspace = true, features = ["codec"] } workunit_store = { path = "../../workunit_store" } async-oncecell = { workspace = true } -once_cell = { workspace = true } prost = { workspace = true } prost-types = { workspace = true } rand = { workspace = true } @@ -36,7 +29,6 @@ process_execution = { path = ".." } strum = { workspace = true } strum_macros = { workspace = true } parking_lot = { workspace = true } -opendal = { workspace = true } remote_provider = { path = "../../remote_provider" } remote_provider_reapi = { path = "../../remote_provider/remote_provider_reapi" } @@ -52,3 +44,6 @@ tokio = { workspace = true, features = ["macros"] } [lints] workspace = true + +[package.metadata.cargo-machete] +ignored = ["strum"] diff --git a/src/rust/engine/process_executor/Cargo.toml b/src/rust/engine/process_executor/Cargo.toml index a53f76cff5a..62212374399 100644 --- a/src/rust/engine/process_executor/Cargo.toml +++ b/src/rust/engine/process_executor/Cargo.toml @@ -8,7 +8,6 @@ publish = false [dependencies] protos = { path = "../protos" } clap = { workspace = true, features = ["derive"] } -dirs-next = { workspace = true } env_logger = { workspace = true } fs = { path = "../fs" } futures = { workspace = true } @@ -26,3 +25,6 @@ remote = { path = "../process_execution/remote" } [lints] workspace = true + +[package.metadata.cargo-machete] +ignored = ["futures"] diff --git a/src/rust/engine/protos/Cargo.toml b/src/rust/engine/protos/Cargo.toml index 648205562d9..bc54f424083 100644 --- a/src/rust/engine/protos/Cargo.toml +++ b/src/rust/engine/protos/Cargo.toml @@ -6,13 +6,14 @@ authors = ["Pants Build "] publish = false [dependencies] -bytes = { workspace = true } hashing = { path = "../hashing" } prost = { workspace = true } -prost-build = { workspace = true } prost-types = { workspace = true } tonic = { workspace = true, features = ["transport", "codegen", "tls", "tls-roots"] } [build-dependencies] prost-build = { workspace = true } tonic-build = { workspace = true, features = ["prost"] } + +[package.metadata.cargo-machete] +ignored = ["prost-types"] diff --git a/src/rust/engine/remote_provider/Cargo.toml b/src/rust/engine/remote_provider/Cargo.toml index 4ce82a5efcd..5cb035fa44f 100644 --- a/src/rust/engine/remote_provider/Cargo.toml +++ b/src/rust/engine/remote_provider/Cargo.toml @@ -6,7 +6,6 @@ authors = ["Pants Build "] publish = false [dependencies] -grpc_util = { path = "../grpc_util" } remote_provider_opendal = { path = "./remote_provider_opendal" } remote_provider_reapi = { path = "./remote_provider_reapi" } remote_provider_traits = { path = "./remote_provider_traits" } diff --git a/src/rust/engine/remote_provider/remote_provider_opendal/Cargo.toml b/src/rust/engine/remote_provider/remote_provider_opendal/Cargo.toml index eed185b4e1c..e105a5a81d0 100644 --- a/src/rust/engine/remote_provider/remote_provider_opendal/Cargo.toml +++ b/src/rust/engine/remote_provider/remote_provider_opendal/Cargo.toml @@ -12,7 +12,6 @@ futures = { workspace = true } grpc_util = { path = "../../grpc_util" } hashing = { path = "../../hashing" } http = { workspace = true } -parking_lot = { workspace = true } prost = { workspace = true } protos = { path = "../../protos" } opendal = { workspace = true } diff --git a/src/rust/engine/remote_provider/remote_provider_traits/Cargo.toml b/src/rust/engine/remote_provider/remote_provider_traits/Cargo.toml index 4a381c3bb7f..d58c3a3af47 100644 --- a/src/rust/engine/remote_provider/remote_provider_traits/Cargo.toml +++ b/src/rust/engine/remote_provider/remote_provider_traits/Cargo.toml @@ -6,7 +6,6 @@ authors = ["Pants Build "] publish = false [dependencies] -async-oncecell = { workspace = true } async-trait = { workspace = true } bytes = { workspace = true } grpc_util = { path = "../../grpc_util" } @@ -18,3 +17,6 @@ tokio = { workspace = true, features = ["fs"] } [lints] workspace = true + +[package.metadata.cargo-machete] +ignored = ["strum"] diff --git a/src/rust/engine/sharded_lmdb/Cargo.toml b/src/rust/engine/sharded_lmdb/Cargo.toml index 6e54027e2cf..c2ace6f4e78 100644 --- a/src/rust/engine/sharded_lmdb/Cargo.toml +++ b/src/rust/engine/sharded_lmdb/Cargo.toml @@ -6,8 +6,6 @@ edition = "2021" [dependencies] bytes = { workspace = true } -fs = { path = "../fs" } -futures = { workspace = true } hashing = { path = "../hashing" } lmdb-rkv = { workspace = true } log = { workspace = true } @@ -20,3 +18,6 @@ tokio = { workspace = true, features = ["macros"] } [lints] workspace = true + +[package.metadata.cargo-machete] +ignored = ["lmdb-rkv"] diff --git a/src/rust/engine/testutil/Cargo.toml b/src/rust/engine/testutil/Cargo.toml index ef0e9b40cbf..99361322976 100644 --- a/src/rust/engine/testutil/Cargo.toml +++ b/src/rust/engine/testutil/Cargo.toml @@ -6,12 +6,10 @@ authors = ["Pants Build "] publish = false [dependencies] -async-stream = { workspace = true } bytes = { workspace = true } fs = { path = "../fs" } grpc_util = { path = "../grpc_util" } hashing = { path = "../hashing" } -prost = { workspace = true } protos = { path = "../protos" } tempfile = { workspace = true } tokio = { workspace = true } diff --git a/src/rust/engine/testutil/mock/Cargo.toml b/src/rust/engine/testutil/mock/Cargo.toml index 2b45e495ca6..7653b230e28 100644 --- a/src/rust/engine/testutil/mock/Cargo.toml +++ b/src/rust/engine/testutil/mock/Cargo.toml @@ -9,13 +9,9 @@ publish = false async-stream = { workspace = true } bytes = { workspace = true } futures = { workspace = true } -grpc_util = { path = "../../grpc_util" } hashing = { path = "../../hashing" } -hyper = { workspace = true } -log = { workspace = true } parking_lot = { workspace = true } prost = { workspace = true } -prost-types = { workspace = true } protos = { path = "../../protos" } testutil = { path = ".." } tokio = { workspace = true, features = ["time"] } diff --git a/src/rust/engine/ui/Cargo.toml b/src/rust/engine/ui/Cargo.toml index 557f05e21de..e7fc44e0e45 100644 --- a/src/rust/engine/ui/Cargo.toml +++ b/src/rust/engine/ui/Cargo.toml @@ -16,7 +16,6 @@ prodash = { workspace = true } stdio = { path = "../stdio" } terminal_size = { workspace = true } task_executor = { path = "../task_executor" } -uuid = { workspace = true, features = ["v4"] } workunit_store = { path = "../workunit_store" } [lints] diff --git a/src/rust/engine/watch/Cargo.toml b/src/rust/engine/watch/Cargo.toml index fb38846d092..d8040db3386 100644 --- a/src/rust/engine/watch/Cargo.toml +++ b/src/rust/engine/watch/Cargo.toml @@ -8,8 +8,6 @@ publish = false [dependencies] crossbeam-channel = { workspace = true } fs = { path = "../fs" } -futures = { workspace = true } -hashing = { path = "../hashing" } log = { workspace = true } # TODO: See https://github.com/notify-rs/notify/issues/255. notify = { workspace = true }