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