Clean up deps for file_finder, language_selector, task, rpc, storybook (#8353)

Following-up on #8330

Invocation
```bash
cargo-machete --with-metadata --skip-target-dir --fix
````

There is more stuff to fix, but it chokes on `async-lock`:
```
cargo-machete found the following unused dependencies in /x/Code/zed:
rpc -- /x/Code/zed/crates/rpc/Cargo.toml:
        async_lock
        prost_build
        serde_derive
Error: Dependency async_lock not found
```

Release Notes:
- N/A
This commit is contained in:
Dzmitry Malyshau 2024-02-25 00:10:07 -08:00 committed by GitHub
parent dbe1f48f95
commit 83f493b387
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 38 additions and 92 deletions

107
Cargo.lock generated
View File

@ -410,7 +410,7 @@ dependencies = [
"futures-core",
"futures-io",
"once_cell",
"pin-project-lite 0.2.13",
"pin-project-lite",
"tokio",
]
@ -424,7 +424,7 @@ dependencies = [
"futures-core",
"futures-io",
"memchr",
"pin-project-lite 0.2.13",
"pin-project-lite",
]
[[package]]
@ -535,7 +535,7 @@ checksum = "d034b430882f8381900d3fe6f0aaa3ad94f2cb4ac519b429692a1bc2dda4ae7b"
dependencies = [
"event-listener 4.0.3",
"event-listener-strategy",
"pin-project-lite 0.2.13",
"pin-project-lite",
]
[[package]]
@ -643,7 +643,7 @@ dependencies = [
"log",
"memchr",
"once_cell",
"pin-project-lite 0.2.13",
"pin-project-lite",
"pin-utils",
"slab",
"wasm-bindgen-futures",
@ -657,7 +657,7 @@ checksum = "cd56dd203fef61ac097dd65721a419ddccb106b2d2b70ba60a6b529f03961a51"
dependencies = [
"async-stream-impl",
"futures-core",
"pin-project-lite 0.2.13",
"pin-project-lite",
]
[[package]]
@ -713,7 +713,7 @@ dependencies = [
"futures-io",
"futures-util",
"log",
"pin-project-lite 0.2.13",
"pin-project-lite",
"tungstenite 0.16.0",
]
@ -859,7 +859,7 @@ dependencies = [
"http 0.2.9",
"http-body",
"percent-encoding",
"pin-project-lite 0.2.13",
"pin-project-lite",
"tracing",
"uuid",
]
@ -996,7 +996,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "426a5bc369ca7c8d3686439e46edc727f397a47ab3696b13f3ae8c81b3b36132"
dependencies = [
"futures-util",
"pin-project-lite 0.2.13",
"pin-project-lite",
"tokio",
]
@ -1015,7 +1015,7 @@ dependencies = [
"http 0.2.9",
"http-body",
"md-5",
"pin-project-lite 0.2.13",
"pin-project-lite",
"sha1",
"sha2 0.10.7",
"tracing",
@ -1048,7 +1048,7 @@ dependencies = [
"http-body",
"once_cell",
"percent-encoding",
"pin-project-lite 0.2.13",
"pin-project-lite",
"pin-utils",
"tracing",
]
@ -1090,7 +1090,7 @@ dependencies = [
"hyper",
"hyper-rustls",
"once_cell",
"pin-project-lite 0.2.13",
"pin-project-lite",
"pin-utils",
"rustls",
"tokio",
@ -1107,7 +1107,7 @@ dependencies = [
"aws-smithy-types",
"bytes 1.5.0",
"http 0.2.9",
"pin-project-lite 0.2.13",
"pin-project-lite",
"tokio",
"tracing",
"zeroize",
@ -1127,7 +1127,7 @@ dependencies = [
"http-body",
"itoa",
"num-integer",
"pin-project-lite 0.2.13",
"pin-project-lite",
"pin-utils",
"ryu",
"serde",
@ -1181,7 +1181,7 @@ dependencies = [
"memchr",
"mime",
"percent-encoding",
"pin-project-lite 0.2.13",
"pin-project-lite",
"serde",
"serde_json",
"serde_urlencoded",
@ -1222,7 +1222,7 @@ dependencies = [
"futures-util",
"http 0.2.9",
"mime",
"pin-project-lite 0.2.13",
"pin-project-lite",
"serde",
"serde_json",
"tokio",
@ -3304,7 +3304,7 @@ checksum = "67b215c49b2b248c855fb73579eb1f4f26c38ffdc12973e20e07b91d78d5646e"
dependencies = [
"concurrent-queue",
"parking",
"pin-project-lite 0.2.13",
"pin-project-lite",
]
[[package]]
@ -3314,7 +3314,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "958e4d70b6d5e81971bebec42271ec641e7ff4e170a6fa605f2b8a8b65cb97d3"
dependencies = [
"event-listener 4.0.3",
"pin-project-lite 0.2.13",
"pin-project-lite",
]
[[package]]
@ -3485,11 +3485,8 @@ dependencies = [
"language",
"menu",
"picker",
"postage",
"project",
"serde",
"serde_json",
"settings",
"text",
"theme",
"ui",
@ -3863,7 +3860,7 @@ dependencies = [
"futures-io",
"memchr",
"parking",
"pin-project-lite 0.2.13",
"pin-project-lite",
"waker-fn",
]
@ -3878,7 +3875,7 @@ dependencies = [
"futures-io",
"memchr",
"parking",
"pin-project-lite 0.2.13",
"pin-project-lite",
"waker-fn",
]
@ -3919,7 +3916,7 @@ dependencies = [
"futures-sink",
"futures-task",
"memchr",
"pin-project-lite 0.2.13",
"pin-project-lite",
"pin-utils",
"slab",
"tokio-io",
@ -4434,7 +4431,7 @@ checksum = "d5f38f16d184e36f2408a55281cd658ecbd3ca05cce6d6510a176eca393e26d1"
dependencies = [
"bytes 1.5.0",
"http 0.2.9",
"pin-project-lite 0.2.13",
"pin-project-lite",
]
[[package]]
@ -4483,7 +4480,7 @@ dependencies = [
"httparse",
"httpdate",
"itoa",
"pin-project-lite 0.2.13",
"pin-project-lite",
"socket2 0.4.9",
"tokio",
"tower-service",
@ -4514,7 +4511,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bbb958482e8c7be4bc3cf272a766a2b0bf1a6755e7a6ae777f017a31d11b13b1"
dependencies = [
"hyper",
"pin-project-lite 0.2.13",
"pin-project-lite",
"tokio",
"tokio-io-timeout",
]
@ -5004,8 +5001,6 @@ dependencies = [
"language",
"picker",
"project",
"settings",
"theme",
"ui",
"util",
"workspace",
@ -6348,7 +6343,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50"
dependencies = [
"futures-core",
"pin-project-lite 0.2.13",
"pin-project-lite",
]
[[package]]
@ -6713,12 +6708,6 @@ dependencies = [
"syn 2.0.48",
]
[[package]]
name = "pin-project-lite"
version = "0.1.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "257b64915a082f7811703966789728173279bdebb956b143dbcd23f6f970a777"
[[package]]
name = "pin-project-lite"
version = "0.2.13"
@ -6817,7 +6806,7 @@ dependencies = [
"concurrent-queue",
"libc",
"log",
"pin-project-lite 0.2.13",
"pin-project-lite",
"windows-sys 0.48.0",
]
@ -6829,7 +6818,7 @@ checksum = "545c980a3880efd47b2e262f6a4bb6daad6555cf3367aa9c4e52895f69537a41"
dependencies = [
"cfg-if 1.0.0",
"concurrent-queue",
"pin-project-lite 0.2.13",
"pin-project-lite",
"rustix 0.38.30",
"tracing",
"windows-sys 0.52.0",
@ -7605,7 +7594,7 @@ dependencies = [
"native-tls",
"once_cell",
"percent-encoding",
"pin-project-lite 0.2.13",
"pin-project-lite",
"serde",
"serde_json",
"serde_urlencoded",
@ -7800,9 +7789,7 @@ dependencies = [
"async-lock 2.8.0",
"async-tungstenite",
"base64 0.13.1",
"clock",
"collections",
"ctor",
"env_logger",
"futures 0.3.28",
"gpui",
@ -7814,10 +7801,7 @@ dependencies = [
"serde",
"serde_derive",
"serde_json",
"smol",
"smol-timeout",
"strum",
"tempfile",
"tracing",
"util",
"zstd",
@ -8803,16 +8787,6 @@ dependencies = [
"futures-lite 1.13.0",
]
[[package]]
name = "smol-timeout"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "847d777e2c6c166bad26264479e80a9820f3d364fcb4a0e23cd57bbfa8e94961"
dependencies = [
"async-io 1.13.0",
"pin-project-lite 0.1.12",
]
[[package]]
name = "snippet"
version = "0.1.0"
@ -9175,7 +9149,6 @@ name = "storybook"
version = "0.1.0"
dependencies = [
"anyhow",
"chrono",
"clap 4.4.4",
"collab_ui",
"ctrlc",
@ -9184,21 +9157,17 @@ dependencies = [
"fuzzy",
"gpui",
"indoc",
"itertools 0.11.0",
"language",
"log",
"menu",
"picker",
"rust-embed",
"serde",
"settings",
"simplelog",
"smallvec",
"story",
"strum",
"theme",
"ui",
"util",
]
[[package]]
@ -9462,13 +9431,9 @@ dependencies = [
"collections",
"futures 0.3.28",
"gpui",
"parking_lot 0.11.2",
"schemars",
"serde",
"serde_json",
"serde_json_lenient",
"settings",
"smol",
"util",
]
@ -9870,7 +9835,7 @@ dependencies = [
"mio 0.8.8",
"num_cpus",
"parking_lot 0.12.1",
"pin-project-lite 0.2.13",
"pin-project-lite",
"signal-hook-registry",
"socket2 0.5.4",
"tokio-macros",
@ -9894,7 +9859,7 @@ version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "30b74022ada614a1b4834de765f9bb43877f910cc8ce4be40e89042c9223a8bf"
dependencies = [
"pin-project-lite 0.2.13",
"pin-project-lite",
"tokio",
]
@ -9936,7 +9901,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "397c988d37662c7dda6d2208364a706264bf3d6138b11d436cbac0ad38832842"
dependencies = [
"futures-core",
"pin-project-lite 0.2.13",
"pin-project-lite",
"tokio",
]
@ -9962,7 +9927,7 @@ dependencies = [
"futures-core",
"futures-sink",
"log",
"pin-project-lite 0.2.13",
"pin-project-lite",
"tokio",
]
@ -9976,7 +9941,7 @@ dependencies = [
"futures-core",
"futures-io",
"futures-sink",
"pin-project-lite 0.2.13",
"pin-project-lite",
"tokio",
"tracing",
]
@ -10076,7 +10041,7 @@ dependencies = [
"futures-util",
"indexmap 1.9.3",
"pin-project",
"pin-project-lite 0.2.13",
"pin-project-lite",
"rand 0.8.5",
"slab",
"tokio",
@ -10099,7 +10064,7 @@ dependencies = [
"http 0.2.9",
"http-body",
"http-range-header",
"pin-project-lite 0.2.13",
"pin-project-lite",
"tower",
"tower-layer",
"tower-service",
@ -10118,7 +10083,7 @@ dependencies = [
"http 0.2.9",
"http-body",
"http-range-header",
"pin-project-lite 0.2.13",
"pin-project-lite",
"tower-layer",
"tower-service",
"tracing",
@ -10144,7 +10109,7 @@ checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8"
dependencies = [
"cfg-if 1.0.0",
"log",
"pin-project-lite 0.2.13",
"pin-project-lite",
"tracing-attributes",
"tracing-core",
]

View File

@ -18,10 +18,7 @@ gpui.workspace = true
itertools = "0.11"
menu.workspace = true
picker.workspace = true
postage.workspace = true
project.workspace = true
serde.workspace = true
settings.workspace = true
text.workspace = true
theme.workspace = true
ui.workspace = true

View File

@ -17,8 +17,6 @@ gpui.workspace = true
language.workspace = true
picker.workspace = true
project.workspace = true
settings.workspace = true
theme.workspace = true
ui.workspace = true
util.workspace = true
workspace.workspace = true

View File

@ -18,7 +18,6 @@ anyhow.workspace = true
async-lock = "2.4"
async-tungstenite = "0.16"
base64 = "0.13"
clock.workspace = true
collections.workspace = true
futures.workspace = true
gpui = { workspace = true, optional = true }
@ -29,7 +28,6 @@ rsa = "0.4"
serde.workspace = true
serde_derive.workspace = true
serde_json.workspace = true
smol-timeout = "0.6"
strum.workspace = true
tracing = { version = "0.1.34", features = ["log"] }
util.workspace = true
@ -39,9 +37,6 @@ zstd = "0.11"
prost-build = "0.9"
[dev-dependencies]
collections = { workspace = true, features = ["test-support"] }
ctor.workspace = true
collections.workspace = true
env_logger.workspace = true
gpui = { workspace = true, features = ["test-support"] }
smol.workspace = true
tempfile.workspace = true
gpui.workspace = true

View File

@ -11,7 +11,6 @@ path = "src/storybook.rs"
[dependencies]
anyhow.workspace = true
chrono = "0.4"
clap = { version = "4.4", features = ["derive", "string"] }
collab_ui = { workspace = true, features = ["stories"] }
ctrlc = "3.4"
@ -20,21 +19,17 @@ editor.workspace = true
fuzzy.workspace = true
gpui.workspace = true
indoc.workspace = true
itertools = "0.11.0"
language.workspace = true
log.workspace = true
menu.workspace = true
picker.workspace = true
rust-embed.workspace = true
serde.workspace = true
settings.workspace = true
simplelog = "0.9"
smallvec.workspace = true
story.workspace = true
strum = { version = "0.25.0", features = ["derive"] }
theme.workspace = true
ui = { workspace = true, features = ["stories"] }
util.workspace = true
[dev-dependencies]
gpui = { workspace = true, features = ["test-support"] }

View File

@ -10,13 +10,9 @@ anyhow.workspace = true
collections.workspace = true
futures.workspace = true
gpui.workspace = true
parking_lot.workspace = true
schemars.workspace = true
serde.workspace = true
serde_json.workspace = true
serde_json_lenient.workspace = true
settings.workspace = true
smol.workspace = true
util.workspace = true
[dev-dependencies]