diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e3b6e65fd..3226997656 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,6 +51,9 @@ jobs: - name: Run style checks uses: ./.github/actions/check_style + - name: Check unused dependencies + uses: bnjbvr/cargo-machete@main + - name: Ensure fresh merge shell: bash -euxo pipefail {0} run: | diff --git a/Cargo.lock b/Cargo.lock index 8a248f098e..c25d52bed8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -220,12 +220,6 @@ dependencies = [ "windows-sys 0.48.0", ] -[[package]] -name = "any_ascii" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea50b14b7a4b9343f8c627a7a53c52076482bd4bdad0a24fd3ec533ed616cc2c" - [[package]] name = "anyhow" version = "1.0.75" @@ -331,7 +325,6 @@ dependencies = [ "ai", "anyhow", "chrono", - "client", "collections", "ctor", "editor", @@ -340,13 +333,11 @@ dependencies = [ "futures 0.3.28", "gpui", "indoc", - "isahc", "language", "log", "menu", "multi_buffer", "ordered-float 2.10.0", - "parking_lot 0.11.2", "project", "rand 0.8.5", "regex", @@ -1125,7 +1116,7 @@ dependencies = [ "serde", "time", "tokio", - "tokio-util 0.7.9", + "tokio-util", ] [[package]] @@ -1851,11 +1842,9 @@ dependencies = [ "clap 3.2.25", "core-foundation", "core-services", - "dirs 3.0.2", "ipc-channel", "plist", "serde", - "serde_derive", "util", ] @@ -1912,11 +1901,9 @@ dependencies = [ "chrono", "clock", "collections", - "db", "feature_flags", "futures 0.3.28", "gpui", - "image", "lazy_static", "log", "once_cell", @@ -1927,12 +1914,10 @@ dependencies = [ "rpc", "schemars", "serde", - "serde_derive", "serde_json", "settings", "sha2 0.10.7", "smol", - "sum_tree", "sysinfo", "telemetry_events", "tempfile", @@ -1942,7 +1927,6 @@ dependencies = [ "tiny_http", "url", "util", - "uuid", ] [[package]] @@ -2015,11 +1999,9 @@ dependencies = [ "aws-sdk-s3", "axum", "axum-extra", - "base64 0.13.1", "call", "channel", "chrono", - "clap 3.2.25", "clickhouse", "client", "clock", @@ -2040,7 +2022,6 @@ dependencies = [ "indoc", "language", "lazy_static", - "lipsum", "live_kit_client", "live_kit_server", "log", @@ -2065,18 +2046,14 @@ dependencies = [ "serde_derive", "serde_json", "settings", - "sha-1 0.9.8", "sha2 0.10.7", - "smallvec", "sqlx", "telemetry_events", "text", "theme", "time", "tokio", - "tokio-tungstenite", "toml 0.8.10", - "tonic", "tower", "tower-http 0.4.4", "tracing", @@ -2147,9 +2124,7 @@ dependencies = [ name = "color" version = "0.1.0" dependencies = [ - "itertools 0.11.0", "palette", - "story", ] [[package]] @@ -2178,7 +2153,6 @@ dependencies = [ name = "command_palette" version = "0.1.0" dependencies = [ - "anyhow", "client", "collections", "command_palette_hooks", @@ -2276,16 +2250,13 @@ dependencies = [ "futures 0.3.28", "gpui", "language", - "log", "lsp", "node_runtime", "parking_lot 0.11.2", "rpc", "serde", - "serde_derive", "settings", "smol", - "theme", "util", ] @@ -2297,12 +2268,9 @@ dependencies = [ "copilot", "editor", "fs", - "futures 0.3.28", "gpui", "language", "settings", - "smol", - "theme", "ui", "util", "workspace", @@ -2875,14 +2843,11 @@ dependencies = [ "language", "log", "lsp", - "postage", "project", "schemars", "serde", - "serde_derive", "serde_json", "settings", - "smallvec", "theme", "ui", "unindent", @@ -3360,22 +3325,16 @@ dependencies = [ "human_bytes", "isahc", "language", - "lazy_static", "log", "menu", - "postage", "project", "regex", "release_channel", "serde", "serde_derive", "serde_json", - "settings", - "smallvec", "smol", "sysinfo", - "theme", - "tree-sitter-markdown", "ui", "urlencoding", "util", @@ -4144,7 +4103,7 @@ dependencies = [ "indexmap 1.9.3", "slab", "tokio", - "tokio-util 0.7.9", + "tokio-util", "tracing", ] @@ -4411,18 +4370,6 @@ dependencies = [ "tokio-rustls", ] -[[package]] -name = "hyper-timeout" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbb958482e8c7be4bc3cf272a766a2b0bf1a6755e7a6ae777f017a31d11b13b1" -dependencies = [ - "hyper", - "pin-project-lite", - "tokio", - "tokio-io-timeout", -] - [[package]] name = "hyper-tls" version = "0.5.0" @@ -4737,7 +4684,6 @@ version = "0.1.0" dependencies = [ "anyhow", "chrono", - "dirs 4.0.0", "editor", "gpui", "log", @@ -4745,7 +4691,6 @@ dependencies = [ "serde", "settings", "shellexpand", - "util", "workspace", ] @@ -5161,16 +5106,6 @@ version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c4cd1a83af159aa67994778be9070f0ae1bd732942279cabb14f86f986a21456" -[[package]] -name = "lipsum" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8451846f1f337e44486666989fbce40be804da139d5a4477d6b88ece5dc69f4" -dependencies = [ - "rand 0.8.5", - "rand_chacha 0.3.1", -] - [[package]] name = "live_kit_client" version = "0.1.0" @@ -5544,18 +5479,6 @@ dependencies = [ "windows-sys 0.48.0", ] -[[package]] -name = "mio-extras" -version = "2.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52403fe290012ce777c4626790c8951324a2b9e3316b3143779c72b029742f19" -dependencies = [ - "lazycell", - "log", - "mio 0.6.23", - "slab", -] - [[package]] name = "miow" version = "0.2.2" @@ -5587,8 +5510,6 @@ dependencies = [ "futures 0.3.28", "git", "gpui", - "indoc", - "itertools 0.11.0", "language", "log", "parking_lot 0.11.2", @@ -5765,9 +5686,7 @@ dependencies = [ "async-trait", "futures 0.3.28", "log", - "parking_lot 0.11.2", "serde", - "serde_derive", "serde_json", "smol", "util", @@ -5790,15 +5709,12 @@ dependencies = [ "anyhow", "channel", "client", - "clock", "collections", "db", - "feature_flags", "gpui", "rpc", "settings", "sum_tree", - "text", "time", "util", ] @@ -6038,7 +5954,7 @@ dependencies = [ "rmp", "rmpv", "tokio", - "tokio-util 0.7.9", + "tokio-util", ] [[package]] @@ -6386,15 +6302,6 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8835116a5c179084a830efb3adc117ab007512b535bc1a21c991d3b32a6b44dd" -[[package]] -name = "pathfinder_color" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69bdc0d277d559e35e1b374de56df9262a6b71e091ca04a8831a239f8c7f0c62" -dependencies = [ - "pathfinder_simd", -] - [[package]] name = "pathfinder_geometry" version = "0.5.1" @@ -6515,12 +6422,8 @@ dependencies = [ "env_logger", "gpui", "menu", - "parking_lot 0.11.2", "serde_json", - "settings", - "theme", "ui", - "util", "workspace", ] @@ -6830,11 +6733,9 @@ dependencies = [ "fs", "futures 0.3.28", "fuzzy", - "git", "git2", "globset", "gpui", - "ignore", "itertools 0.11.0", "language", "log", @@ -6849,14 +6750,12 @@ dependencies = [ "regex", "release_channel", "rpc", - "schemars", "serde", "serde_json", "settings", "sha2 0.10.7", "similar", "smol", - "sum_tree", "task", "terminal", "text", @@ -7287,18 +7186,12 @@ dependencies = [ name = "recent_projects" version = "0.1.0" dependencies = [ - "futures 0.3.28", "fuzzy", "gpui", - "language", "menu", "ordered-float 2.10.0", "picker", - "postage", - "settings", "smol", - "text", - "theme", "ui", "util", "workspace", @@ -7512,17 +7405,11 @@ dependencies = [ name = "rich_text" version = "0.1.0" dependencies = [ - "anyhow", - "collections", "futures 0.3.28", "gpui", "language", - "lazy_static", "linkify", "pulldown-cmark", - "smallvec", - "smol", - "sum_tree", "theme", "ui", "util", @@ -9274,20 +9161,13 @@ name = "tasks_ui" version = "0.1.0" dependencies = [ "anyhow", - "db", - "fs", - "futures 0.3.28", "fuzzy", "gpui", - "log", "menu", "picker", "project", - "schemars", "serde", - "serde_json", "task", - "theme", "ui", "util", "workspace", @@ -9344,8 +9224,6 @@ dependencies = [ "dirs 4.0.0", "futures 0.3.28", "gpui", - "itertools 0.11.0", - "lazy_static", "libc", "procinfo", "rand 0.8.5", @@ -9375,25 +9253,17 @@ dependencies = [ "gpui", "itertools 0.11.0", "language", - "lazy_static", - "libc", - "mio-extras", - "ordered-float 2.10.0", - "procinfo", "project", "rand 0.8.5", "search", "serde", - "serde_derive", "serde_json", "settings", "shellexpand", - "smallvec", "smol", "task", "terminal", "theme", - "thiserror", "ui", "util", "workspace", @@ -9439,7 +9309,6 @@ dependencies = [ "futures 0.3.28", "gpui", "indexmap 1.9.3", - "itertools 0.11.0", "palette", "parking_lot 0.11.2", "refineable", @@ -9451,7 +9320,6 @@ dependencies = [ "serde_repr", "settings", "story", - "toml 0.8.10", "util", "uuid", ] @@ -9460,16 +9328,12 @@ dependencies = [ name = "theme_importer" version = "0.1.0" dependencies = [ - "any_ascii", "anyhow", "clap 4.4.4", - "convert_case 0.6.0", "gpui", "indexmap 1.9.3", - "indoc", "log", "palette", - "pathfinder_color", "rust-embed", "schemars", "serde", @@ -9478,7 +9342,6 @@ dependencies = [ "simplelog", "strum", "theme", - "uuid", "vscode_theme", ] @@ -9594,7 +9457,6 @@ dependencies = [ "lazy_static", "sys-locale", "time", - "util", ] [[package]] @@ -9669,16 +9531,6 @@ dependencies = [ "log", ] -[[package]] -name = "tokio-io-timeout" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30b74022ada614a1b4834de765f9bb43877f910cc8ce4be40e89042c9223a8bf" -dependencies = [ - "pin-project-lite", - "tokio", -] - [[package]] name = "tokio-macros" version = "2.1.0" @@ -9733,20 +9585,6 @@ dependencies = [ "tungstenite 0.17.3", ] -[[package]] -name = "tokio-util" -version = "0.6.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36943ee01a6d67977dd3f84a5a1d2efeb4ada3a1ae771cadfaa535d9d9fc6507" -dependencies = [ - "bytes 1.5.0", - "futures-core", - "futures-sink", - "log", - "pin-project-lite", - "tokio", -] - [[package]] name = "tokio-util" version = "0.7.9" @@ -9816,37 +9654,6 @@ dependencies = [ "winnow 0.6.1", ] -[[package]] -name = "tonic" -version = "0.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff08f4649d10a70ffa3522ca559031285d8e421d727ac85c60825761818f5d0a" -dependencies = [ - "async-stream", - "async-trait", - "base64 0.13.1", - "bytes 1.5.0", - "futures-core", - "futures-util", - "h2", - "http 0.2.9", - "http-body", - "hyper", - "hyper-timeout", - "percent-encoding", - "pin-project", - "prost 0.9.0", - "prost-derive 0.9.0", - "tokio", - "tokio-stream", - "tokio-util 0.6.10", - "tower", - "tower-layer", - "tower-service", - "tracing", - "tracing-futures", -] - [[package]] name = "tower" version = "0.4.13" @@ -9855,13 +9662,9 @@ checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c" dependencies = [ "futures-core", "futures-util", - "indexmap 1.9.3", "pin-project", "pin-project-lite", - "rand 0.8.5", - "slab", "tokio", - "tokio-util 0.7.9", "tower-layer", "tower-service", "tracing", @@ -10528,7 +10331,6 @@ dependencies = [ name = "ui" version = "0.1.0" dependencies = [ - "anyhow", "chrono", "gpui", "itertools 0.11.0", @@ -10842,7 +10644,6 @@ dependencies = [ "serde_derive", "serde_json", "settings", - "theme", "tokio", "ui", "util", @@ -11900,6 +11701,7 @@ dependencies = [ "notifications", "outline", "parking_lot 0.11.2", + "profiling", "project", "project_panel", "project_symbols", diff --git a/crates/assistant/Cargo.toml b/crates/assistant/Cargo.toml index 2b0e74f941..3f24babef6 100644 --- a/crates/assistant/Cargo.toml +++ b/crates/assistant/Cargo.toml @@ -13,20 +13,17 @@ doctest = false ai.workspace = true anyhow.workspace = true chrono.workspace = true -client.workspace = true collections.workspace = true editor.workspace = true fs.workspace = true futures.workspace = true gpui.workspace = true indoc.workspace = true -isahc.workspace = true language.workspace = true log.workspace = true menu.workspace = true multi_buffer.workspace = true ordered-float.workspace = true -parking_lot.workspace = true project.workspace = true regex.workspace = true schemars.workspace = true diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index a09ac68394..f1b2875670 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -16,10 +16,8 @@ path = "src/main.rs" [dependencies] anyhow.workspace = true clap = { version = "3.1", features = ["derive"] } -dirs = "3.0" ipc-channel = "0.16" serde.workspace = true -serde_derive.workspace = true util.workspace = true [target.'cfg(target_os = "macos")'.dependencies] diff --git a/crates/client/Cargo.toml b/crates/client/Cargo.toml index 57d0be23db..4dc8c38ef4 100644 --- a/crates/client/Cargo.toml +++ b/crates/client/Cargo.toml @@ -16,7 +16,6 @@ test-support = ["clock/test-support", "collections/test-support", "gpui/test-sup chrono = { workspace = true, features = ["serde"] } clock.workspace = true collections.workspace = true -db.workspace = true gpui.workspace = true util.workspace = true release_channel.workspace = true @@ -24,13 +23,11 @@ rpc.workspace = true text.workspace = true settings.workspace = true feature_flags.workspace = true -sum_tree.workspace = true anyhow.workspace = true async-recursion = "0.3" async-tungstenite = { version = "0.16", features = ["async-std", "async-native-tls"] } futures.workspace = true -image = "0.23" lazy_static.workspace = true log.workspace = true once_cell = "1.19.0" @@ -39,7 +36,6 @@ postage.workspace = true rand.workspace = true schemars.workspace = true serde.workspace = true -serde_derive.workspace = true serde_json.workspace = true sha2.workspace = true smol.workspace = true @@ -49,7 +45,6 @@ tempfile.workspace = true thiserror.workspace = true time.workspace = true tiny_http = "0.8" -uuid.workspace = true url.workspace = true [dev-dependencies] diff --git a/crates/collab/Cargo.toml b/crates/collab/Cargo.toml index 1591c3e950..eccd7d9c96 100644 --- a/crates/collab/Cargo.toml +++ b/crates/collab/Cargo.toml @@ -7,6 +7,9 @@ version = "0.44.0" publish = false license = "AGPL-3.0-or-later" +[features] +seed-support = ["reqwest"] + [[bin]] name = "collab" @@ -21,9 +24,7 @@ aws-config = { version = "1.1.5" } aws-sdk-s3 = { version = "1.15.0" } axum = { version = "0.5", features = ["json", "headers", "ws"] } axum-extra = { version = "0.3", features = ["erased-json"] } -base64 = "0.13" chrono.workspace = true -clap = { version = "3.1", features = ["derive"], optional = true } clock.workspace = true clickhouse.workspace = true collections.workspace = true @@ -33,7 +34,6 @@ futures.workspace = true hex.workspace = true hyper = "0.14" lazy_static.workspace = true -lipsum = { version = "0.8", optional = true } live_kit_server.workspace = true log.workspace = true nanoid = "0.4" @@ -49,17 +49,13 @@ semver.workspace = true serde.workspace = true serde_derive.workspace = true serde_json.workspace = true -sha-1 = "0.9" sha2.workspace = true -smallvec.workspace = true sqlx = { version = "0.7", features = ["runtime-tokio-rustls", "postgres", "json", "time", "uuid", "any"] } telemetry_events.workspace = true text.workspace = true time.workspace = true tokio = { version = "1", features = ["full"] } -tokio-tungstenite = "0.17" toml.workspace = true -tonic = "0.6" tower = "0.4" tower-http = { workspace = true, features = ["trace"] } tracing = "0.1.34" @@ -103,6 +99,3 @@ theme.workspace = true unindent.workspace = true util.workspace = true workspace = { workspace = true, features = ["test-support"] } - -[features] -seed-support = ["clap", "lipsum", "reqwest"] diff --git a/crates/color/Cargo.toml b/crates/color/Cargo.toml index 90f1109753..b1db0cc119 100644 --- a/crates/color/Cargo.toml +++ b/crates/color/Cargo.toml @@ -7,13 +7,10 @@ license = "GPL-3.0-or-later" [features] default = [] -stories = ["dep:itertools", "dep:story"] [lib] path = "src/color.rs" doctest = true [dependencies] -itertools = { workspace = true, optional = true } palette = "0.7.3" -story = { workspace = true, optional = true } diff --git a/crates/command_palette/Cargo.toml b/crates/command_palette/Cargo.toml index a3ad8f95ba..4d268545e8 100644 --- a/crates/command_palette/Cargo.toml +++ b/crates/command_palette/Cargo.toml @@ -10,7 +10,6 @@ path = "src/command_palette.rs" doctest = false [dependencies] -anyhow.workspace = true client.workspace = true collections.workspace = true command_palette_hooks.workspace = true diff --git a/crates/copilot/Cargo.toml b/crates/copilot/Cargo.toml index 61734eed69..eca15d3c56 100644 --- a/crates/copilot/Cargo.toml +++ b/crates/copilot/Cargo.toml @@ -28,15 +28,12 @@ command_palette_hooks.workspace = true futures.workspace = true gpui.workspace = true language.workspace = true -log.workspace = true lsp.workspace = true node_runtime.workspace = true parking_lot.workspace = true serde.workspace = true -serde_derive.workspace = true settings.workspace = true smol.workspace = true -theme.workspace = true util.workspace = true [target.'cfg(windows)'.dependencies] diff --git a/crates/copilot_ui/Cargo.toml b/crates/copilot_ui/Cargo.toml index 9ce26eef4c..cc83e09aa6 100644 --- a/crates/copilot_ui/Cargo.toml +++ b/crates/copilot_ui/Cargo.toml @@ -14,12 +14,9 @@ anyhow.workspace = true copilot.workspace = true editor.workspace = true fs.workspace = true -futures.workspace = true gpui.workspace = true language.workspace = true settings.workspace = true -smol.workspace = true -theme.workspace = true ui.workspace = true util.workspace = true workspace.workspace = true diff --git a/crates/diagnostics/Cargo.toml b/crates/diagnostics/Cargo.toml index 8a7980e10c..e4e408b665 100644 --- a/crates/diagnostics/Cargo.toml +++ b/crates/diagnostics/Cargo.toml @@ -18,13 +18,10 @@ gpui.workspace = true language.workspace = true log.workspace = true lsp.workspace = true -postage.workspace = true project.workspace = true schemars.workspace = true serde.workspace = true -serde_derive.workspace = true settings.workspace = true -smallvec.workspace = true theme.workspace = true ui.workspace = true util.workspace = true diff --git a/crates/feedback/Cargo.toml b/crates/feedback/Cargo.toml index 30b4773d6f..6a52568924 100644 --- a/crates/feedback/Cargo.toml +++ b/crates/feedback/Cargo.toml @@ -22,22 +22,16 @@ gpui.workspace = true human_bytes = "0.4.1" isahc.workspace = true language.workspace = true -lazy_static.workspace = true log.workspace = true menu.workspace = true -postage.workspace = true project.workspace = true regex.workspace = true release_channel.workspace = true serde.workspace = true serde_derive.workspace = true serde_json.workspace = true -settings.workspace = true -smallvec.workspace = true smol.workspace = true sysinfo.workspace = true -theme.workspace = true -tree-sitter-markdown = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "330ecab87a3e3a7211ac69bbadc19eabecdb1cca" } ui.workspace = true urlencoding = "2.1.2" util.workspace = true diff --git a/crates/journal/Cargo.toml b/crates/journal/Cargo.toml index 0e109d8905..325e6b5297 100644 --- a/crates/journal/Cargo.toml +++ b/crates/journal/Cargo.toml @@ -12,7 +12,6 @@ doctest = false [dependencies] anyhow.workspace = true chrono.workspace = true -dirs = "4.0" editor.workspace = true gpui.workspace = true log.workspace = true @@ -20,7 +19,6 @@ schemars.workspace = true serde.workspace = true settings.workspace = true shellexpand.workspace = true -util.workspace = true workspace.workspace = true [dev-dependencies] diff --git a/crates/multi_buffer/Cargo.toml b/crates/multi_buffer/Cargo.toml index 4c95403c8c..322ff38a5a 100644 --- a/crates/multi_buffer/Cargo.toml +++ b/crates/multi_buffer/Cargo.toml @@ -24,8 +24,6 @@ collections.workspace = true futures.workspace = true git.workspace = true gpui.workspace = true -indoc = "1.0.4" -itertools.workspace = true language.workspace = true log.workspace = true parking_lot.workspace = true diff --git a/crates/node_runtime/Cargo.toml b/crates/node_runtime/Cargo.toml index d92304ae1f..1c608b703f 100644 --- a/crates/node_runtime/Cargo.toml +++ b/crates/node_runtime/Cargo.toml @@ -16,9 +16,7 @@ async-tar.workspace = true async-trait.workspace = true futures.workspace = true log.workspace = true -parking_lot.workspace = true serde.workspace = true -serde_derive.workspace = true serde_json.workspace = true smol.workspace = true util.workspace = true diff --git a/crates/notifications/Cargo.toml b/crates/notifications/Cargo.toml index 269766dcce..40d61087fa 100644 --- a/crates/notifications/Cargo.toml +++ b/crates/notifications/Cargo.toml @@ -21,15 +21,11 @@ test-support = [ anyhow.workspace = true channel.workspace = true client.workspace = true -clock.workspace = true collections.workspace = true db.workspace = true -feature_flags.workspace = true gpui.workspace = true rpc.workspace = true -settings.workspace = true sum_tree.workspace = true -text.workspace = true time.workspace = true util.workspace = true diff --git a/crates/picker/Cargo.toml b/crates/picker/Cargo.toml index 63c408fb2f..510ce14a59 100644 --- a/crates/picker/Cargo.toml +++ b/crates/picker/Cargo.toml @@ -13,11 +13,7 @@ doctest = false editor.workspace = true gpui.workspace = true menu.workspace = true -parking_lot.workspace = true -settings.workspace = true -theme.workspace = true ui.workspace = true -util.workspace = true workspace.workspace = true [dev-dependencies] diff --git a/crates/project/Cargo.toml b/crates/project/Cargo.toml index e0d69b3e61..c76424144f 100644 --- a/crates/project/Cargo.toml +++ b/crates/project/Cargo.toml @@ -31,10 +31,8 @@ copilot.workspace = true fs.workspace = true futures.workspace = true fuzzy.workspace = true -git.workspace = true globset.workspace = true gpui.workspace = true -ignore = "0.4" itertools.workspace = true language.workspace = true log.workspace = true @@ -48,14 +46,12 @@ rand.workspace = true regex.workspace = true rpc.workspace = true task.workspace = true -schemars.workspace = true serde.workspace = true serde_json.workspace = true settings.workspace = true sha2.workspace = true similar = "1.3" smol.workspace = true -sum_tree.workspace = true terminal.workspace = true text.workspace = true util.workspace = true diff --git a/crates/recent_projects/Cargo.toml b/crates/recent_projects/Cargo.toml index 241cd69442..6d9e3d6f41 100644 --- a/crates/recent_projects/Cargo.toml +++ b/crates/recent_projects/Cargo.toml @@ -10,18 +10,12 @@ path = "src/recent_projects.rs" doctest = false [dependencies] -futures.workspace = true fuzzy.workspace = true gpui.workspace = true -language.workspace = true menu.workspace = true ordered-float.workspace = true picker.workspace = true -postage.workspace = true -settings.workspace = true smol.workspace = true -text.workspace = true -theme.workspace = true ui.workspace = true util.workspace = true workspace.workspace = true diff --git a/crates/rich_text/Cargo.toml b/crates/rich_text/Cargo.toml index 6576b5ec4c..5a12d0e56f 100644 --- a/crates/rich_text/Cargo.toml +++ b/crates/rich_text/Cargo.toml @@ -16,17 +16,11 @@ test-support = [ ] [dependencies] -anyhow.workspace = true -collections.workspace = true futures.workspace = true gpui.workspace = true language.workspace = true -lazy_static.workspace = true linkify.workspace = true pulldown-cmark.workspace = true -smallvec.workspace = true -smol.workspace = true -sum_tree.workspace = true theme.workspace = true ui.workspace = true util.workspace = true diff --git a/crates/tasks_ui/Cargo.toml b/crates/tasks_ui/Cargo.toml index fde8e83747..c4faf4d3b5 100644 --- a/crates/tasks_ui/Cargo.toml +++ b/crates/tasks_ui/Cargo.toml @@ -7,20 +7,13 @@ license = "GPL-3.0-or-later" [dependencies] anyhow.workspace = true -db.workspace = true -fs.workspace = true -futures.workspace = true fuzzy.workspace = true gpui.workspace = true -log.workspace = true menu.workspace = true picker.workspace = true project.workspace = true task.workspace = true -schemars.workspace = true serde.workspace = true -serde_json.workspace = true -theme.workspace = true ui.workspace = true util.workspace = true workspace.workspace = true diff --git a/crates/terminal/Cargo.toml b/crates/terminal/Cargo.toml index 7b37296874..7123264948 100644 --- a/crates/terminal/Cargo.toml +++ b/crates/terminal/Cargo.toml @@ -17,8 +17,6 @@ collections.workspace = true dirs = "4.0.0" futures.workspace = true gpui.workspace = true -itertools.workspace = true -lazy_static.workspace = true libc = "0.2" procinfo = { git = "https://github.com/zed-industries/wezterm", rev = "0c13436f4fa8b126f46dd4a20106419b41666897", default-features = false } task.workspace = true diff --git a/crates/terminal_view/Cargo.toml b/crates/terminal_view/Cargo.toml index 8edbb085cd..8daf4b3f02 100644 --- a/crates/terminal_view/Cargo.toml +++ b/crates/terminal_view/Cargo.toml @@ -19,24 +19,16 @@ futures.workspace = true gpui.workspace = true itertools.workspace = true language.workspace = true -lazy_static.workspace = true -libc = "0.2" -mio-extras = "2.0.6" -ordered-float.workspace = true -procinfo = { git = "https://github.com/zed-industries/wezterm", rev = "0c13436f4fa8b126f46dd4a20106419b41666897", default-features = false } project.workspace = true task.workspace = true search.workspace = true serde.workspace = true -serde_derive.workspace = true serde_json.workspace = true settings.workspace = true shellexpand.workspace = true -smallvec.workspace = true smol.workspace = true terminal.workspace = true theme.workspace = true -thiserror.workspace = true ui.workspace = true util.workspace = true workspace.workspace = true diff --git a/crates/theme/Cargo.toml b/crates/theme/Cargo.toml index 43be9094db..55ff0cfff6 100644 --- a/crates/theme/Cargo.toml +++ b/crates/theme/Cargo.toml @@ -7,7 +7,7 @@ license = "GPL-3.0-or-later" [features] default = [] -stories = ["dep:itertools", "dep:story"] +stories = ["dep:story"] test-support = ["gpui/test-support", "fs/test-support", "settings/test-support"] [lib] @@ -23,7 +23,6 @@ fs.workspace = true futures.workspace = true gpui.workspace = true indexmap = { version = "1.6.2", features = ["serde"] } -itertools = { workspace = true, optional = true } palette = { version = "0.7.3", default-features = false, features = ["std"] } parking_lot.workspace = true refineable.workspace = true @@ -35,7 +34,6 @@ serde_json_lenient.workspace = true serde_repr.workspace = true settings.workspace = true story = { workspace = true, optional = true } -toml.workspace = true util.workspace = true uuid.workspace = true diff --git a/crates/theme_importer/Cargo.toml b/crates/theme_importer/Cargo.toml index 9e2052e2bb..e53343d07d 100644 --- a/crates/theme_importer/Cargo.toml +++ b/crates/theme_importer/Cargo.toml @@ -6,16 +6,12 @@ publish = false license = "GPL-3.0-or-later" [dependencies] -any_ascii = "0.3.2" anyhow.workspace = true clap = { version = "4.4", features = ["derive"] } -convert_case = "0.6.0" gpui.workspace = true indexmap = { version = "1.6.2", features = ["serde"] } -indoc.workspace = true log.workspace = true palette = { version = "0.7.3", default-features = false, features = ["std"] } -pathfinder_color = "0.5" rust-embed.workspace = true schemars = { workspace = true, features = ["indexmap"] } serde.workspace = true @@ -24,5 +20,4 @@ serde_json_lenient.workspace = true simplelog = "0.9" strum = { version = "0.25.0", features = ["derive"] } theme.workspace = true -uuid.workspace = true vscode_theme = "0.2.0" diff --git a/crates/time_format/Cargo.toml b/crates/time_format/Cargo.toml index c3fd43be85..5cdaaa5b5a 100644 --- a/crates/time_format/Cargo.toml +++ b/crates/time_format/Cargo.toml @@ -14,7 +14,6 @@ anyhow.workspace = true lazy_static.workspace = true sys-locale.workspace = true time.workspace = true -util.workspace = true [target.'cfg(target_os = "macos")'.dependencies] core-foundation.workspace = true diff --git a/crates/ui/Cargo.toml b/crates/ui/Cargo.toml index 6b93ef0847..1776f151d3 100644 --- a/crates/ui/Cargo.toml +++ b/crates/ui/Cargo.toml @@ -10,7 +10,6 @@ name = "ui" path = "src/ui.rs" [dependencies] -anyhow.workspace = true chrono.workspace = true gpui.workspace = true itertools = { workspace = true, optional = true } diff --git a/crates/vim/Cargo.toml b/crates/vim/Cargo.toml index 1ba11f6c84..071421e74e 100644 --- a/crates/vim/Cargo.toml +++ b/crates/vim/Cargo.toml @@ -31,7 +31,6 @@ serde.workspace = true serde_derive.workspace = true serde_json.workspace = true settings.workspace = true -theme.workspace = true tokio = { version = "1.15", "optional" = true } ui.workspace = true workspace.workspace = true diff --git a/crates/zed/Cargo.toml b/crates/zed/Cargo.toml index 7afce7a175..bc3d0dd9ee 100644 --- a/crates/zed/Cargo.toml +++ b/crates/zed/Cargo.toml @@ -64,6 +64,7 @@ node_runtime.workspace = true notifications.workspace = true outline.workspace = true parking_lot.workspace = true +profiling.workspace = true project.workspace = true project_panel.workspace = true project_symbols.workspace = true @@ -131,3 +132,6 @@ name = "Zed" osx_minimum_system_version = "10.15.7" osx_info_plist_exts = ["resources/info/*"] osx_url_schemes = ["zed"] + +[package.metadata.cargo-machete] +ignored = ["profiling"]