From 22fe03913ca11259b12eb250119dfb091bd70800 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Tue, 5 Mar 2024 12:01:17 -0500 Subject: [PATCH] Move Clippy configuration to the workspace level (#8891) This PR moves the Clippy configuration up to the workspace level. We're using the [`lints` table](https://doc.rust-lang.org/cargo/reference/workspaces.html#the-lints-table) to configure the Clippy ruleset in the workspace's `Cargo.toml`. Each crate in the workspace now has the following in their own `Cargo.toml` to inherit the lints from the workspace: ```toml [lints] workspace = true ``` This allows for configuring rust-analyzer to show Clippy lints in the editor by using the following configuration in your Zed `settings.json`: ```json { "lsp": { "rust-analyzer": { "initialization_options": { "check": { "command": "clippy" } } } } ``` Release Notes: - N/A --- Cargo.lock | 2 +- Cargo.toml | 43 +++++++++++++++- crates/activity_indicator/Cargo.toml | 3 ++ crates/ai/Cargo.toml | 3 ++ crates/assets/Cargo.toml | 3 ++ crates/assistant/Cargo.toml | 3 ++ crates/audio/Cargo.toml | 3 ++ crates/auto_update/Cargo.toml | 3 ++ crates/breadcrumbs/Cargo.toml | 3 ++ crates/call/Cargo.toml | 3 ++ crates/channel/Cargo.toml | 3 ++ crates/cli/Cargo.toml | 3 ++ crates/client/Cargo.toml | 3 ++ crates/clock/Cargo.toml | 3 ++ crates/collab/Cargo.toml | 3 ++ crates/collab_ui/Cargo.toml | 3 ++ crates/collections/Cargo.toml | 3 ++ crates/color/Cargo.toml | 3 ++ crates/command_palette/Cargo.toml | 3 ++ crates/command_palette_hooks/Cargo.toml | 3 ++ crates/copilot/Cargo.toml | 3 ++ crates/copilot_ui/Cargo.toml | 3 ++ crates/db/Cargo.toml | 3 ++ crates/diagnostics/Cargo.toml | 3 ++ crates/editor/Cargo.toml | 3 ++ crates/extension/Cargo.toml | 3 ++ crates/extension_api/Cargo.toml | 3 ++ crates/extensions_ui/Cargo.toml | 3 ++ crates/feature_flags/Cargo.toml | 3 ++ crates/feedback/Cargo.toml | 3 ++ crates/file_finder/Cargo.toml | 3 ++ crates/fs/Cargo.toml | 3 ++ crates/fsevent/Cargo.toml | 6 ++- crates/fuzzy/Cargo.toml | 3 ++ crates/git/Cargo.toml | 3 ++ crates/go_to_line/Cargo.toml | 3 ++ crates/gpui/Cargo.toml | 3 ++ crates/gpui_macros/Cargo.toml | 3 ++ crates/install_cli/Cargo.toml | 3 ++ crates/journal/Cargo.toml | 3 ++ crates/language/Cargo.toml | 3 ++ crates/language_selector/Cargo.toml | 3 ++ crates/language_tools/Cargo.toml | 3 ++ crates/languages/Cargo.toml | 3 ++ crates/live_kit_client/Cargo.toml | 3 ++ crates/live_kit_server/Cargo.toml | 3 ++ crates/lsp/Cargo.toml | 3 ++ crates/markdown_preview/Cargo.toml | 3 ++ crates/media/Cargo.toml | 3 ++ crates/menu/Cargo.toml | 3 ++ crates/multi_buffer/Cargo.toml | 3 ++ crates/node_runtime/Cargo.toml | 3 ++ crates/notifications/Cargo.toml | 3 ++ crates/outline/Cargo.toml | 3 ++ crates/picker/Cargo.toml | 3 ++ crates/prettier/Cargo.toml | 3 ++ crates/project/Cargo.toml | 3 ++ crates/project_core/Cargo.toml | 3 ++ crates/project_panel/Cargo.toml | 3 ++ crates/project_symbols/Cargo.toml | 3 ++ crates/quick_action_bar/Cargo.toml | 3 ++ crates/recent_projects/Cargo.toml | 3 ++ crates/refineable/Cargo.toml | 3 ++ .../refineable/derive_refineable/Cargo.toml | 3 ++ crates/release_channel/Cargo.toml | 3 ++ crates/rich_text/Cargo.toml | 3 ++ crates/rope/Cargo.toml | 3 ++ crates/rpc/Cargo.toml | 3 ++ crates/search/Cargo.toml | 3 ++ crates/semantic_index/Cargo.toml | 3 ++ crates/settings/Cargo.toml | 3 ++ crates/snippet/Cargo.toml | 3 ++ crates/sqlez/Cargo.toml | 3 ++ crates/sqlez_macros/Cargo.toml | 3 ++ crates/story/Cargo.toml | 3 ++ crates/storybook/Cargo.toml | 3 ++ crates/sum_tree/Cargo.toml | 3 ++ crates/task/Cargo.toml | 3 ++ crates/tasks_ui/Cargo.toml | 3 ++ crates/telemetry_events/Cargo.toml | 3 ++ crates/terminal/Cargo.toml | 3 ++ crates/terminal_view/Cargo.toml | 3 ++ crates/text/Cargo.toml | 3 ++ crates/theme/Cargo.toml | 3 ++ crates/theme_importer/Cargo.toml | 3 ++ crates/theme_selector/Cargo.toml | 3 ++ crates/time_format/Cargo.toml | 3 ++ crates/ui/Cargo.toml | 3 ++ crates/util/Cargo.toml | 3 ++ crates/vcs_menu/Cargo.toml | 3 ++ crates/vim/Cargo.toml | 3 ++ crates/welcome/Cargo.toml | 3 ++ crates/workspace/Cargo.toml | 3 ++ crates/zed/Cargo.toml | 3 ++ crates/zed_actions/Cargo.toml | 3 ++ extensions/gleam/Cargo.toml | 3 ++ tooling/xtask/Cargo.toml | 3 ++ tooling/xtask/src/main.rs | 51 ------------------- 98 files changed, 328 insertions(+), 56 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3bbc622c37a48584fa709695c44e5b98957b6dff..9e19a6c5a05af68a41681db49824026316d14cf1 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.toml index 40364b9528880adae35b745ce2008116aaff068a..ae3df6cf959c68075ac20223aec94c744f355895 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.toml index 1513377e7da135e944455ad90d5d31158d7d5986..ff0ae5c6a1ea254e0f0e0954c3cbbbd1b4eb41cf 100644 --- a/crates/activity_indicator/Cargo.toml +++ b/crates/activity_indicator/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/activity_indicator.rs" doctest = false diff --git a/crates/ai/Cargo.toml b/crates/ai/Cargo.toml index 726c7329dc5da2d10155bb3dcf2858d2ca250894..69c3b88e62a3c331cd83c67a1368377374359206 100644 --- a/crates/ai/Cargo.toml +++ b/crates/ai/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/ai.rs" doctest = false diff --git a/crates/assets/Cargo.toml b/crates/assets/Cargo.toml index 19eef955dc8cdbd833215406b1d9e5e0340ba37f..8fcb1f9cfe210569727b9f286e84890d3b8377ca 100644 --- a/crates/assets/Cargo.toml +++ b/crates/assets/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [dependencies] anyhow.workspace = true gpui.workspace = true diff --git a/crates/assistant/Cargo.toml b/crates/assistant/Cargo.toml index 3f24babef6d75da96fa09497852b809d973f103e..d84075a632b2d6e4ed7444155ea348eebdc242d7 100644 --- a/crates/assistant/Cargo.toml +++ b/crates/assistant/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/assistant.rs" doctest = false diff --git a/crates/audio/Cargo.toml b/crates/audio/Cargo.toml index d66df11f9f3452d612d440fb5a4571ee9fc525c1..bfe22de1f07482dba2f4fc3affb4758878c28e77 100644 --- a/crates/audio/Cargo.toml +++ b/crates/audio/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/audio.rs" doctest = false diff --git a/crates/auto_update/Cargo.toml b/crates/auto_update/Cargo.toml index 8135d5b795dc7abdf2b20d767da6785e049f465c..6d4de08d04048760e02edd2d9055c0d20ba89ae1 100644 --- a/crates/auto_update/Cargo.toml +++ b/crates/auto_update/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/auto_update.rs" doctest = false diff --git a/crates/breadcrumbs/Cargo.toml b/crates/breadcrumbs/Cargo.toml index 24f3a70fd331e4d688538265e2e3c3e2b72e9092..45d0f09f6609003a03f579fa5bfee2395c5f6586 100644 --- a/crates/breadcrumbs/Cargo.toml +++ b/crates/breadcrumbs/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/breadcrumbs.rs" doctest = false diff --git a/crates/call/Cargo.toml b/crates/call/Cargo.toml index a0acf544b5df599f2a4c0dd408599fbe4b737b47..569026d006a18e49b23f9b3ace45a1959196b230 100644 --- a/crates/call/Cargo.toml +++ b/crates/call/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/call.rs" doctest = false diff --git a/crates/channel/Cargo.toml b/crates/channel/Cargo.toml index ccd690059f063a5b36096654f60dc309ed4d64c6..49132a4b7b5a0973b0ad315175888c38cf5ebfb6 100644 --- a/crates/channel/Cargo.toml +++ b/crates/channel/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/channel.rs" doctest = false diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index 60285628e80c2c70196d5a8814a9ea37a95a4094..6316c64bdc8dbe0df93e4f04aee59f38f76378c1 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/cli.rs" doctest = false diff --git a/crates/client/Cargo.toml b/crates/client/Cargo.toml index 4dc8c38ef4aa26e5857c628a26d306434936ab19..2b45efec85cae1ed16ee224dc68a8189e4911862 100644 --- a/crates/client/Cargo.toml +++ b/crates/client/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/client.rs" doctest = false diff --git a/crates/clock/Cargo.toml b/crates/clock/Cargo.toml index adef338cc77e3fd76a9202a042ffefec28366522..d1fb21747b378ae7dd9561d73dbd70624023ed9a 100644 --- a/crates/clock/Cargo.toml +++ b/crates/clock/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/clock.rs" doctest = false diff --git a/crates/collab/Cargo.toml b/crates/collab/Cargo.toml index 7cd499513a36bcdd0da05c244d9327be96f1b67f..35e1a47baf36ef656227adfa6ba93a82c91dd2d3 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" +[lints] +workspace = true + [[bin]] name = "collab" diff --git a/crates/collab_ui/Cargo.toml b/crates/collab_ui/Cargo.toml index e88d191af57efaedaef5640b65522cab2aacd7bd..ab8b85321e6d732d76a6d9a32663666201c13fd1 100644 --- a/crates/collab_ui/Cargo.toml +++ b/crates/collab_ui/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/collab_ui.rs" doctest = false diff --git a/crates/collections/Cargo.toml b/crates/collections/Cargo.toml index 85cee90e1255c29aa9ae7a7d575c3272efe0178c..b16b4c1300e044ae7a58e48f4dd367c07fe599fe 100644 --- a/crates/collections/Cargo.toml +++ b/crates/collections/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "Apache-2.0" +[lints] +workspace = true + [lib] path = "src/collections.rs" doctest = false diff --git a/crates/color/Cargo.toml b/crates/color/Cargo.toml index d3e4a125f4d6c6aef6113d0885bc10e9bbd27d4c..a68a5fb518605c6780bcfd82e8ba0cacd28f436d 100644 --- a/crates/color/Cargo.toml +++ b/crates/color/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [features] default = [] diff --git a/crates/command_palette/Cargo.toml b/crates/command_palette/Cargo.toml index 565939e4a358c32eed611214302013ac0a6eb15b..eecd80b6e197f95775856de4116c86c6c09c14d0 100644 --- a/crates/command_palette/Cargo.toml +++ b/crates/command_palette/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/command_palette.rs" doctest = false diff --git a/crates/command_palette_hooks/Cargo.toml b/crates/command_palette_hooks/Cargo.toml index 8dd8b7bf69b592505f54df46c33486ef0403fe92..cc4f396bf8370e0e57e102c95b012ecb34283b44 100644 --- a/crates/command_palette_hooks/Cargo.toml +++ b/crates/command_palette_hooks/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/command_palette_hooks.rs" doctest = false diff --git a/crates/copilot/Cargo.toml b/crates/copilot/Cargo.toml index eca15d3c56a1db3834fbb0deb13235fe0193e151..609bd0e3a808ac909b5cc7e9b927cdecd1ca6b02 100644 --- a/crates/copilot/Cargo.toml +++ b/crates/copilot/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/copilot.rs" doctest = false diff --git a/crates/copilot_ui/Cargo.toml b/crates/copilot_ui/Cargo.toml index cc83e09aa6c32dfb874dfa9e7b1b77933c626653..cc184b2dfc75b5a186928844024fbf2bd3a7abf7 100644 --- a/crates/copilot_ui/Cargo.toml +++ b/crates/copilot_ui/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/copilot_ui.rs" doctest = false diff --git a/crates/db/Cargo.toml b/crates/db/Cargo.toml index 0b01e691b1837b5ce16252ce2e5560e30321ba01..f31609277db13282c9f2a67dfbf414dc92578c80 100644 --- a/crates/db/Cargo.toml +++ b/crates/db/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/db.rs" doctest = false diff --git a/crates/diagnostics/Cargo.toml b/crates/diagnostics/Cargo.toml index e4e408b66597d687f13ed0ce414e1055e84557b2..fcaacfd62a491a9be7b46319fc6d5412cad2ae9e 100644 --- a/crates/diagnostics/Cargo.toml +++ b/crates/diagnostics/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/diagnostics.rs" doctest = false diff --git a/crates/editor/Cargo.toml b/crates/editor/Cargo.toml index 8266e12ba7b5361778b5342c811f382fb507b561..78aeae8ca9fbfcd4d0fee1c8775dade99fc999ab 100644 --- a/crates/editor/Cargo.toml +++ b/crates/editor/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/editor.rs" doctest = false diff --git a/crates/extension/Cargo.toml b/crates/extension/Cargo.toml index 7c0e2d7afa0a223e756f7f09933d15842c1e1188..d5ceeeff4b5e218c75f62076c36ec3f7ac1caf85 100644 --- a/crates/extension/Cargo.toml +++ b/crates/extension/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "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.toml index 1adbd0c0ee1adcdfb893a9e17a5ea60348747533..84d2064eb57afea1291429d45bc137886dfc0ff2 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.toml index df55a5091a5f9b9ec521d7049d2a1fdef0b3bb51..7c2320717fc68bdb4d2cf322400d98e30cf010ed 100644 --- a/crates/extensions_ui/Cargo.toml +++ b/crates/extensions_ui/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "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.toml index cf0f9475af8b4f4f69d698c873e815356e294cd1..101e90c6460c98b542f0e5cd1055f689f9973db0 100644 --- a/crates/feature_flags/Cargo.toml +++ b/crates/feature_flags/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "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.toml index b3c89e2c544a3afc72fbb562a1de0c556bbaa6ce..05465ba95b9183f29b1c6533542f239927295422 100644 --- a/crates/feedback/Cargo.toml +++ b/crates/feedback/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "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.toml index 377bc2dc2a9885445ce31dc3a73e5ca08b99e58d..283b7c54950f09cec81536022787f10981b7d699 100644 --- a/crates/file_finder/Cargo.toml +++ b/crates/file_finder/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/file_finder.rs" doctest = false diff --git a/crates/fs/Cargo.toml b/crates/fs/Cargo.toml index 4b48dbc2bf19d47caef0aedd08d559a5e9632dc3..4a26a13e5f9a223aa0608ea1b9b2e98c2f3b739b 100644 --- a/crates/fs/Cargo.toml +++ b/crates/fs/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/fs.rs" diff --git a/crates/fsevent/Cargo.toml b/crates/fsevent/Cargo.toml index 23490e8fa538fb1109dd6863fba91ffaeb1d82ff..6a5a01843d14129a4c13499f2245801e3c143906 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.toml index 3b323afdaac4db10ec4453ebccf543541873887f..e3a016c98b718cc9852b9abece47213c284f8fcb 100644 --- a/crates/fuzzy/Cargo.toml +++ b/crates/fuzzy/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/fuzzy.rs" doctest = false diff --git a/crates/git/Cargo.toml b/crates/git/Cargo.toml index 720a0cdd323aa5750fa2b4fc0c99dfb359f9cdf5..4a47b74d59f6e71e28813b763ed18f4c26d6417f 100644 --- a/crates/git/Cargo.toml +++ b/crates/git/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "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.toml index a009e275476d695a51fc03183bd67c6c8bd762d6..921434a40787057fcca05408d242b364af78d29d 100644 --- a/crates/go_to_line/Cargo.toml +++ b/crates/go_to_line/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/go_to_line.rs" doctest = false diff --git a/crates/gpui/Cargo.toml b/crates/gpui/Cargo.toml index de83868b35a608977a7d07dc423c85c99acf7cfc..c4a2432ecea9b9b717eb97c013da461b965ac8e9 100644 --- a/crates/gpui/Cargo.toml +++ b/crates/gpui/Cargo.toml @@ -7,6 +7,9 @@ description = "Zed's GPU-accelerated UI framework" publish = false license = "Apache-2.0" +[lints] +workspace = true + [features] test-support = [ "backtrace", diff --git a/crates/gpui_macros/Cargo.toml b/crates/gpui_macros/Cargo.toml index f5a7589139207397090906e7be69a967a2c36e13..b48da0429e9ece343908d8eca043c7dd965614a9 100644 --- a/crates/gpui_macros/Cargo.toml +++ b/crates/gpui_macros/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "Apache-2.0" +[lints] +workspace = true + [lib] path = "src/gpui_macros.rs" proc-macro = true diff --git a/crates/install_cli/Cargo.toml b/crates/install_cli/Cargo.toml index 8afccceaaf171032bc5fecf1aeb02b27200382d5..4edeb01dcdacc3cd4df043c60600252068cafaaa 100644 --- a/crates/install_cli/Cargo.toml +++ b/crates/install_cli/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "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.toml index 325e6b529705b7df544f0634096b1044ab925b6e..e5dd558fa8f5396f2b5d235231d7b216ec9d1a43 100644 --- a/crates/journal/Cargo.toml +++ b/crates/journal/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/journal.rs" doctest = false diff --git a/crates/language/Cargo.toml b/crates/language/Cargo.toml index 77abad1ecf6c03391473c9eacd5db8ce85faaf89..e6f2a45ea58c9d311833ba769446753f935b60d2 100644 --- a/crates/language/Cargo.toml +++ b/crates/language/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/language.rs" doctest = false diff --git a/crates/language_selector/Cargo.toml b/crates/language_selector/Cargo.toml index 5365be61a90f1610513b35ac1a26b38d5b736077..b864ffc31f3f4cd3d8333975d20ec064205e9e73 100644 --- a/crates/language_selector/Cargo.toml +++ b/crates/language_selector/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/language_selector.rs" doctest = false diff --git a/crates/language_tools/Cargo.toml b/crates/language_tools/Cargo.toml index 2afad658c8baec101e63fa4edc1773a08897d72e..6d0a1199b3d6a2eef885fb0c7f1c388f1e7cc030 100644 --- a/crates/language_tools/Cargo.toml +++ b/crates/language_tools/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/language_tools.rs" doctest = false diff --git a/crates/languages/Cargo.toml b/crates/languages/Cargo.toml index 8dd4078abcebf642bdc81108b2acb6ad85796505..122607791e04177526a0ebf88b53b0e908c8300d 100644 --- a/crates/languages/Cargo.toml +++ b/crates/languages/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [dependencies] anyhow.workspace = true async-compression.workspace = true diff --git a/crates/live_kit_client/Cargo.toml b/crates/live_kit_client/Cargo.toml index a18199fe5aa629ae2795024b9797a878851bd931..708fd61d4106123d07003e33982f4ad1a81d3f4a 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 = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/live_kit_client.rs" doctest = false diff --git a/crates/live_kit_server/Cargo.toml b/crates/live_kit_server/Cargo.toml index 3c742111c491f44945c84b64459444c2cf02a3b0..bdac22a85cd7dbf92a66907768f3cc6877f5c202 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 = false license = "AGPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/live_kit_server.rs" doctest = false diff --git a/crates/lsp/Cargo.toml b/crates/lsp/Cargo.toml index 902105341be4294caf12c7e4b23931c3862899ac..23b2f204ef3071cb59b39c0d7b611a9a66f7c11a 100644 --- a/crates/lsp/Cargo.toml +++ b/crates/lsp/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/lsp.rs" doctest = false diff --git a/crates/markdown_preview/Cargo.toml b/crates/markdown_preview/Cargo.toml index 5ac5ae3cb5a93f35f4f82593bb9d12b7065b522c..f3192a79cac86b22eb50ef8501060ed99a8c5026 100644 --- a/crates/markdown_preview/Cargo.toml +++ b/crates/markdown_preview/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "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.toml index 784139f1293ed033a2139a3a0caa552d8a3df47a..ac22eccde675dba08d5f9c17305db39174df9d87 100644 --- a/crates/media/Cargo.toml +++ b/crates/media/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "Apache-2.0" +[lints] +workspace = true + [lib] path = "src/media.rs" doctest = false diff --git a/crates/menu/Cargo.toml b/crates/menu/Cargo.toml index cf177272427706b56a4d8c15bc7b36b0f63beca8..ce12455710a852c5fe41c048732a27829d9b38b8 100644 --- a/crates/menu/Cargo.toml +++ b/crates/menu/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/menu.rs" doctest = false diff --git a/crates/multi_buffer/Cargo.toml b/crates/multi_buffer/Cargo.toml index 322ff38a5a7ac3ffab49d58a0964a870c1d56bdc..f866217da8635edee8433ad2e4fa46a0c561b8bd 100644 --- a/crates/multi_buffer/Cargo.toml +++ b/crates/multi_buffer/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/multi_buffer.rs" doctest = false diff --git a/crates/node_runtime/Cargo.toml b/crates/node_runtime/Cargo.toml index 1c608b703fef08a36b835ebe80bacb58f98f0ed8..7e713a3e2d37904b30a20d7d26342354d2474c0e 100644 --- a/crates/node_runtime/Cargo.toml +++ b/crates/node_runtime/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/node_runtime.rs" doctest = false diff --git a/crates/notifications/Cargo.toml b/crates/notifications/Cargo.toml index 40d61087fa3b758db8d86be665115810d2c158de..3e1c856e409cfeaf10cf956bf05c6b7a54b64683 100644 --- a/crates/notifications/Cargo.toml +++ b/crates/notifications/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/notification_store.rs" doctest = false diff --git a/crates/outline/Cargo.toml b/crates/outline/Cargo.toml index 28dc5d6a1b8e7534f944e3e206af38971ea17157..540e979ab3ed8711a3cd1be006f8ee41fc37c10c 100644 --- a/crates/outline/Cargo.toml +++ b/crates/outline/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/outline.rs" doctest = false diff --git a/crates/picker/Cargo.toml b/crates/picker/Cargo.toml index 510ce14a594fc1162a5a39c2eb272516382353ff..79a8ed70d832fe112efd8bdf50fa14854193f670 100644 --- a/crates/picker/Cargo.toml +++ b/crates/picker/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/picker.rs" doctest = false diff --git a/crates/prettier/Cargo.toml b/crates/prettier/Cargo.toml index 242a65ba7bf6f151ac050f3660c6c9caba348605..586ff0770fe64efd217b43b08e6bc443a13b435f 100644 --- a/crates/prettier/Cargo.toml +++ b/crates/prettier/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/prettier.rs" doctest = false diff --git a/crates/project/Cargo.toml b/crates/project/Cargo.toml index c76424144f771a30281fb9f21e3b953e55252c31..875ebb2de4bc4dfd51ff9536c956e3a3eb843fd3 100644 --- a/crates/project/Cargo.toml +++ b/crates/project/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/project.rs" doctest = false diff --git a/crates/project_core/Cargo.toml b/crates/project_core/Cargo.toml index c72fe909da8669e5ace1543beda4d0b94c59511d..b82e9a26ebd2f3352af24f59eac953766caa93f4 100644 --- a/crates/project_core/Cargo.toml +++ b/crates/project_core/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "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.toml index 093d47e124dfacea1355dc1ba000bddc6c23acaa..2772fc18a24a598a68e5bf40ceb68d74f043d109 100644 --- a/crates/project_panel/Cargo.toml +++ b/crates/project_panel/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/project_panel.rs" doctest = false diff --git a/crates/project_symbols/Cargo.toml b/crates/project_symbols/Cargo.toml index 93b122eaf0cab0646fa06ca29fbbd241205deee8..cadbdd83aaa08e18075775b0e9992c9f6afa5f64 100644 --- a/crates/project_symbols/Cargo.toml +++ b/crates/project_symbols/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/project_symbols.rs" doctest = false diff --git a/crates/quick_action_bar/Cargo.toml b/crates/quick_action_bar/Cargo.toml index e1f8c66d106f50d36ee7f96673958d4a1b596379..3d5d56a3185769452d1db8ef9107b6e0d42196e0 100644 --- a/crates/quick_action_bar/Cargo.toml +++ b/crates/quick_action_bar/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/quick_action_bar.rs" doctest = false diff --git a/crates/recent_projects/Cargo.toml b/crates/recent_projects/Cargo.toml index f96dfbdd7db8487af438f553d18bfff5f42eb6c9..3e8f63d1336eecc03dcf745acc683c641aa03761 100644 --- a/crates/recent_projects/Cargo.toml +++ b/crates/recent_projects/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/recent_projects.rs" doctest = false diff --git a/crates/refineable/Cargo.toml b/crates/refineable/Cargo.toml index 97f03f1f2f29d8219c24437503bb22613712c7bf..bda47e7a8a9e0639c2616c560acb0d2f49928029 100644 --- a/crates/refineable/Cargo.toml +++ b/crates/refineable/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "Apache-2.0" +[lints] +workspace = true + [lib] path = "src/refineable.rs" doctest = false diff --git a/crates/refineable/derive_refineable/Cargo.toml b/crates/refineable/derive_refineable/Cargo.toml index f0d6d6d2dc8e616db6949b3ea567cc612d4b3742..00502ec19a2867465c75f1925ae2de5a3a607190 100644 --- a/crates/refineable/derive_refineable/Cargo.toml +++ b/crates/refineable/derive_refineable/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "Apache-2.0" +[lints] +workspace = true + [lib] path = "src/derive_refineable.rs" proc-macro = true diff --git a/crates/release_channel/Cargo.toml b/crates/release_channel/Cargo.toml index b40ce363460038927a8b839f924e17de99422aff..acea552d63494b3a940eb7ba4b34971322df4e6b 100644 --- a/crates/release_channel/Cargo.toml +++ b/crates/release_channel/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [dependencies] gpui.workspace = true once_cell = "1.19.0" diff --git a/crates/rich_text/Cargo.toml b/crates/rich_text/Cargo.toml index 5a12d0e56f2981b2d442b1007420bfebeb1d19e5..146fdcbd8a06d42e58edce656616fb10240c8f69 100644 --- a/crates/rich_text/Cargo.toml +++ b/crates/rich_text/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/rich_text.rs" doctest = false diff --git a/crates/rope/Cargo.toml b/crates/rope/Cargo.toml index 9190341f5397a0434c7a3a5123f610163228be24..b1ce3694167e243d2a4440dccca6e80bcfe38310 100644 --- a/crates/rope/Cargo.toml +++ b/crates/rope/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/rope.rs" diff --git a/crates/rpc/Cargo.toml b/crates/rpc/Cargo.toml index 7f6750bce53eb263641c4a002f2d8df8d057a03b..a4af21df11be279df375cbd79af8b342b6fa9a88 100644 --- a/crates/rpc/Cargo.toml +++ b/crates/rpc/Cargo.toml @@ -6,6 +6,9 @@ version = "0.1.0" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/rpc.rs" doctest = false diff --git a/crates/search/Cargo.toml b/crates/search/Cargo.toml index 8daa5e743ecbb44113baf03b4e9a484749aa2b36..e54b5e0338cb5efd0a1b1a9bfcf2eaba6234f94b 100644 --- a/crates/search/Cargo.toml +++ b/crates/search/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/search.rs" doctest = false diff --git a/crates/semantic_index/Cargo.toml b/crates/semantic_index/Cargo.toml index 5c922a503acca4b89d299c541bcce1f0678b7bc5..957a5e3cdf680e9f56c6cb98a620c33dc70e506b 100644 --- a/crates/semantic_index/Cargo.toml +++ b/crates/semantic_index/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/semantic_index.rs" doctest = false diff --git a/crates/settings/Cargo.toml b/crates/settings/Cargo.toml index d9ad9d3f9ab1c1e1750fc7f0ef1b345f3076b15e..3177716196e35e706f6cf9d873d9ed819cc42473 100644 --- a/crates/settings/Cargo.toml +++ b/crates/settings/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/settings.rs" doctest = false diff --git a/crates/snippet/Cargo.toml b/crates/snippet/Cargo.toml index c2c62cc01e0758307f0e9184fd5cb72f47979eec..f12c7dded35320286411d93e2d97f8f9d362c594 100644 --- a/crates/snippet/Cargo.toml +++ b/crates/snippet/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/snippet.rs" doctest = false diff --git a/crates/sqlez/Cargo.toml b/crates/sqlez/Cargo.toml index 71c67af0950e8ef940ce55e3410493a7bb1ec311..98b05a06e4ba31eb2a3e11ab3e17348416782c37 100644 --- a/crates/sqlez/Cargo.toml +++ b/crates/sqlez/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [dependencies] anyhow.workspace = true collections.workspace = true diff --git a/crates/sqlez_macros/Cargo.toml b/crates/sqlez_macros/Cargo.toml index aab2596ddd16c7e67aa3ffb2a867acb500133df2..969fe26c886d9dcab2d02318bc2e30118356d96b 100644 --- a/crates/sqlez_macros/Cargo.toml +++ b/crates/sqlez_macros/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/sqlez_macros.rs" proc-macro = true diff --git a/crates/story/Cargo.toml b/crates/story/Cargo.toml index fc1754c253c6f523241ec98906e6ad0785d15fae..419a447c1390c67346e6ca2974c7de17ccb03d30 100644 --- a/crates/story/Cargo.toml +++ b/crates/story/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [dependencies] gpui.workspace = true itertools = { package = "itertools", version = "0.10" } diff --git a/crates/storybook/Cargo.toml b/crates/storybook/Cargo.toml index caf66c4c4f7650a6ac8c3843759be0b395de443a..38cc3ddc98db7d04260b76ad0ec873eb66307cd6 100644 --- a/crates/storybook/Cargo.toml +++ b/crates/storybook/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "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.toml index ac24e0d298970ec2945af915e60835c52747d5e9..b370e6df1850b2cae77ccb4b87cecfb7b32ca41b 100644 --- a/crates/sum_tree/Cargo.toml +++ b/crates/sum_tree/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "Apache-2.0" +[lints] +workspace = true + [lib] path = "src/sum_tree.rs" doctest = false diff --git a/crates/task/Cargo.toml b/crates/task/Cargo.toml index 47f3170c7436e5e002cca17c317c277395e0289d..8f4da57a63561fa7ef2b57080de7081c228b86f0 100644 --- a/crates/task/Cargo.toml +++ b/crates/task/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [dependencies] anyhow.workspace = true collections.workspace = true diff --git a/crates/tasks_ui/Cargo.toml b/crates/tasks_ui/Cargo.toml index cbf5280ef6ff631efd6ade072ae350c23f3f3068..446179890c1d37139e888ae07a211571c6b03838 100644 --- a/crates/tasks_ui/Cargo.toml +++ b/crates/tasks_ui/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [dependencies] anyhow.workspace = true editor.workspace = true diff --git a/crates/telemetry_events/Cargo.toml b/crates/telemetry_events/Cargo.toml index 6893e7c1835fd79de96dc0f659ae0c28f0b91acc..b202a60b251b492dd4c2acb2ef1f1bd2e8bbbe4f 100644 --- a/crates/telemetry_events/Cargo.toml +++ b/crates/telemetry_events/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "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.toml index 884b754aacbf659fcadf3f39a77e36621afdb8a2..468626655736af017df561a5c13e6e9bd6951c36 100644 --- a/crates/terminal/Cargo.toml +++ b/crates/terminal/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/terminal.rs" doctest = false diff --git a/crates/terminal_view/Cargo.toml b/crates/terminal_view/Cargo.toml index 8daf4b3f028203f776e3d1dacca4f22c9acd519b..d9e3606d4da5533fb17bdf6e2f6754e5193dc755 100644 --- a/crates/terminal_view/Cargo.toml +++ b/crates/terminal_view/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/terminal_view.rs" doctest = false diff --git a/crates/text/Cargo.toml b/crates/text/Cargo.toml index 798b506b5e2714e78e50c7b90efcf8cb498d27dc..4e57a7840742f51e672d348ada0136d044c4de4e 100644 --- a/crates/text/Cargo.toml +++ b/crates/text/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/text.rs" doctest = false diff --git a/crates/theme/Cargo.toml b/crates/theme/Cargo.toml index fff134af84a2f2096d58a09a7df0446bb7c68ef0..0ead51ba410e7f0557852ab5bec8f7612795cab8 100644 --- a/crates/theme/Cargo.toml +++ b/crates/theme/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "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.toml index ddff83f385cdfe2b4d0dac61300c83668d1efdbe..07ed1695bec457d7c7ab2e974c99d412a2d3d0c7 100644 --- a/crates/theme_importer/Cargo.toml +++ b/crates/theme_importer/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [dependencies] anyhow.workspace = true clap = { workspace = true, features = ["derive"] } diff --git a/crates/theme_selector/Cargo.toml b/crates/theme_selector/Cargo.toml index 7e7e6fe9b642c6d959427db7b071de4cad154791..3f9c9e62051cd42f502dddcf938dfd92bddc1f20 100644 --- a/crates/theme_selector/Cargo.toml +++ b/crates/theme_selector/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/theme_selector.rs" doctest = false diff --git a/crates/time_format/Cargo.toml b/crates/time_format/Cargo.toml index ea1fb336d56ed179cf5cca69233def4131c17dc8..1b5d36eb6c027f88df5d17d41d205af9cd6c2bbb 100644 --- a/crates/time_format/Cargo.toml +++ b/crates/time_format/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/time_format.rs" doctest = false diff --git a/crates/ui/Cargo.toml b/crates/ui/Cargo.toml index 1776f151d3d7e8c747afeb791cbc6203f7576bef..3acae49d952fbdbd1eda7a3b8197aac688e9fbb0 100644 --- a/crates/ui/Cargo.toml +++ b/crates/ui/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "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.toml index 9725320507d488982361662d682b25cda506f59c..191d0beb565e2ab07eedc2ef32b2478d4044f206 100644 --- a/crates/util/Cargo.toml +++ b/crates/util/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "Apache-2.0" +[lints] +workspace = true + [lib] path = "src/util.rs" doctest = true diff --git a/crates/vcs_menu/Cargo.toml b/crates/vcs_menu/Cargo.toml index 3258c229dd8eda5d6b01042dd66f91882e038017..786e2ee6fce74b6b243fa4c684a343e8fececbf4 100644 --- a/crates/vcs_menu/Cargo.toml +++ b/crates/vcs_menu/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [dependencies] anyhow.workspace = true fs.workspace = true diff --git a/crates/vim/Cargo.toml b/crates/vim/Cargo.toml index 071421e74e112d262666fd617affbbc353563580..4a78547d1e0d137ce857485a81d5e67c65df1803 100644 --- a/crates/vim/Cargo.toml +++ b/crates/vim/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/vim.rs" doctest = false diff --git a/crates/welcome/Cargo.toml b/crates/welcome/Cargo.toml index 2200db8bbde6094e7b58615c4b8d1e74087f1766..6fd65c795e21ffa5623b95ebfa6ffaca3fa780fe 100644 --- a/crates/welcome/Cargo.toml +++ b/crates/welcome/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/welcome.rs" diff --git a/crates/workspace/Cargo.toml b/crates/workspace/Cargo.toml index 44c6a988593193f86e92dc7fd0c8ca7a6d395c20..db8d004b9eb8794343d581eb26ebb76729131f53 100644 --- a/crates/workspace/Cargo.toml +++ b/crates/workspace/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [lib] path = "src/workspace.rs" doctest = false diff --git a/crates/zed/Cargo.toml b/crates/zed/Cargo.toml index 2ad94a8bae62b3d548b73b03e4e6a7f932a165d2..fe50da48845837c1bfb04155aaac42762fa14e91 100644 --- a/crates/zed/Cargo.toml +++ b/crates/zed/Cargo.toml @@ -6,6 +6,9 @@ version = "0.126.0" publish = false license = "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.toml index 19c9415514ee6f2122f5e07fef1c2af03226f6a8..ee279cde654f72a117f4a611645a3afd21af49e0 100644 --- a/crates/zed_actions/Cargo.toml +++ b/crates/zed_actions/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [dependencies] gpui.workspace = true serde.workspace = true diff --git a/extensions/gleam/Cargo.toml b/extensions/gleam/Cargo.toml index b4167dd1caeb905326881a0716b5cf40e2b2de41..881978c90bfd8f4981c6d6fd91cf2577bd38d873 100644 --- a/extensions/gleam/Cargo.toml +++ b/extensions/gleam/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "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.toml index fac3b54e5e3147f00c6eb65ad7e547b9e6317df5..11f0036c74f34e3722ee9e4a8d9a83fc97a2ab36 100644 --- a/tooling/xtask/Cargo.toml +++ b/tooling/xtask/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" publish = false license = "GPL-3.0-or-later" +[lints] +workspace = true + [dependencies] anyhow.workspace = true clap = { workspace = true, features = ["derive"] } diff --git a/tooling/xtask/src/main.rs b/tooling/xtask/src/main.rs index 44947a4367eff21af0b199fdb336a4abba6eeb9f..e4feb2bdb1ea48d1978086bd206e27e3a2a2ded0 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