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