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