Cargo.toml

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