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