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