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