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