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