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