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