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