Cargo.toml

  1[workspace]
  2resolver = "2"
  3members = [
  4    "crates/activity_indicator",
  5    "crates/anthropic",
  6    "crates/assets",
  7    "crates/assistant",
  8    "crates/assistant_slash_command",
  9    "crates/assistant_tool",
 10    "crates/audio",
 11    "crates/auto_update",
 12    "crates/breadcrumbs",
 13    "crates/call",
 14    "crates/channel",
 15    "crates/cli",
 16    "crates/client",
 17    "crates/clock",
 18    "crates/collab",
 19    "crates/collab_ui",
 20    "crates/collections",
 21    "crates/command_palette",
 22    "crates/command_palette_hooks",
 23    "crates/context_servers",
 24    "crates/copilot",
 25    "crates/db",
 26    "crates/diagnostics",
 27    "crates/docs_preprocessor",
 28    "crates/editor",
 29    "crates/evals",
 30    "crates/extension",
 31    "crates/extension_api",
 32    "crates/extension_cli",
 33    "crates/extension_host",
 34    "crates/extensions_ui",
 35    "crates/feature_flags",
 36    "crates/feedback",
 37    "crates/file_finder",
 38    "crates/file_icons",
 39    "crates/fs",
 40    "crates/fsevent",
 41    "crates/fuzzy",
 42    "crates/git",
 43    "crates/git_hosting_providers",
 44    "crates/go_to_line",
 45    "crates/google_ai",
 46    "crates/gpui",
 47    "crates/gpui_macros",
 48    "crates/html_to_markdown",
 49    "crates/http_client",
 50    "crates/image_viewer",
 51    "crates/indexed_docs",
 52    "crates/inline_completion_button",
 53    "crates/install_cli",
 54    "crates/journal",
 55    "crates/language",
 56    "crates/language_model",
 57    "crates/language_selector",
 58    "crates/language_tools",
 59    "crates/languages",
 60    "crates/live_kit_client",
 61    "crates/live_kit_server",
 62    "crates/lsp",
 63    "crates/markdown",
 64    "crates/markdown_preview",
 65    "crates/media",
 66    "crates/menu",
 67    "crates/multi_buffer",
 68    "crates/node_runtime",
 69    "crates/notifications",
 70    "crates/ollama",
 71    "crates/open_ai",
 72    "crates/outline",
 73    "crates/outline_panel",
 74    "crates/paths",
 75    "crates/picker",
 76    "crates/prettier",
 77    "crates/project",
 78    "crates/project_panel",
 79    "crates/project_symbols",
 80    "crates/proto",
 81    "crates/quick_action_bar",
 82    "crates/recent_projects",
 83    "crates/refineable",
 84    "crates/refineable/derive_refineable",
 85    "crates/release_channel",
 86    "crates/remote",
 87    "crates/remote_server",
 88    "crates/repl",
 89    "crates/reqwest_client",
 90    "crates/rich_text",
 91    "crates/rope",
 92    "crates/rpc",
 93    "crates/search",
 94    "crates/semantic_index",
 95    "crates/semantic_version",
 96    "crates/session",
 97    "crates/settings",
 98    "crates/settings_ui",
 99    "crates/snippet",
100    "crates/snippet_provider",
101    "crates/snippets_ui",
102    "crates/sqlez",
103    "crates/sqlez_macros",
104    "crates/story",
105    "crates/storybook",
106    "crates/sum_tree",
107    "crates/supermaven",
108    "crates/supermaven_api",
109    "crates/tab_switcher",
110    "crates/task",
111    "crates/tasks_ui",
112    "crates/telemetry_events",
113    "crates/terminal",
114    "crates/terminal_view",
115    "crates/text",
116    "crates/theme",
117    "crates/theme_importer",
118    "crates/theme_selector",
119    "crates/time_format",
120    "crates/title_bar",
121    "crates/toolchain_selector",
122    "crates/ui",
123    "crates/ui_input",
124    "crates/ui_macros",
125    "crates/reqwest_client",
126    "crates/util",
127    "crates/vcs_menu",
128    "crates/vim",
129    "crates/welcome",
130    "crates/workspace",
131    "crates/worktree",
132    "crates/zed",
133    "crates/zed_actions",
134
135    #
136    # Extensions
137    #
138
139    "extensions/astro",
140    "extensions/clojure",
141    "extensions/csharp",
142    "extensions/deno",
143    "extensions/elixir",
144    "extensions/elm",
145    "extensions/emmet",
146    "extensions/erlang",
147    "extensions/glsl",
148    "extensions/haskell",
149    "extensions/html",
150    "extensions/lua",
151    "extensions/php",
152    "extensions/perplexity",
153    "extensions/prisma",
154    "extensions/proto",
155    "extensions/purescript",
156    "extensions/ruff",
157    "extensions/slash-commands-example",
158    "extensions/snippets",
159    "extensions/terraform",
160    "extensions/test-extension",
161    "extensions/toml",
162    "extensions/uiua",
163    "extensions/zig",
164
165    #
166    # Tooling
167    #
168
169    "tooling/xtask",
170]
171default-members = ["crates/zed"]
172
173[workspace.dependencies]
174
175#
176# Workspace member crates
177#
178
179activity_indicator = { path = "crates/activity_indicator" }
180ai = { path = "crates/ai" }
181anthropic = { path = "crates/anthropic" }
182assets = { path = "crates/assets" }
183assistant = { path = "crates/assistant" }
184assistant_slash_command = { path = "crates/assistant_slash_command" }
185assistant_tool = { path = "crates/assistant_tool" }
186audio = { path = "crates/audio" }
187auto_update = { path = "crates/auto_update" }
188breadcrumbs = { path = "crates/breadcrumbs" }
189call = { path = "crates/call" }
190channel = { path = "crates/channel" }
191cli = { path = "crates/cli" }
192client = { path = "crates/client" }
193clock = { path = "crates/clock" }
194collab = { path = "crates/collab" }
195collab_ui = { path = "crates/collab_ui" }
196collections = { path = "crates/collections" }
197command_palette = { path = "crates/command_palette" }
198command_palette_hooks = { path = "crates/command_palette_hooks" }
199context_servers = { path = "crates/context_servers" }
200copilot = { path = "crates/copilot" }
201db = { path = "crates/db" }
202diagnostics = { path = "crates/diagnostics" }
203editor = { path = "crates/editor" }
204extension = { path = "crates/extension" }
205extension_host = { path = "crates/extension_host" }
206extensions_ui = { path = "crates/extensions_ui" }
207feature_flags = { path = "crates/feature_flags" }
208feedback = { path = "crates/feedback" }
209file_finder = { path = "crates/file_finder" }
210file_icons = { path = "crates/file_icons" }
211fs = { path = "crates/fs" }
212fsevent = { path = "crates/fsevent" }
213fuzzy = { path = "crates/fuzzy" }
214git = { path = "crates/git" }
215git_hosting_providers = { path = "crates/git_hosting_providers" }
216go_to_line = { path = "crates/go_to_line" }
217google_ai = { path = "crates/google_ai" }
218gpui = { path = "crates/gpui", default-features = false, features = ["http_client"]}
219gpui_macros = { path = "crates/gpui_macros" }
220html_to_markdown = { path = "crates/html_to_markdown" }
221http_client = { path = "crates/http_client" }
222image_viewer = { path = "crates/image_viewer" }
223indexed_docs = { path = "crates/indexed_docs" }
224inline_completion_button = { path = "crates/inline_completion_button" }
225install_cli = { path = "crates/install_cli" }
226journal = { path = "crates/journal" }
227language = { path = "crates/language" }
228language_model = { path = "crates/language_model" }
229language_selector = { path = "crates/language_selector" }
230language_tools = { path = "crates/language_tools" }
231languages = { path = "crates/languages" }
232live_kit_client = { path = "crates/live_kit_client" }
233live_kit_server = { path = "crates/live_kit_server" }
234lsp = { path = "crates/lsp" }
235markdown = { path = "crates/markdown" }
236markdown_preview = { path = "crates/markdown_preview" }
237media = { path = "crates/media" }
238menu = { path = "crates/menu" }
239multi_buffer = { path = "crates/multi_buffer" }
240node_runtime = { path = "crates/node_runtime" }
241notifications = { path = "crates/notifications" }
242ollama = { path = "crates/ollama" }
243open_ai = { path = "crates/open_ai" }
244outline = { path = "crates/outline" }
245outline_panel = { path = "crates/outline_panel" }
246paths = { path = "crates/paths" }
247picker = { path = "crates/picker" }
248plugin = { path = "crates/plugin" }
249plugin_macros = { path = "crates/plugin_macros" }
250prettier = { path = "crates/prettier" }
251project = { path = "crates/project" }
252project_panel = { path = "crates/project_panel" }
253project_symbols = { path = "crates/project_symbols" }
254proto = { path = "crates/proto" }
255quick_action_bar = { path = "crates/quick_action_bar" }
256recent_projects = { path = "crates/recent_projects" }
257refineable = { path = "crates/refineable" }
258release_channel = { path = "crates/release_channel" }
259remote = { path = "crates/remote" }
260remote_server = { path = "crates/remote_server" }
261repl = { path = "crates/repl" }
262reqwest_client = { path = "crates/reqwest_client" }
263rich_text = { path = "crates/rich_text" }
264rope = { path = "crates/rope" }
265rpc = { path = "crates/rpc" }
266search = { path = "crates/search" }
267semantic_index = { path = "crates/semantic_index" }
268semantic_version = { path = "crates/semantic_version" }
269session = { path = "crates/session" }
270settings = { path = "crates/settings" }
271settings_ui = { path = "crates/settings_ui" }
272snippet = { path = "crates/snippet" }
273snippet_provider = { path = "crates/snippet_provider" }
274snippets_ui = { path = "crates/snippets_ui" }
275sqlez = { path = "crates/sqlez" }
276sqlez_macros = { path = "crates/sqlez_macros" }
277story = { path = "crates/story" }
278storybook = { path = "crates/storybook" }
279sum_tree = { path = "crates/sum_tree" }
280supermaven = { path = "crates/supermaven" }
281supermaven_api = { path = "crates/supermaven_api" }
282tab_switcher = { path = "crates/tab_switcher" }
283task = { path = "crates/task" }
284tasks_ui = { path = "crates/tasks_ui" }
285telemetry_events = { path = "crates/telemetry_events" }
286terminal = { path = "crates/terminal" }
287terminal_view = { path = "crates/terminal_view" }
288text = { path = "crates/text" }
289theme = { path = "crates/theme" }
290theme_importer = { path = "crates/theme_importer" }
291theme_selector = { path = "crates/theme_selector" }
292time_format = { path = "crates/time_format" }
293title_bar = { path = "crates/title_bar" }
294toolchain_selector = { path = "crates/toolchain_selector" }
295ui = { path = "crates/ui" }
296ui_input = { path = "crates/ui_input" }
297ui_macros = { path = "crates/ui_macros" }
298util = { path = "crates/util" }
299vcs_menu = { path = "crates/vcs_menu" }
300vim = { path = "crates/vim" }
301welcome = { path = "crates/welcome" }
302workspace = { path = "crates/workspace" }
303worktree = { path = "crates/worktree" }
304zed = { path = "crates/zed" }
305zed_actions = { path = "crates/zed_actions" }
306
307#
308# External crates
309#
310
311aho-corasick = "1.1"
312alacritty_terminal = { git = "https://github.com/alacritty/alacritty", rev = "91d034ff8b53867143c005acfaa14609147c9a2c" }
313any_vec = "0.14"
314anyhow = "1.0.86"
315arrayvec = { version = "0.7.4", features = ["serde"] }
316ashpd = "0.9.1"
317async-compat = "0.2.1"
318async-compression = { version = "0.4", features = ["gzip", "futures-io"] }
319async-dispatcher = "0.1"
320async-fs = "1.6"
321async-pipe = { git = "https://github.com/zed-industries/async-pipe-rs", rev = "82d00a04211cf4e1236029aa03e6b6ce2a74c553" }
322async-recursion = "1.0.0"
323async-tar = "0.5.0"
324async-trait = "0.1"
325async-tungstenite = "0.28"
326async-watch = "0.3.1"
327async_zip = { version = "0.0.17", features = ["deflate", "deflate64"] }
328base64 = "0.22"
329bitflags = "2.6.0"
330blade-graphics = { git = "https://github.com/kvark/blade", rev = "e142a3a5e678eb6a13e642ad8401b1f3aa38e969" }
331blade-macros = { git = "https://github.com/kvark/blade", rev = "e142a3a5e678eb6a13e642ad8401b1f3aa38e969" }
332blade-util = { git = "https://github.com/kvark/blade", rev = "e142a3a5e678eb6a13e642ad8401b1f3aa38e969" }
333blake3 = "1.5.3"
334bytes = "1.0"
335cargo_metadata = "0.18"
336cargo_toml = "0.20"
337chrono = { version = "0.4", features = ["serde"] }
338clap = { version = "4.4", features = ["derive"] }
339clickhouse = "0.11.6"
340cocoa = "0.26"
341cocoa-foundation = "0.2.0"
342convert_case = "0.6.0"
343core-foundation = "0.9.3"
344core-foundation-sys = "0.8.6"
345ctor = "0.2.6"
346dashmap = "6.0"
347derive_more = "0.99.17"
348dirs = "4.0"
349ec4rs = "1.1"
350emojis = "0.6.1"
351env_logger = "0.11"
352exec = "0.3.1"
353fancy-regex = "0.14.0"
354fork = "0.2.0"
355futures = "0.3"
356futures-batch = "0.6.1"
357futures-lite = "1.13"
358git2 = { version = "0.19", default-features = false }
359globset = "0.4"
360handlebars = "4.3"
361heed = { version = "0.20.1", features = ["read-txn-no-tls"] }
362hex = "0.4.3"
363html5ever = "0.27.0"
364hyper = "0.14"
365ignore = "0.4.22"
366image = "0.25.1"
367indexmap = { version = "1.6.2", features = ["serde"] }
368indoc = "2"
369itertools = "0.13.0"
370jsonwebtoken = "9.3"
371jupyter-protocol = { version = "0.2.0" }
372jupyter-websocket-client = { version = "0.4.1" }
373libc = "0.2"
374linkify = "0.10.0"
375log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
376markup5ever_rcdom = "0.3.0"
377nanoid = "0.4"
378nbformat = "0.6.0"
379nix = "0.29"
380num-format = "0.4.4"
381once_cell = "1.19.0"
382ordered-float = "2.1.1"
383palette = { version = "0.7.5", default-features = false, features = ["std"] }
384parking_lot = "0.12.1"
385pathdiff = "0.2"
386pet = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c" }
387pet-fs = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c" }
388pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c"  }
389pet-core = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c"  }
390pet-poetry = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c"  }
391pet-reporter = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c"  }
392postage = { version = "0.5", features = ["futures-traits"] }
393pretty_assertions = { version = "1.3.0", features = ["unstable"] }
394profiling = "1"
395prost = "0.9"
396prost-build = "0.9"
397prost-types = "0.9"
398pulldown-cmark = { version = "0.12.0", default-features = false }
399rand = "0.8.5"
400rayon = "1.8"
401regex = "1.5"
402repair_json = "0.1.0"
403reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "fd110f6998da16bbca97b6dddda9be7827c50e29", default-features = false, features = [
404    "charset",
405    "http2",
406    "macos-system-configuration",
407    "rustls-tls-native-roots",
408    "socks",
409    "stream",
410] }
411rsa = "0.9.6"
412runtimelib = { version = "0.21.0", default-features = false, features = [
413    "async-dispatcher-runtime",
414] }
415rustc-demangle = "0.1.23"
416rust-embed = { version = "8.4", features = ["include-exclude"] }
417rustls = "0.21.12"
418rustls-native-certs = "0.8.0"
419schemars = { version = "0.8", features = ["impl_json_schema"] }
420semver = "1.0"
421serde = { version = "1.0", features = ["derive", "rc"] }
422serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
423serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
424serde_json_lenient = { version = "0.2", features = [
425    "preserve_order",
426    "raw_value",
427] }
428serde_repr = "0.1"
429sha2 = "0.10"
430shellexpand = "2.1.0"
431shlex = "1.3.0"
432signal-hook = "0.3.17"
433similar = "1.3"
434simplelog = "0.12.2"
435smallvec = { version = "1.6", features = ["union"] }
436smol = "1.2"
437sqlformat = "0.2"
438strsim = "0.11"
439strum = { version = "0.25.0", features = ["derive"] }
440subtle = "2.5.0"
441sys-locale = "0.3.1"
442sysinfo = "0.31.0"
443tempfile = "3.9.0"
444thiserror = "1.0.29"
445tiktoken-rs = "0.5.9"
446time = { version = "0.3", features = [
447    "macros",
448    "parsing",
449    "serde",
450    "serde-well-known",
451    "formatting",
452] }
453tiny_http = "0.8"
454toml = "0.8"
455tokio = { version = "1" }
456tower-http = "0.4.4"
457tree-sitter = { version = "0.23", features = ["wasm"] }
458tree-sitter-bash = "0.23"
459tree-sitter-c = "0.23"
460tree-sitter-cpp = "0.23"
461tree-sitter-css = "0.23"
462tree-sitter-elixir = "0.3"
463tree-sitter-embedded-template = "0.23.0"
464tree-sitter-go = "0.23"
465tree-sitter-go-mod = { git = "https://github.com/zed-industries/tree-sitter-go-mod", rev = "a9aea5e358cde4d0f8ff20b7bc4fa311e359c7ca", package = "tree-sitter-gomod" }
466tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
467tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
468tree-sitter-diff = "0.1.0"
469tree-sitter-html = "0.20"
470tree-sitter-jsdoc = "0.23"
471tree-sitter-json = "0.23"
472tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
473tree-sitter-python = "0.23"
474tree-sitter-regex = "0.23"
475tree-sitter-ruby = "0.23"
476tree-sitter-rust = "0.23"
477tree-sitter-typescript = "0.23"
478tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
479unicase = "2.6"
480unindent = "0.1.7"
481unicode-segmentation = "1.10"
482unicode-script = "0.5.7"
483url = "2.2"
484uuid = { version = "1.1.2", features = ["v4", "v5", "serde"] }
485wasmparser = "0.215"
486wasm-encoder = "0.215"
487wasmtime = { version = "24", default-features = false, features = [
488    "async",
489    "demangle",
490    "runtime",
491    "cranelift",
492    "component-model",
493] }
494wasmtime-wasi = "24"
495which = "6.0.0"
496wit-component = "0.201"
497zstd = "0.11"
498
499[workspace.dependencies.async-stripe]
500git = "https://github.com/zed-industries/async-stripe"
501rev = "3672dd4efb7181aa597bf580bf5a2f5d23db6735"
502default-features = false
503features = [
504    "runtime-tokio-hyper-rustls",
505    "billing",
506    "checkout",
507    "events",
508    # The features below are only enabled to get the `events` feature to build.
509    "chrono",
510    "connect",
511]
512
513[workspace.dependencies.windows]
514version = "0.58"
515features = [
516    "implement",
517    "Foundation_Numerics",
518    "Storage",
519    "System_Threading",
520    "UI_ViewManagement",
521    "Wdk_System_SystemServices",
522    "Win32_Globalization",
523    "Win32_Graphics_Direct2D",
524    "Win32_Graphics_Direct2D_Common",
525    "Win32_Graphics_DirectWrite",
526    "Win32_Graphics_Dwm",
527    "Win32_Graphics_Dxgi_Common",
528    "Win32_Graphics_Gdi",
529    "Win32_Graphics_Imaging",
530    "Win32_Graphics_Imaging_D2D",
531    "Win32_Security",
532    "Win32_Security_Credentials",
533    "Win32_Storage_FileSystem",
534    "Win32_System_Com",
535    "Win32_System_Com_StructuredStorage",
536    "Win32_System_DataExchange",
537    "Win32_System_LibraryLoader",
538    "Win32_System_Memory",
539    "Win32_System_Ole",
540    "Win32_System_SystemInformation",
541    "Win32_System_SystemServices",
542    "Win32_System_Threading",
543    "Win32_System_WinRT",
544    "Win32_UI_Controls",
545    "Win32_UI_HiDpi",
546    "Win32_UI_Input_Ime",
547    "Win32_UI_Input_KeyboardAndMouse",
548    "Win32_UI_Shell",
549    "Win32_UI_Shell_Common",
550    "Win32_UI_WindowsAndMessaging",
551]
552
553[profile.dev]
554split-debuginfo = "unpacked"
555debug = "limited"
556codegen-units = 16
557
558[profile.dev.package]
559taffy = { opt-level = 3 }
560cranelift-codegen = { opt-level = 3 }
561resvg = { opt-level = 3 }
562rustybuzz = { opt-level = 3 }
563ttf-parser = { opt-level = 3 }
564wasmtime-cranelift = { opt-level = 3 }
565wasmtime = { opt-level = 3 }
566# Build single-source-file crates with cg=1 as it helps make `cargo build` of a whole workspace a bit faster
567activity_indicator = { codegen-units = 1 }
568assets = { codegen-units = 1 }
569breadcrumbs = { codegen-units = 1 }
570collections = { codegen-units = 1 }
571command_palette = { codegen-units = 1 }
572command_palette_hooks = { codegen-units = 1 }
573evals = { codegen-units = 1 }
574extension_cli = { codegen-units = 1 }
575feature_flags = { codegen-units = 1 }
576file_icons = { codegen-units = 1 }
577fsevent = { codegen-units = 1 }
578image_viewer = { codegen-units = 1 }
579inline_completion_button = { codegen-units = 1 }
580install_cli = { codegen-units = 1 }
581journal = { codegen-units = 1 }
582menu = { codegen-units = 1 }
583notifications = { codegen-units = 1 }
584ollama = { codegen-units = 1 }
585outline = { codegen-units = 1 }
586paths = { codegen-units = 1 }
587prettier = { codegen-units = 1 }
588project_symbols = { codegen-units = 1 }
589refineable = { codegen-units = 1 }
590release_channel = { codegen-units = 1 }
591reqwest_client = { codegen-units = 1 }
592rich_text = { codegen-units = 1 }
593semantic_version = { codegen-units = 1 }
594session = { codegen-units = 1 }
595snippet = { codegen-units = 1 }
596snippets_ui = { codegen-units = 1 }
597sqlez_macros = { codegen-units = 1 }
598story = { codegen-units = 1 }
599supermaven_api = { codegen-units = 1 }
600telemetry_events = { codegen-units = 1 }
601theme_selector = { codegen-units = 1 }
602time_format = { codegen-units = 1 }
603ui_input = { codegen-units = 1 }
604vcs_menu = { codegen-units = 1 }
605zed_actions = { codegen-units = 1 }
606
607[profile.release]
608debug = "limited"
609lto = "thin"
610codegen-units = 1
611
612[profile.release.package]
613zed = { codegen-units = 16 }
614
615[profile.release-fast]
616inherits = "release"
617debug = "full"
618lto = false
619codegen-units = 16
620
621[workspace.lints.clippy]
622dbg_macro = "deny"
623todo = "deny"
624
625# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
626# warning on this rule produces a lot of noise.
627single_range_in_vec_init = "allow"
628
629# These are all of the rules that currently have violations in the Zed
630# codebase.
631#
632# We'll want to drive this list down by either:
633# 1. fixing violations of the rule and begin enforcing it
634# 2. deciding we want to allow the rule permanently, at which point
635#    we should codify that separately above.
636#
637# This list shouldn't be added to; it should only get shorter.
638# =============================================================================
639
640# There are a bunch of rules currently failing in the `style` group, so
641# allow all of those, for now.
642style = { level = "allow", priority = -1 }
643
644# Temporary list of style lints that we've fixed so far.
645module_inception = { level = "deny" }
646question_mark = { level = "deny" }
647redundant_closure = { level = "deny" }
648# Individual rules that have violations in the codebase:
649type_complexity = "allow"
650# We often return trait objects from `new` functions.
651new_ret_no_self = { level = "allow" }
652# We have a few `next` functions that differ in lifetimes
653# compared to Iterator::next. Yet, clippy complains about those.
654should_implement_trait = { level = "allow" }
655
656[workspace.metadata.cargo-machete]
657ignored = ["bindgen", "cbindgen", "prost_build", "serde"]