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