Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Move Clippy configuration to the workspace level (#8891)
Marshall Bowers22fe03913ca1
diff --git a/Cargo.lock b/Cargo.lockindex 3bbc622c37a..9e19a6c5a05 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -3927,7 +3927,7 @@ dependencies = [[[package]]name = "fsevent"-version = "2.0.2"+version = "0.1.0"dependencies = ["bitflags 2.4.2","fsevent-sys 3.1.0",diff --git a/Cargo.toml b/Cargo.tomlindex 40364b95288..ae3df6cf959 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -322,8 +322,6 @@ features = ["Win32_System_Ole",]--[patch.crates-io]tree-sitter = { git = "https://github.com/tree-sitter/tree-sitter", rev = "e4a23971ec3071a09c1e84816954c98f96e98e52" }# Workaround for a broken nightly build of gpui: See #7644 and revisit once 0.5.3 is released.@@ -350,5 +348,46 @@ debug = "limited"lto = "thin"codegen-units = 1+[workspace.lints.clippy]+dbg_macro = "deny"+todo = "deny"++# These are all of the rules that currently have violations in the Zed+# codebase.+#+# We'll want to drive this list down by either:+# 1. fixing violations of the rule and begin enforcing it+# 2. deciding we want to allow the rule permanently, at which point+# we should codify that separately above.+#+# This list shouldn't be added to; it should only get shorter.+# =============================================================================++# There are a bunch of rules currently failing in the `style` group, so+# allow all of those, for now.+style = "allow"++# Individual rules that have violations in the codebase:+almost_complete_range = "allow"+arc_with_non_send_sync = "allow"+await_holding_lock = "allow"+borrow_deref_ref = "allow"+borrowed_box = "allow"+cast_abs_to_unsigned = "allow"+cmp_owned = "allow"+derive_ord_xor_partial_ord = "allow"+eq_op = "allow"+implied_bounds_in_impls = "allow"+let_underscore_future = "allow"+map_entry = "allow"+never_loop = "allow"+non_canonical_clone_impl = "allow"+non_canonical_partial_ord_impl = "allow"+reversed_empty_ranges = "allow"+single_range_in_vec_init = "allow"+suspicious_to_owned = "allow"+type_complexity = "allow"+unnecessary_to_owned = "allow"+[workspace.metadata.cargo-machete]ignored = ["bindgen", "cbindgen", "prost_build", "serde"]diff --git a/crates/activity_indicator/Cargo.toml b/crates/activity_indicator/Cargo.tomlindex 1513377e7da..ff0ae5c6a1e 100644--- a/crates/activity_indicator/Cargo.toml+++ b/crates/activity_indicator/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/activity_indicator.rs"doctest = falsediff --git a/crates/ai/Cargo.toml b/crates/ai/Cargo.tomlindex 726c7329dc5..69c3b88e62a 100644--- a/crates/ai/Cargo.toml+++ b/crates/ai/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/ai.rs"doctest = falsediff --git a/crates/assets/Cargo.toml b/crates/assets/Cargo.tomlindex 19eef955dc8..8fcb1f9cfe2 100644--- a/crates/assets/Cargo.toml+++ b/crates/assets/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[dependencies]anyhow.workspace = truegpui.workspace = truediff --git a/crates/assistant/Cargo.toml b/crates/assistant/Cargo.tomlindex 3f24babef6d..d84075a632b 100644--- a/crates/assistant/Cargo.toml+++ b/crates/assistant/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/assistant.rs"doctest = falsediff --git a/crates/audio/Cargo.toml b/crates/audio/Cargo.tomlindex d66df11f9f3..bfe22de1f07 100644--- a/crates/audio/Cargo.toml+++ b/crates/audio/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/audio.rs"doctest = falsediff --git a/crates/auto_update/Cargo.toml b/crates/auto_update/Cargo.tomlindex 8135d5b795d..6d4de08d040 100644--- a/crates/auto_update/Cargo.toml+++ b/crates/auto_update/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/auto_update.rs"doctest = falsediff --git a/crates/breadcrumbs/Cargo.toml b/crates/breadcrumbs/Cargo.tomlindex 24f3a70fd33..45d0f09f660 100644--- a/crates/breadcrumbs/Cargo.toml+++ b/crates/breadcrumbs/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/breadcrumbs.rs"doctest = falsediff --git a/crates/call/Cargo.toml b/crates/call/Cargo.tomlindex a0acf544b5d..569026d006a 100644--- a/crates/call/Cargo.toml+++ b/crates/call/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/call.rs"doctest = falsediff --git a/crates/channel/Cargo.toml b/crates/channel/Cargo.tomlindex ccd690059f0..49132a4b7b5 100644--- a/crates/channel/Cargo.toml+++ b/crates/channel/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/channel.rs"doctest = falsediff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.tomlindex 60285628e80..6316c64bdc8 100644--- a/crates/cli/Cargo.toml+++ b/crates/cli/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/cli.rs"doctest = falsediff --git a/crates/client/Cargo.toml b/crates/client/Cargo.tomlindex 4dc8c38ef4a..2b45efec85c 100644--- a/crates/client/Cargo.toml+++ b/crates/client/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/client.rs"doctest = falsediff --git a/crates/clock/Cargo.toml b/crates/clock/Cargo.tomlindex adef338cc77..d1fb21747b3 100644--- a/crates/clock/Cargo.toml+++ b/crates/clock/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/clock.rs"doctest = falsediff --git a/crates/collab/Cargo.toml b/crates/collab/Cargo.tomlindex 7cd499513a3..35e1a47baf3 100644--- a/crates/collab/Cargo.toml+++ b/crates/collab/Cargo.toml@@ -7,6 +7,9 @@ version = "0.44.0"publish = falselicense = "AGPL-3.0-or-later"+[lints]+workspace = true+[[bin]]name = "collab"diff --git a/crates/collab_ui/Cargo.toml b/crates/collab_ui/Cargo.tomlindex e88d191af57..ab8b85321e6 100644--- a/crates/collab_ui/Cargo.toml+++ b/crates/collab_ui/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/collab_ui.rs"doctest = falsediff --git a/crates/collections/Cargo.toml b/crates/collections/Cargo.tomlindex 85cee90e125..b16b4c1300e 100644--- a/crates/collections/Cargo.toml+++ b/crates/collections/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "Apache-2.0"+[lints]+workspace = true+[lib]path = "src/collections.rs"doctest = falsediff --git a/crates/color/Cargo.toml b/crates/color/Cargo.tomlindex d3e4a125f4d..a68a5fb5186 100644--- a/crates/color/Cargo.toml+++ b/crates/color/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[features]default = []diff --git a/crates/command_palette/Cargo.toml b/crates/command_palette/Cargo.tomlindex 565939e4a35..eecd80b6e19 100644--- a/crates/command_palette/Cargo.toml+++ b/crates/command_palette/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/command_palette.rs"doctest = falsediff --git a/crates/command_palette_hooks/Cargo.toml b/crates/command_palette_hooks/Cargo.tomlindex 8dd8b7bf69b..cc4f396bf83 100644--- a/crates/command_palette_hooks/Cargo.toml+++ b/crates/command_palette_hooks/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/command_palette_hooks.rs"doctest = falsediff --git a/crates/copilot/Cargo.toml b/crates/copilot/Cargo.tomlindex eca15d3c56a..609bd0e3a80 100644--- a/crates/copilot/Cargo.toml+++ b/crates/copilot/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/copilot.rs"doctest = falsediff --git a/crates/copilot_ui/Cargo.toml b/crates/copilot_ui/Cargo.tomlindex cc83e09aa6c..cc184b2dfc7 100644--- a/crates/copilot_ui/Cargo.toml+++ b/crates/copilot_ui/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/copilot_ui.rs"doctest = falsediff --git a/crates/db/Cargo.toml b/crates/db/Cargo.tomlindex 0b01e691b18..f31609277db 100644--- a/crates/db/Cargo.toml+++ b/crates/db/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/db.rs"doctest = falsediff --git a/crates/diagnostics/Cargo.toml b/crates/diagnostics/Cargo.tomlindex e4e408b6659..fcaacfd62a4 100644--- a/crates/diagnostics/Cargo.toml+++ b/crates/diagnostics/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/diagnostics.rs"doctest = falsediff --git a/crates/editor/Cargo.toml b/crates/editor/Cargo.tomlindex 8266e12ba7b..78aeae8ca9f 100644--- a/crates/editor/Cargo.toml+++ b/crates/editor/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/editor.rs"doctest = falsediff --git a/crates/extension/Cargo.toml b/crates/extension/Cargo.tomlindex 7c0e2d7afa0..d5ceeeff4b5 100644--- a/crates/extension/Cargo.toml+++ b/crates/extension/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/extension_store.rs"diff --git a/crates/extension_api/Cargo.toml b/crates/extension_api/Cargo.tomlindex 1adbd0c0ee1..84d2064eb57 100644--- a/crates/extension_api/Cargo.toml+++ b/crates/extension_api/Cargo.toml@@ -4,6 +4,9 @@ version = "0.1.0"edition = "2021"license = "Apache-2.0"+[lints]+workspace = true+[lib]path = "src/extension_api.rs"diff --git a/crates/extensions_ui/Cargo.toml b/crates/extensions_ui/Cargo.tomlindex df55a5091a5..7c2320717fc 100644--- a/crates/extensions_ui/Cargo.toml+++ b/crates/extensions_ui/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/extensions_ui.rs"diff --git a/crates/feature_flags/Cargo.toml b/crates/feature_flags/Cargo.tomlindex cf0f9475af8..101e90c6460 100644--- a/crates/feature_flags/Cargo.toml+++ b/crates/feature_flags/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/feature_flags.rs"diff --git a/crates/feedback/Cargo.toml b/crates/feedback/Cargo.tomlindex b3c89e2c544..05465ba95b9 100644--- a/crates/feedback/Cargo.toml+++ b/crates/feedback/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/feedback.rs"diff --git a/crates/file_finder/Cargo.toml b/crates/file_finder/Cargo.tomlindex 377bc2dc2a9..283b7c54950 100644--- a/crates/file_finder/Cargo.toml+++ b/crates/file_finder/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/file_finder.rs"doctest = falsediff --git a/crates/fs/Cargo.toml b/crates/fs/Cargo.tomlindex 4b48dbc2bf1..4a26a13e5f9 100644--- a/crates/fs/Cargo.toml+++ b/crates/fs/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/fs.rs"diff --git a/crates/fsevent/Cargo.toml b/crates/fsevent/Cargo.tomlindex 23490e8fa53..6a5a01843d1 100644--- a/crates/fsevent/Cargo.toml+++ b/crates/fsevent/Cargo.toml@@ -1,10 +1,12 @@[package]name = "fsevent"-version = "2.0.2"-license = "MIT"+version = "0.1.0"edition = "2021"publish = false+license = "GPL-3.0-or-later"+[lints]+workspace = true[lib]path = "src/fsevent.rs"diff --git a/crates/fuzzy/Cargo.toml b/crates/fuzzy/Cargo.tomlindex 3b323afdaac..e3a016c98b7 100644--- a/crates/fuzzy/Cargo.toml+++ b/crates/fuzzy/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/fuzzy.rs"doctest = falsediff --git a/crates/git/Cargo.toml b/crates/git/Cargo.tomlindex 720a0cdd323..4a47b74d59f 100644--- a/crates/git/Cargo.toml+++ b/crates/git/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/git.rs"diff --git a/crates/go_to_line/Cargo.toml b/crates/go_to_line/Cargo.tomlindex a009e275476..921434a4078 100644--- a/crates/go_to_line/Cargo.toml+++ b/crates/go_to_line/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/go_to_line.rs"doctest = falsediff --git a/crates/gpui/Cargo.toml b/crates/gpui/Cargo.tomlindex de83868b35a..c4a2432ecea 100644--- a/crates/gpui/Cargo.toml+++ b/crates/gpui/Cargo.toml@@ -7,6 +7,9 @@ description = "Zed's GPU-accelerated UI framework"publish = falselicense = "Apache-2.0"+[lints]+workspace = true+[features]test-support = ["backtrace",diff --git a/crates/gpui_macros/Cargo.toml b/crates/gpui_macros/Cargo.tomlindex f5a75891392..b48da0429e9 100644--- a/crates/gpui_macros/Cargo.toml+++ b/crates/gpui_macros/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "Apache-2.0"+[lints]+workspace = true+[lib]path = "src/gpui_macros.rs"proc-macro = truediff --git a/crates/install_cli/Cargo.toml b/crates/install_cli/Cargo.tomlindex 8afccceaaf1..4edeb01dcda 100644--- a/crates/install_cli/Cargo.toml+++ b/crates/install_cli/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/install_cli.rs"diff --git a/crates/journal/Cargo.toml b/crates/journal/Cargo.tomlindex 325e6b52970..e5dd558fa8f 100644--- a/crates/journal/Cargo.toml+++ b/crates/journal/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/journal.rs"doctest = falsediff --git a/crates/language/Cargo.toml b/crates/language/Cargo.tomlindex 77abad1ecf6..e6f2a45ea58 100644--- a/crates/language/Cargo.toml+++ b/crates/language/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/language.rs"doctest = falsediff --git a/crates/language_selector/Cargo.toml b/crates/language_selector/Cargo.tomlindex 5365be61a90..b864ffc31f3 100644--- a/crates/language_selector/Cargo.toml+++ b/crates/language_selector/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/language_selector.rs"doctest = falsediff --git a/crates/language_tools/Cargo.toml b/crates/language_tools/Cargo.tomlindex 2afad658c8b..6d0a1199b3d 100644--- a/crates/language_tools/Cargo.toml+++ b/crates/language_tools/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/language_tools.rs"doctest = falsediff --git a/crates/languages/Cargo.toml b/crates/languages/Cargo.tomlindex 8dd4078abce..122607791e0 100644--- a/crates/languages/Cargo.toml+++ b/crates/languages/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[dependencies]anyhow.workspace = trueasync-compression.workspace = truediff --git a/crates/live_kit_client/Cargo.toml b/crates/live_kit_client/Cargo.tomlindex a18199fe5aa..708fd61d410 100644--- a/crates/live_kit_client/Cargo.toml+++ b/crates/live_kit_client/Cargo.toml@@ -6,6 +6,9 @@ description = "Bindings to LiveKit Swift client SDK"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/live_kit_client.rs"doctest = falsediff --git a/crates/live_kit_server/Cargo.toml b/crates/live_kit_server/Cargo.tomlindex 3c742111c49..bdac22a85cd 100644--- a/crates/live_kit_server/Cargo.toml+++ b/crates/live_kit_server/Cargo.toml@@ -6,6 +6,9 @@ description = "SDK for the LiveKit server API"publish = falselicense = "AGPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/live_kit_server.rs"doctest = falsediff --git a/crates/lsp/Cargo.toml b/crates/lsp/Cargo.tomlindex 902105341be..23b2f204ef3 100644--- a/crates/lsp/Cargo.toml+++ b/crates/lsp/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/lsp.rs"doctest = falsediff --git a/crates/markdown_preview/Cargo.toml b/crates/markdown_preview/Cargo.tomlindex 5ac5ae3cb5a..f3192a79cac 100644--- a/crates/markdown_preview/Cargo.toml+++ b/crates/markdown_preview/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/markdown_preview.rs"diff --git a/crates/media/Cargo.toml b/crates/media/Cargo.tomlindex 784139f1293..ac22eccde67 100644--- a/crates/media/Cargo.toml+++ b/crates/media/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "Apache-2.0"+[lints]+workspace = true+[lib]path = "src/media.rs"doctest = falsediff --git a/crates/menu/Cargo.toml b/crates/menu/Cargo.tomlindex cf177272427..ce12455710a 100644--- a/crates/menu/Cargo.toml+++ b/crates/menu/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/menu.rs"doctest = falsediff --git a/crates/multi_buffer/Cargo.toml b/crates/multi_buffer/Cargo.tomlindex 322ff38a5a7..f866217da86 100644--- a/crates/multi_buffer/Cargo.toml+++ b/crates/multi_buffer/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/multi_buffer.rs"doctest = falsediff --git a/crates/node_runtime/Cargo.toml b/crates/node_runtime/Cargo.tomlindex 1c608b703fe..7e713a3e2d3 100644--- a/crates/node_runtime/Cargo.toml+++ b/crates/node_runtime/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/node_runtime.rs"doctest = falsediff --git a/crates/notifications/Cargo.toml b/crates/notifications/Cargo.tomlindex 40d61087fa3..3e1c856e409 100644--- a/crates/notifications/Cargo.toml+++ b/crates/notifications/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/notification_store.rs"doctest = falsediff --git a/crates/outline/Cargo.toml b/crates/outline/Cargo.tomlindex 28dc5d6a1b8..540e979ab3e 100644--- a/crates/outline/Cargo.toml+++ b/crates/outline/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/outline.rs"doctest = falsediff --git a/crates/picker/Cargo.toml b/crates/picker/Cargo.tomlindex 510ce14a594..79a8ed70d83 100644--- a/crates/picker/Cargo.toml+++ b/crates/picker/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/picker.rs"doctest = falsediff --git a/crates/prettier/Cargo.toml b/crates/prettier/Cargo.tomlindex 242a65ba7bf..586ff0770fe 100644--- a/crates/prettier/Cargo.toml+++ b/crates/prettier/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/prettier.rs"doctest = falsediff --git a/crates/project/Cargo.toml b/crates/project/Cargo.tomlindex c76424144f7..875ebb2de4b 100644--- a/crates/project/Cargo.toml+++ b/crates/project/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/project.rs"doctest = falsediff --git a/crates/project_core/Cargo.toml b/crates/project_core/Cargo.tomlindex c72fe909da8..b82e9a26ebd 100644--- a/crates/project_core/Cargo.toml+++ b/crates/project_core/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html[features]test-support = [diff --git a/crates/project_panel/Cargo.toml b/crates/project_panel/Cargo.tomlindex 093d47e124d..2772fc18a24 100644--- a/crates/project_panel/Cargo.toml+++ b/crates/project_panel/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/project_panel.rs"doctest = falsediff --git a/crates/project_symbols/Cargo.toml b/crates/project_symbols/Cargo.tomlindex 93b122eaf0c..cadbdd83aaa 100644--- a/crates/project_symbols/Cargo.toml+++ b/crates/project_symbols/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/project_symbols.rs"doctest = falsediff --git a/crates/quick_action_bar/Cargo.toml b/crates/quick_action_bar/Cargo.tomlindex e1f8c66d106..3d5d56a3185 100644--- a/crates/quick_action_bar/Cargo.toml+++ b/crates/quick_action_bar/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/quick_action_bar.rs"doctest = falsediff --git a/crates/recent_projects/Cargo.toml b/crates/recent_projects/Cargo.tomlindex f96dfbdd7db..3e8f63d1336 100644--- a/crates/recent_projects/Cargo.toml+++ b/crates/recent_projects/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/recent_projects.rs"doctest = falsediff --git a/crates/refineable/Cargo.toml b/crates/refineable/Cargo.tomlindex 97f03f1f2f2..bda47e7a8a9 100644--- a/crates/refineable/Cargo.toml+++ b/crates/refineable/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "Apache-2.0"+[lints]+workspace = true+[lib]path = "src/refineable.rs"doctest = falsediff --git a/crates/refineable/derive_refineable/Cargo.toml b/crates/refineable/derive_refineable/Cargo.tomlindex f0d6d6d2dc8..00502ec19a2 100644--- a/crates/refineable/derive_refineable/Cargo.toml+++ b/crates/refineable/derive_refineable/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "Apache-2.0"+[lints]+workspace = true+[lib]path = "src/derive_refineable.rs"proc-macro = truediff --git a/crates/release_channel/Cargo.toml b/crates/release_channel/Cargo.tomlindex b40ce363460..acea552d634 100644--- a/crates/release_channel/Cargo.toml+++ b/crates/release_channel/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[dependencies]gpui.workspace = trueonce_cell = "1.19.0"diff --git a/crates/rich_text/Cargo.toml b/crates/rich_text/Cargo.tomlindex 5a12d0e56f2..146fdcbd8a0 100644--- a/crates/rich_text/Cargo.toml+++ b/crates/rich_text/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/rich_text.rs"doctest = falsediff --git a/crates/rope/Cargo.toml b/crates/rope/Cargo.tomlindex 9190341f539..b1ce3694167 100644--- a/crates/rope/Cargo.toml+++ b/crates/rope/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/rope.rs"diff --git a/crates/rpc/Cargo.toml b/crates/rpc/Cargo.tomlindex 7f6750bce53..a4af21df11b 100644--- a/crates/rpc/Cargo.toml+++ b/crates/rpc/Cargo.toml@@ -6,6 +6,9 @@ version = "0.1.0"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/rpc.rs"doctest = falsediff --git a/crates/search/Cargo.toml b/crates/search/Cargo.tomlindex 8daa5e743ec..e54b5e0338c 100644--- a/crates/search/Cargo.toml+++ b/crates/search/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/search.rs"doctest = falsediff --git a/crates/semantic_index/Cargo.toml b/crates/semantic_index/Cargo.tomlindex 5c922a503ac..957a5e3cdf6 100644--- a/crates/semantic_index/Cargo.toml+++ b/crates/semantic_index/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/semantic_index.rs"doctest = falsediff --git a/crates/settings/Cargo.toml b/crates/settings/Cargo.tomlindex d9ad9d3f9ab..3177716196e 100644--- a/crates/settings/Cargo.toml+++ b/crates/settings/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/settings.rs"doctest = falsediff --git a/crates/snippet/Cargo.toml b/crates/snippet/Cargo.tomlindex c2c62cc01e0..f12c7dded35 100644--- a/crates/snippet/Cargo.toml+++ b/crates/snippet/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/snippet.rs"doctest = falsediff --git a/crates/sqlez/Cargo.toml b/crates/sqlez/Cargo.tomlindex 71c67af0950..98b05a06e4b 100644--- a/crates/sqlez/Cargo.toml+++ b/crates/sqlez/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[dependencies]anyhow.workspace = truecollections.workspace = truediff --git a/crates/sqlez_macros/Cargo.toml b/crates/sqlez_macros/Cargo.tomlindex aab2596ddd1..969fe26c886 100644--- a/crates/sqlez_macros/Cargo.toml+++ b/crates/sqlez_macros/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/sqlez_macros.rs"proc-macro = truediff --git a/crates/story/Cargo.toml b/crates/story/Cargo.tomlindex fc1754c253c..419a447c139 100644--- a/crates/story/Cargo.toml+++ b/crates/story/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[dependencies]gpui.workspace = trueitertools = { package = "itertools", version = "0.10" }diff --git a/crates/storybook/Cargo.toml b/crates/storybook/Cargo.tomlindex caf66c4c4f7..38cc3ddc98d 100644--- a/crates/storybook/Cargo.toml+++ b/crates/storybook/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[[bin]]name = "storybook"path = "src/storybook.rs"diff --git a/crates/sum_tree/Cargo.toml b/crates/sum_tree/Cargo.tomlindex ac24e0d2989..b370e6df185 100644--- a/crates/sum_tree/Cargo.toml+++ b/crates/sum_tree/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "Apache-2.0"+[lints]+workspace = true+[lib]path = "src/sum_tree.rs"doctest = falsediff --git a/crates/task/Cargo.toml b/crates/task/Cargo.tomlindex 47f3170c743..8f4da57a635 100644--- a/crates/task/Cargo.toml+++ b/crates/task/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[dependencies]anyhow.workspace = truecollections.workspace = truediff --git a/crates/tasks_ui/Cargo.toml b/crates/tasks_ui/Cargo.tomlindex cbf5280ef6f..446179890c1 100644--- a/crates/tasks_ui/Cargo.toml+++ b/crates/tasks_ui/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[dependencies]anyhow.workspace = trueeditor.workspace = truediff --git a/crates/telemetry_events/Cargo.toml b/crates/telemetry_events/Cargo.tomlindex 6893e7c1835..b202a60b251 100644--- a/crates/telemetry_events/Cargo.toml+++ b/crates/telemetry_events/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/telemetry_events.rs"diff --git a/crates/terminal/Cargo.toml b/crates/terminal/Cargo.tomlindex 884b754aacb..46862665573 100644--- a/crates/terminal/Cargo.toml+++ b/crates/terminal/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/terminal.rs"doctest = falsediff --git a/crates/terminal_view/Cargo.toml b/crates/terminal_view/Cargo.tomlindex 8daf4b3f028..d9e3606d4da 100644--- a/crates/terminal_view/Cargo.toml+++ b/crates/terminal_view/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/terminal_view.rs"doctest = falsediff --git a/crates/text/Cargo.toml b/crates/text/Cargo.tomlindex 798b506b5e2..4e57a784074 100644--- a/crates/text/Cargo.toml+++ b/crates/text/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/text.rs"doctest = falsediff --git a/crates/theme/Cargo.toml b/crates/theme/Cargo.tomlindex fff134af84a..0ead51ba410 100644--- a/crates/theme/Cargo.toml+++ b/crates/theme/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[features]default = []stories = ["dep:story"]diff --git a/crates/theme_importer/Cargo.toml b/crates/theme_importer/Cargo.tomlindex ddff83f385c..07ed1695bec 100644--- a/crates/theme_importer/Cargo.toml+++ b/crates/theme_importer/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[dependencies]anyhow.workspace = trueclap = { workspace = true, features = ["derive"] }diff --git a/crates/theme_selector/Cargo.toml b/crates/theme_selector/Cargo.tomlindex 7e7e6fe9b64..3f9c9e62051 100644--- a/crates/theme_selector/Cargo.toml+++ b/crates/theme_selector/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/theme_selector.rs"doctest = falsediff --git a/crates/time_format/Cargo.toml b/crates/time_format/Cargo.tomlindex ea1fb336d56..1b5d36eb6c0 100644--- a/crates/time_format/Cargo.toml+++ b/crates/time_format/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/time_format.rs"doctest = falsediff --git a/crates/ui/Cargo.toml b/crates/ui/Cargo.tomlindex 1776f151d3d..3acae49d952 100644--- a/crates/ui/Cargo.toml+++ b/crates/ui/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]name = "ui"path = "src/ui.rs"diff --git a/crates/util/Cargo.toml b/crates/util/Cargo.tomlindex 9725320507d..191d0beb565 100644--- a/crates/util/Cargo.toml+++ b/crates/util/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "Apache-2.0"+[lints]+workspace = true+[lib]path = "src/util.rs"doctest = truediff --git a/crates/vcs_menu/Cargo.toml b/crates/vcs_menu/Cargo.tomlindex 3258c229dd8..786e2ee6fce 100644--- a/crates/vcs_menu/Cargo.toml+++ b/crates/vcs_menu/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[dependencies]anyhow.workspace = truefs.workspace = truediff --git a/crates/vim/Cargo.toml b/crates/vim/Cargo.tomlindex 071421e74e1..4a78547d1e0 100644--- a/crates/vim/Cargo.toml+++ b/crates/vim/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/vim.rs"doctest = falsediff --git a/crates/welcome/Cargo.toml b/crates/welcome/Cargo.tomlindex 2200db8bbde..6fd65c795e2 100644--- a/crates/welcome/Cargo.toml+++ b/crates/welcome/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/welcome.rs"diff --git a/crates/workspace/Cargo.toml b/crates/workspace/Cargo.tomlindex 44c6a988593..db8d004b9eb 100644--- a/crates/workspace/Cargo.toml+++ b/crates/workspace/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]path = "src/workspace.rs"doctest = falsediff --git a/crates/zed/Cargo.toml b/crates/zed/Cargo.tomlindex 2ad94a8bae6..fe50da48845 100644--- a/crates/zed/Cargo.toml+++ b/crates/zed/Cargo.toml@@ -6,6 +6,9 @@ version = "0.126.0"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[lib]name = "zed"path = "src/zed.rs"diff --git a/crates/zed_actions/Cargo.toml b/crates/zed_actions/Cargo.tomlindex 19c9415514e..ee279cde654 100644--- a/crates/zed_actions/Cargo.toml+++ b/crates/zed_actions/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[dependencies]gpui.workspace = trueserde.workspace = truediff --git a/extensions/gleam/Cargo.toml b/extensions/gleam/Cargo.tomlindex b4167dd1cae..881978c90bf 100644--- a/extensions/gleam/Cargo.toml+++ b/extensions/gleam/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "Apache-2.0"+[lints]+workspace = true+[dependencies]zed_extension_api = { path = "../../crates/extension_api" }diff --git a/tooling/xtask/Cargo.toml b/tooling/xtask/Cargo.tomlindex fac3b54e5e3..11f0036c74f 100644--- a/tooling/xtask/Cargo.toml+++ b/tooling/xtask/Cargo.toml@@ -5,6 +5,9 @@ edition = "2021"publish = falselicense = "GPL-3.0-or-later"+[lints]+workspace = true+[dependencies]anyhow.workspace = trueclap = { workspace = true, features = ["derive"] }diff --git a/tooling/xtask/src/main.rs b/tooling/xtask/src/main.rsindex 44947a4367e..e4feb2bdb1e 100644--- a/tooling/xtask/src/main.rs+++ b/tooling/xtask/src/main.rs@@ -63,57 +63,6 @@ fn run_clippy(args: ClippyArgs) -> Result<()> {#[cfg(not(target_os = "windows"))]clippy_command.args(["--deny", "warnings"]);- /// These are all of the rules that currently have violations in the Zed- /// codebase.- ///- /// We'll want to drive this list down by either:- /// 1. fixing violations of the rule and begin enforcing it- /// 2. deciding we want to allow the rule permanently, at which point- /// we should codify that separately in this task.- ///- /// This list shouldn't be added to; it should only get shorter.- const MIGRATORY_RULES_TO_ALLOW: &[&str] = &[- // There are a bunch of rules currently failing in the `style` group, so- // allow all of those, for now.- "clippy::style",- // Individual rules that have violations in the codebase:- "clippy::almost_complete_range",- "clippy::arc_with_non_send_sync",- "clippy::await_holding_lock",- "clippy::borrow_deref_ref",- "clippy::borrowed_box",- "clippy::cast_abs_to_unsigned",- "clippy::cmp_owned",- "clippy::derive_ord_xor_partial_ord",- "clippy::eq_op",- "clippy::implied_bounds_in_impls",- "clippy::let_underscore_future",- "clippy::map_entry",- "clippy::never_loop",- "clippy::non_canonical_clone_impl",- "clippy::non_canonical_partial_ord_impl",- "clippy::reversed_empty_ranges",- "clippy::single_range_in_vec_init",- "clippy::suspicious_to_owned",- "clippy::type_complexity",- "clippy::unnecessary_to_owned",- ];-- // When fixing violations automatically for a single package we don't care- // about the rules we're already violating, since it may be possible to- // have them fixed automatically.- let ignore_suppressed_rules = args.fix && args.package.is_some();- if !ignore_suppressed_rules {- for rule in MIGRATORY_RULES_TO_ALLOW {- clippy_command.args(["--allow", rule]);- }- }-- // Deny `dbg!` and `todo!`s.- clippy_command- .args(["--deny", "clippy::dbg_macro"])- .args(["--deny", "clippy::todo"]);-eprintln!("running: {cargo} {}",clippy_command