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