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/fireworks",
44 "crates/fs",
45 "crates/fsevent",
46 "crates/fuzzy",
47 "crates/git",
48 "crates/git_hosting_providers",
49 "crates/go_to_line",
50 "crates/google_ai",
51 "crates/gpui",
52 "crates/gpui_macros",
53 "crates/html_to_markdown",
54 "crates/http_client",
55 "crates/image_viewer",
56 "crates/indexed_docs",
57 "crates/inline_completion",
58 "crates/inline_completion_button",
59 "crates/install_cli",
60 "crates/journal",
61 "crates/language",
62 "crates/language_extension",
63 "crates/language_model",
64 "crates/language_model_selector",
65 "crates/language_models",
66 "crates/language_selector",
67 "crates/language_tools",
68 "crates/languages",
69 "crates/livekit_client",
70 "crates/livekit_client_macos",
71 "crates/livekit_server",
72 "crates/lsp",
73 "crates/markdown",
74 "crates/markdown_preview",
75 "crates/media",
76 "crates/menu",
77 "crates/multi_buffer",
78 "crates/node_runtime",
79 "crates/notifications",
80 "crates/ollama",
81 "crates/open_ai",
82 "crates/outline",
83 "crates/outline_panel",
84 "crates/paths",
85 "crates/picker",
86 "crates/prettier",
87 "crates/project",
88 "crates/project_panel",
89 "crates/project_symbols",
90 "crates/proto",
91 "crates/recent_projects",
92 "crates/refineable",
93 "crates/refineable/derive_refineable",
94 "crates/release_channel",
95 "crates/remote",
96 "crates/remote_server",
97 "crates/repl",
98 "crates/reqwest_client",
99 "crates/rich_text",
100 "crates/rope",
101 "crates/rpc",
102 "crates/search",
103 "crates/semantic_index",
104 "crates/semantic_version",
105 "crates/session",
106 "crates/settings",
107 "crates/settings_ui",
108 "crates/snippet",
109 "crates/snippet_provider",
110 "crates/snippets_ui",
111 "crates/sqlez",
112 "crates/sqlez_macros",
113 "crates/story",
114 "crates/storybook",
115 "crates/sum_tree",
116 "crates/supermaven",
117 "crates/supermaven_api",
118 "crates/tab_switcher",
119 "crates/task",
120 "crates/tasks_ui",
121 "crates/telemetry",
122 "crates/telemetry_events",
123 "crates/terminal",
124 "crates/terminal_view",
125 "crates/text",
126 "crates/theme",
127 "crates/theme_extension",
128 "crates/theme_importer",
129 "crates/theme_selector",
130 "crates/time_format",
131 "crates/title_bar",
132 "crates/toolchain_selector",
133 "crates/ui",
134 "crates/ui_input",
135 "crates/ui_macros",
136 "crates/reqwest_client",
137 "crates/util",
138 "crates/vcs_menu",
139 "crates/vim",
140 "crates/vim_mode_setting",
141 "crates/welcome",
142 "crates/workspace",
143 "crates/worktree",
144 "crates/zed",
145 "crates/zed_actions",
146 "crates/zeta",
147 "crates/git_ui",
148
149 #
150 # Extensions
151 #
152
153 "extensions/csharp",
154 "extensions/deno",
155 "extensions/elixir",
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" }
226fireworks = { path = "crates/fireworks" }
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.7.0", 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 = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
415pet-fs = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
416pet-pixi = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
417pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
418pet-core = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
419pet-poetry = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
420pet-reporter = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
421postage = { version = "0.5", features = ["futures-traits"] }
422pretty_assertions = { version = "1.3.0", features = ["unstable"] }
423profiling = "1"
424prost = "0.9"
425prost-build = "0.9"
426prost-types = "0.9"
427pulldown-cmark = { version = "0.12.0", default-features = false }
428rand = "0.8.5"
429rayon = "1.8"
430regex = "1.5"
431repair_json = "0.1.0"
432reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "fd110f6998da16bbca97b6dddda9be7827c50e29", default-features = false, features = [
433 "charset",
434 "http2",
435 "macos-system-configuration",
436 "rustls-tls-native-roots",
437 "socks",
438 "stream",
439] }
440rsa = "0.9.6"
441runtimelib = { version = "0.24.0", default-features = false, features = [
442 "async-dispatcher-runtime",
443] }
444rustc-demangle = "0.1.23"
445rust-embed = { version = "8.4", features = ["include-exclude"] }
446rustc-hash = "2.1.0"
447rustls = "0.21.12"
448rustls-native-certs = "0.8.0"
449schemars = { version = "0.8", features = ["impl_json_schema", "indexmap2"] }
450semver = "1.0"
451serde = { version = "1.0", features = ["derive", "rc"] }
452serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
453serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
454serde_json_lenient = { version = "0.2", features = [
455 "preserve_order",
456 "raw_value",
457] }
458serde_repr = "0.1"
459sha2 = "0.10"
460shellexpand = "2.1.0"
461shlex = "1.3.0"
462signal-hook = "0.3.17"
463similar = "1.3"
464simplelog = "0.12.2"
465smallvec = { version = "1.6", features = ["union"] }
466smol = "1.2"
467sqlformat = "0.2"
468strsim = "0.11"
469strum = { version = "0.26.0", features = ["derive"] }
470subtle = "2.5.0"
471sys-locale = "0.3.1"
472sysinfo = "0.31.0"
473tempfile = "3.9.0"
474thiserror = "1.0.29"
475tiktoken-rs = "0.6.0"
476time = { version = "0.3", features = [
477 "macros",
478 "parsing",
479 "serde",
480 "serde-well-known",
481 "formatting",
482] }
483tiny_http = "0.8"
484toml = "0.8"
485tokio = { version = "1" }
486tower-http = "0.4.4"
487tree-sitter = { version = "0.23", features = ["wasm"] }
488tree-sitter-bash = "0.23"
489tree-sitter-c = "0.23"
490tree-sitter-cpp = "0.23"
491tree-sitter-css = "0.23"
492tree-sitter-elixir = "0.3"
493tree-sitter-embedded-template = "0.23.0"
494tree-sitter-go = "0.23"
495tree-sitter-go-mod = { git = "https://github.com/zed-industries/tree-sitter-go-mod", rev = "a9aea5e358cde4d0f8ff20b7bc4fa311e359c7ca", package = "tree-sitter-gomod" }
496tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
497tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
498tree-sitter-diff = "0.1.0"
499tree-sitter-html = "0.20"
500tree-sitter-jsdoc = "0.23"
501tree-sitter-json = "0.24"
502tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
503tree-sitter-python = "0.23"
504tree-sitter-regex = "0.23"
505tree-sitter-ruby = "0.23"
506tree-sitter-rust = "0.23"
507tree-sitter-typescript = "0.23"
508tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
509unicase = "2.6"
510unindent = "0.1.7"
511unicode-segmentation = "1.10"
512unicode-script = "0.5.7"
513url = "2.2"
514uuid = { version = "1.1.2", features = ["v4", "v5", "v7", "serde"] }
515wasmparser = "0.215"
516wasm-encoder = "0.215"
517wasmtime = { version = "24", default-features = false, features = [
518 "async",
519 "demangle",
520 "runtime",
521 "cranelift",
522 "component-model",
523] }
524wasmtime-wasi = "24"
525which = "6.0.0"
526wit-component = "0.201"
527zstd = "0.11"
528metal = "0.30"
529
530[workspace.dependencies.async-stripe]
531git = "https://github.com/zed-industries/async-stripe"
532rev = "3672dd4efb7181aa597bf580bf5a2f5d23db6735"
533default-features = false
534features = [
535 "runtime-tokio-hyper-rustls",
536 "billing",
537 "checkout",
538 "events",
539 # The features below are only enabled to get the `events` feature to build.
540 "chrono",
541 "connect",
542]
543
544[workspace.dependencies.windows]
545version = "0.58"
546features = [
547 "implement",
548 "Foundation_Numerics",
549 "Storage",
550 "System_Threading",
551 "UI_ViewManagement",
552 "Wdk_System_SystemServices",
553 "Win32_Globalization",
554 "Win32_Graphics_Direct2D",
555 "Win32_Graphics_Direct2D_Common",
556 "Win32_Graphics_DirectWrite",
557 "Win32_Graphics_Dwm",
558 "Win32_Graphics_Dxgi_Common",
559 "Win32_Graphics_Gdi",
560 "Win32_Graphics_Imaging",
561 "Win32_Graphics_Imaging_D2D",
562 "Win32_Security",
563 "Win32_Security_Credentials",
564 "Win32_Storage_FileSystem",
565 "Win32_System_Com",
566 "Win32_System_Com_StructuredStorage",
567 "Win32_System_DataExchange",
568 "Win32_System_LibraryLoader",
569 "Win32_System_Memory",
570 "Win32_System_Ole",
571 "Win32_System_SystemInformation",
572 "Win32_System_SystemServices",
573 "Win32_System_Threading",
574 "Win32_System_WinRT",
575 "Win32_UI_Controls",
576 "Win32_UI_HiDpi",
577 "Win32_UI_Input_Ime",
578 "Win32_UI_Input_KeyboardAndMouse",
579 "Win32_UI_Shell",
580 "Win32_UI_Shell_Common",
581 "Win32_UI_WindowsAndMessaging",
582]
583
584# TODO livekit https://github.com/RustAudio/cpal/pull/891
585[patch.crates-io]
586cpal = { git = "https://github.com/zed-industries/cpal", rev = "fd8bc2fd39f1f5fdee5a0690656caff9a26d9d50" }
587
588[profile.dev]
589split-debuginfo = "unpacked"
590debug = "limited"
591codegen-units = 16
592
593[profile.dev.package]
594taffy = { opt-level = 3 }
595cranelift-codegen = { opt-level = 3 }
596resvg = { opt-level = 3 }
597rustybuzz = { opt-level = 3 }
598ttf-parser = { opt-level = 3 }
599wasmtime-cranelift = { opt-level = 3 }
600wasmtime = { opt-level = 3 }
601# Build single-source-file crates with cg=1 as it helps make `cargo build` of a whole workspace a bit faster
602activity_indicator = { codegen-units = 1 }
603assets = { codegen-units = 1 }
604breadcrumbs = { codegen-units = 1 }
605collections = { codegen-units = 1 }
606command_palette = { codegen-units = 1 }
607command_palette_hooks = { codegen-units = 1 }
608evals = { codegen-units = 1 }
609extension_cli = { codegen-units = 1 }
610feature_flags = { codegen-units = 1 }
611file_icons = { codegen-units = 1 }
612fsevent = { codegen-units = 1 }
613image_viewer = { codegen-units = 1 }
614inline_completion_button = { codegen-units = 1 }
615install_cli = { codegen-units = 1 }
616journal = { codegen-units = 1 }
617menu = { codegen-units = 1 }
618notifications = { codegen-units = 1 }
619ollama = { codegen-units = 1 }
620outline = { codegen-units = 1 }
621paths = { codegen-units = 1 }
622prettier = { codegen-units = 1 }
623project_symbols = { codegen-units = 1 }
624refineable = { codegen-units = 1 }
625release_channel = { codegen-units = 1 }
626reqwest_client = { codegen-units = 1 }
627rich_text = { codegen-units = 1 }
628semantic_version = { codegen-units = 1 }
629session = { codegen-units = 1 }
630snippet = { codegen-units = 1 }
631snippets_ui = { codegen-units = 1 }
632sqlez_macros = { codegen-units = 1 }
633story = { codegen-units = 1 }
634supermaven_api = { codegen-units = 1 }
635telemetry_events = { codegen-units = 1 }
636theme_selector = { codegen-units = 1 }
637time_format = { codegen-units = 1 }
638ui_input = { codegen-units = 1 }
639vcs_menu = { codegen-units = 1 }
640zed_actions = { codegen-units = 1 }
641
642[profile.release]
643debug = "limited"
644lto = "thin"
645codegen-units = 1
646
647[profile.release.package]
648zed = { codegen-units = 16 }
649
650[profile.release-fast]
651inherits = "release"
652debug = "full"
653lto = false
654codegen-units = 16
655
656[workspace.lints.clippy]
657dbg_macro = "deny"
658todo = "deny"
659
660# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
661# warning on this rule produces a lot of noise.
662single_range_in_vec_init = "allow"
663
664# These are all of the rules that currently have violations in the Zed
665# codebase.
666#
667# We'll want to drive this list down by either:
668# 1. fixing violations of the rule and begin enforcing it
669# 2. deciding we want to allow the rule permanently, at which point
670# we should codify that separately above.
671#
672# This list shouldn't be added to; it should only get shorter.
673# =============================================================================
674
675# There are a bunch of rules currently failing in the `style` group, so
676# allow all of those, for now.
677style = { level = "allow", priority = -1 }
678
679# Temporary list of style lints that we've fixed so far.
680module_inception = { level = "deny" }
681question_mark = { level = "deny" }
682redundant_closure = { level = "deny" }
683# Individual rules that have violations in the codebase:
684type_complexity = "allow"
685# We often return trait objects from `new` functions.
686new_ret_no_self = { level = "allow" }
687# We have a few `next` functions that differ in lifetimes
688# compared to Iterator::next. Yet, clippy complains about those.
689should_implement_trait = { level = "allow" }
690let_underscore_future = "allow"
691
692[workspace.metadata.cargo-machete]
693ignored = ["bindgen", "cbindgen", "prost_build", "serde"]