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.8.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" }
383naga = { version = "23.1.0", features = ["wgsl-in"] }
384blake3 = "1.5.3"
385bytes = "1.0"
386cargo_metadata = "0.19"
387cargo_toml = "0.21"
388chrono = { version = "0.4", features = ["serde"] }
389clap = { version = "4.4", features = ["derive"] }
390cocoa = "0.26"
391cocoa-foundation = "0.2.0"
392convert_case = "0.7.0"
393core-foundation = "0.9.3"
394core-foundation-sys = "0.8.6"
395ctor = "0.2.6"
396dashmap = "6.0"
397derive_more = "0.99.17"
398dirs = "4.0"
399ec4rs = "1.1"
400emojis = "0.6.1"
401env_logger = "0.11"
402exec = "0.3.1"
403fancy-regex = "0.14.0"
404fork = "0.2.0"
405futures = "0.3"
406futures-batch = "0.6.1"
407futures-lite = "1.13"
408# TODO: get back to regular versions when https://github.com/rust-lang/git2-rs/pull/1120 is released
409git2 = { git = "https://github.com/rust-lang/git2-rs", rev = "a3b90cb3756c1bb63e2317bf9cfa57838178de5c", default-features = false }
410globset = "0.4"
411handlebars = "4.3"
412heed = { version = "0.21.0", features = ["read-txn-no-tls"] }
413hex = "0.4.3"
414html5ever = "0.27.0"
415hyper = "0.14"
416http = "1.1"
417ignore = "0.4.22"
418image = "0.25.1"
419indexmap = { version = "2.7.0", features = ["serde"] }
420indoc = "2"
421itertools = "0.14.0"
422jsonwebtoken = "9.3"
423jupyter-protocol = { version = "0.6.0" }
424jupyter-websocket-client = { version = "0.9.0" }
425libc = "0.2"
426libsqlite3-sys = { version = "0.30.1", features = ["bundled"] }
427linkify = "0.10.0"
428livekit = { git = "https://github.com/zed-industries/livekit-rust-sdks", rev="060964da10574cd9bf06463a53bf6e0769c5c45e", features = ["dispatcher", "services-dispatcher", "rustls-tls-native-roots"], default-features = false }
429log = { version = "0.4.25", features = ["kv_unstable_serde", "serde"] }
430markup5ever_rcdom = "0.3.0"
431nanoid = "0.4"
432nbformat = { version = "0.10.0" }
433nix = "0.29"
434num-format = "0.4.4"
435once_cell = "1.20"
436ordered-float = "2.1.1"
437palette = { version = "0.7.5", default-features = false, features = ["std"] }
438parking_lot = "0.12.1"
439pathdiff = "0.2"
440pet = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
441pet-fs = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
442pet-pixi = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
443pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
444pet-core = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
445pet-poetry = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
446pet-reporter = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
447postage = { version = "0.5", features = ["futures-traits"] }
448pretty_assertions = { version = "1.3.0", features = ["unstable"] }
449profiling = "1"
450prost = "0.9"
451prost-build = "0.9"
452prost-types = "0.9"
453pulldown-cmark = { version = "0.12.0", default-features = false }
454rand = "0.8.5"
455rayon = "1.8"
456regex = "1.5"
457repair_json = "0.1.0"
458reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "fd110f6998da16bbca97b6dddda9be7827c50e29", default-features = false, features = [
459 "charset",
460 "http2",
461 "macos-system-configuration",
462 "rustls-tls-native-roots",
463 "socks",
464 "stream",
465] }
466rsa = "0.9.6"
467runtimelib = { version = "0.25.0", default-features = false, features = [
468 "async-dispatcher-runtime",
469] }
470rustc-demangle = "0.1.23"
471rust-embed = { version = "8.4", features = ["include-exclude"] }
472rustc-hash = "2.1.0"
473rustls = "0.21.12"
474rustls-native-certs = "0.8.0"
475schemars = { version = "0.8", features = ["impl_json_schema", "indexmap2"] }
476semver = "1.0"
477serde = { version = "1.0", features = ["derive", "rc"] }
478serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
479serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
480serde_json_lenient = { version = "0.2", features = [
481 "preserve_order",
482 "raw_value",
483] }
484serde_repr = "0.1"
485sha2 = "0.10"
486shellexpand = "2.1.0"
487shlex = "1.3.0"
488signal-hook = "0.3.17"
489similar = "1.3"
490simplelog = "0.12.2"
491smallvec = { version = "1.6", features = ["union"] }
492smol = "2.0"
493sqlformat = "0.2"
494strsim = "0.11"
495strum = { version = "0.26.0", features = ["derive"] }
496subtle = "2.5.0"
497sys-locale = "0.3.1"
498sysinfo = "0.31.0"
499take-until = "0.2.0"
500tempfile = "3.9.0"
501thiserror = "1.0.29"
502tiktoken-rs = "0.6.0"
503time = { version = "0.3", features = [
504 "macros",
505 "parsing",
506 "serde",
507 "serde-well-known",
508 "formatting",
509] }
510tiny_http = "0.8"
511toml = "0.8"
512tokio = { version = "1" }
513tower-http = "0.4.4"
514tree-sitter = { version = "0.23", features = ["wasm"] }
515tree-sitter-bash = "0.23"
516tree-sitter-c = "0.23"
517tree-sitter-cpp = "0.23"
518tree-sitter-css = "0.23.2"
519tree-sitter-elixir = "0.3"
520tree-sitter-embedded-template = "0.23.0"
521tree-sitter-go = "0.23"
522tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c", package = "tree-sitter-gomod" }
523tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
524tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
525tree-sitter-diff = "0.1.0"
526tree-sitter-html = "0.20"
527tree-sitter-jsdoc = "0.23"
528tree-sitter-json = "0.24"
529tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
530tree-sitter-python = "0.23"
531tree-sitter-regex = "0.24"
532tree-sitter-ruby = "0.23"
533tree-sitter-rust = "0.23"
534tree-sitter-typescript = "0.23"
535tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
536unicase = "2.6"
537unindent = "0.2.0"
538unicode-segmentation = "1.10"
539unicode-script = "0.5.7"
540url = "2.2"
541uuid = { version = "1.1.2", features = ["v4", "v5", "v7", "serde"] }
542wasmparser = "0.215"
543wasm-encoder = "0.215"
544wasmtime = { version = "24", default-features = false, features = [
545 "async",
546 "demangle",
547 "runtime",
548 "cranelift",
549 "component-model",
550] }
551wasmtime-wasi = "24"
552which = "6.0.0"
553wit-component = "0.201"
554zstd = "0.11"
555metal = "0.31"
556
557[workspace.dependencies.async-stripe]
558git = "https://github.com/zed-industries/async-stripe"
559rev = "3672dd4efb7181aa597bf580bf5a2f5d23db6735"
560default-features = false
561features = [
562 "runtime-tokio-hyper-rustls",
563 "billing",
564 "checkout",
565 "events",
566 # The features below are only enabled to get the `events` feature to build.
567 "chrono",
568 "connect",
569]
570
571[workspace.dependencies.windows]
572version = "0.58"
573features = [
574 "implement",
575 "Foundation_Numerics",
576 "Storage",
577 "System_Threading",
578 "UI_ViewManagement",
579 "Wdk_System_SystemServices",
580 "Win32_Globalization",
581 "Win32_Graphics_Direct2D",
582 "Win32_Graphics_Direct2D_Common",
583 "Win32_Graphics_DirectWrite",
584 "Win32_Graphics_Dwm",
585 "Win32_Graphics_Dxgi_Common",
586 "Win32_Graphics_Gdi",
587 "Win32_Graphics_Imaging",
588 "Win32_Graphics_Imaging_D2D",
589 "Win32_Security",
590 "Win32_Security_Credentials",
591 "Win32_Storage_FileSystem",
592 "Win32_System_Com",
593 "Win32_System_Com_StructuredStorage",
594 "Win32_System_DataExchange",
595 "Win32_System_LibraryLoader",
596 "Win32_System_Memory",
597 "Win32_System_Ole",
598 "Win32_System_SystemInformation",
599 "Win32_System_SystemServices",
600 "Win32_System_Threading",
601 "Win32_System_WinRT",
602 "Win32_UI_Controls",
603 "Win32_UI_HiDpi",
604 "Win32_UI_Input_Ime",
605 "Win32_UI_Input_KeyboardAndMouse",
606 "Win32_UI_Shell",
607 "Win32_UI_Shell_Common",
608 "Win32_UI_WindowsAndMessaging",
609]
610
611# TODO livekit https://github.com/RustAudio/cpal/pull/891
612[patch.crates-io]
613cpal = { git = "https://github.com/zed-industries/cpal", rev = "fd8bc2fd39f1f5fdee5a0690656caff9a26d9d50" }
614
615[profile.dev]
616split-debuginfo = "unpacked"
617debug = "limited"
618codegen-units = 16
619
620[profile.dev.package]
621taffy = { opt-level = 3 }
622cranelift-codegen = { opt-level = 3 }
623resvg = { opt-level = 3 }
624rustybuzz = { opt-level = 3 }
625ttf-parser = { opt-level = 3 }
626wasmtime-cranelift = { opt-level = 3 }
627wasmtime = { opt-level = 3 }
628# Build single-source-file crates with cg=1 as it helps make `cargo build` of a whole workspace a bit faster
629activity_indicator = { codegen-units = 1 }
630assets = { codegen-units = 1 }
631breadcrumbs = { codegen-units = 1 }
632collections = { codegen-units = 1 }
633command_palette = { codegen-units = 1 }
634command_palette_hooks = { codegen-units = 1 }
635evals = { codegen-units = 1 }
636extension_cli = { codegen-units = 1 }
637feature_flags = { codegen-units = 1 }
638file_icons = { codegen-units = 1 }
639fsevent = { codegen-units = 1 }
640image_viewer = { codegen-units = 1 }
641inline_completion_button = { codegen-units = 1 }
642install_cli = { codegen-units = 1 }
643journal = { codegen-units = 1 }
644lmstudio = { codegen-units = 1 }
645menu = { codegen-units = 1 }
646notifications = { codegen-units = 1 }
647ollama = { codegen-units = 1 }
648outline = { codegen-units = 1 }
649paths = { codegen-units = 1 }
650prettier = { codegen-units = 1 }
651project_symbols = { codegen-units = 1 }
652refineable = { codegen-units = 1 }
653release_channel = { codegen-units = 1 }
654reqwest_client = { codegen-units = 1 }
655rich_text = { codegen-units = 1 }
656semantic_version = { codegen-units = 1 }
657session = { codegen-units = 1 }
658snippet = { codegen-units = 1 }
659snippets_ui = { codegen-units = 1 }
660sqlez_macros = { codegen-units = 1 }
661story = { codegen-units = 1 }
662supermaven_api = { codegen-units = 1 }
663telemetry_events = { codegen-units = 1 }
664theme_selector = { codegen-units = 1 }
665time_format = { codegen-units = 1 }
666ui_input = { codegen-units = 1 }
667vcs_menu = { codegen-units = 1 }
668zed_actions = { codegen-units = 1 }
669
670[profile.release]
671debug = "limited"
672lto = "thin"
673codegen-units = 1
674
675[profile.release.package]
676zed = { codegen-units = 16 }
677
678[profile.release-fast]
679inherits = "release"
680debug = "full"
681lto = false
682codegen-units = 16
683
684[workspace.lints.clippy]
685dbg_macro = "deny"
686todo = "deny"
687
688# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
689# warning on this rule produces a lot of noise.
690single_range_in_vec_init = "allow"
691
692# These are all of the rules that currently have violations in the Zed
693# codebase.
694#
695# We'll want to drive this list down by either:
696# 1. fixing violations of the rule and begin enforcing it
697# 2. deciding we want to allow the rule permanently, at which point
698# we should codify that separately above.
699#
700# This list shouldn't be added to; it should only get shorter.
701# =============================================================================
702
703# There are a bunch of rules currently failing in the `style` group, so
704# allow all of those, for now.
705style = { level = "allow", priority = -1 }
706
707# Temporary list of style lints that we've fixed so far.
708module_inception = { level = "deny" }
709question_mark = { level = "deny" }
710redundant_closure = { level = "deny" }
711# Individual rules that have violations in the codebase:
712type_complexity = "allow"
713# We often return trait objects from `new` functions.
714new_ret_no_self = { level = "allow" }
715# We have a few `next` functions that differ in lifetimes
716# compared to Iterator::next. Yet, clippy complains about those.
717should_implement_trait = { level = "allow" }
718let_underscore_future = "allow"
719
720[workspace.metadata.cargo-machete]
721ignored = ["bindgen", "cbindgen", "prost_build", "serde"]