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