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