Cargo.toml

  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"
445ordered-float = "2.1.1"
446palette = { version = "0.7.5", default-features = false, features = ["std"] }
447parking_lot = "0.12.1"
448pathdiff = "0.2"
449pet = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
450pet-fs = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
451pet-pixi = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
452pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
453pet-core = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
454pet-poetry = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
455pet-reporter = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
456postage = { version = "0.5", features = ["futures-traits"] }
457pretty_assertions = { version = "1.3.0", features = ["unstable"] }
458proc-macro2 = "1.0.93"
459profiling = "1"
460prost = "0.9"
461prost-build = "0.9"
462prost-types = "0.9"
463pulldown-cmark = { version = "0.12.0", default-features = false }
464quote = "1.0.9"
465rand = "0.8.5"
466rayon = "1.8"
467regex = "1.5"
468repair_json = "0.1.0"
469reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "fd110f6998da16bbca97b6dddda9be7827c50e29", default-features = false, features = [
470    "charset",
471    "http2",
472    "macos-system-configuration",
473    "rustls-tls-native-roots",
474    "socks",
475    "stream",
476] }
477rsa = "0.9.6"
478runtimelib = { version = "0.25.0", default-features = false, features = [
479    "async-dispatcher-runtime",
480] }
481rustc-demangle = "0.1.23"
482rust-embed = { version = "8.4", features = ["include-exclude"] }
483rustc-hash = "2.1.0"
484rustls = { version = "0.23.22" }
485rustls-native-certs = "0.8.0"
486schemars = { version = "0.8", features = ["impl_json_schema", "indexmap2"] }
487semver = "1.0"
488serde = { version = "1.0", features = ["derive", "rc"] }
489serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
490serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
491serde_json_lenient = { version = "0.2", features = [
492    "preserve_order",
493    "raw_value",
494] }
495serde_repr = "0.1"
496sha2 = "0.10"
497shellexpand = "2.1.0"
498shlex = "1.3.0"
499signal-hook = "0.3.17"
500similar = "1.3"
501simplelog = "0.12.2"
502smallvec = { version = "1.6", features = ["union"] }
503smol = "2.0"
504sqlformat = "0.2"
505streaming-iterator = "0.1"
506strsim = "0.11"
507strum = { version = "0.26.0", features = ["derive"] }
508subtle = "2.5.0"
509syn = { version = "1.0.72", features = ["full", "extra-traits"] }
510sys-locale = "0.3.1"
511sysinfo = "0.31.0"
512take-until = "0.2.0"
513tempfile = "3.9.0"
514thiserror = "1.0.29"
515tiktoken-rs = "0.6.0"
516time = { version = "0.3", features = [
517    "macros",
518    "parsing",
519    "serde",
520    "serde-well-known",
521    "formatting",
522] }
523tiny_http = "0.8"
524toml = "0.8"
525tokio = { version = "1" }
526tower-http = "0.4.4"
527tree-sitter = { version = "0.24", features = ["wasm"] }
528tree-sitter-bash = "0.23"
529tree-sitter-c = "0.23"
530tree-sitter-cpp = "0.23"
531tree-sitter-css = "0.23"
532tree-sitter-elixir = "0.3"
533tree-sitter-embedded-template = "0.23.0"
534tree-sitter-gitcommit = {git  = "https://github.com/zed-industries/tree-sitter-git-commit", rev = "88309716a69dd13ab83443721ba6e0b491d37ee9"}
535tree-sitter-go = "0.23"
536tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c", package = "tree-sitter-gomod" }
537tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
538tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
539tree-sitter-diff = "0.1.0"
540tree-sitter-html = "0.20"
541tree-sitter-jsdoc = "0.23"
542tree-sitter-json = "0.24"
543tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
544tree-sitter-python = "0.23"
545tree-sitter-regex = "0.24"
546tree-sitter-ruby = "0.23"
547tree-sitter-rust = "0.23"
548tree-sitter-typescript = "0.23"
549tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
550unicase = "2.6"
551unindent = "0.2.0"
552unicode-segmentation = "1.10"
553unicode-script = "0.5.7"
554url = "2.2"
555uuid = { version = "1.1.2", features = ["v4", "v5", "v7", "serde"] }
556wasmparser = "0.217"
557wasm-encoder = "0.217"
558wasmtime = { version = "25", default-features = false, features = [
559    "async",
560    "demangle",
561    "runtime",
562    "cranelift",
563    "component-model",
564] }
565wasmtime-wasi = "25"
566which = "6.0.0"
567wit-component = "0.201"
568zed_llm_client = "0.4"
569zstd = "0.11"
570metal = "0.31"
571
572[workspace.dependencies.async-stripe]
573git = "https://github.com/zed-industries/async-stripe"
574rev = "3672dd4efb7181aa597bf580bf5a2f5d23db6735"
575default-features = false
576features = [
577    "runtime-tokio-hyper-rustls",
578    "billing",
579    "checkout",
580    "events",
581    # The features below are only enabled to get the `events` feature to build.
582    "chrono",
583    "connect",
584]
585
586[workspace.dependencies.windows]
587version = "0.58"
588features = [
589    "implement",
590    "Foundation_Numerics",
591    "Storage",
592    "System_Threading",
593    "UI_ViewManagement",
594    "Wdk_System_SystemServices",
595    "Win32_Globalization",
596    "Win32_Graphics_Direct2D",
597    "Win32_Graphics_Direct2D_Common",
598    "Win32_Graphics_DirectWrite",
599    "Win32_Graphics_Dwm",
600    "Win32_Graphics_Dxgi_Common",
601    "Win32_Graphics_Gdi",
602    "Win32_Graphics_Imaging",
603    "Win32_Graphics_Imaging_D2D",
604    "Win32_Security",
605    "Win32_Security_Credentials",
606    "Win32_Storage_FileSystem",
607    "Win32_System_Com",
608    "Win32_System_Com_StructuredStorage",
609    "Win32_System_DataExchange",
610    "Win32_System_LibraryLoader",
611    "Win32_System_Memory",
612    "Win32_System_Ole",
613    "Win32_System_SystemInformation",
614    "Win32_System_SystemServices",
615    "Win32_System_Threading",
616    "Win32_System_WinRT",
617    "Win32_UI_Controls",
618    "Win32_UI_HiDpi",
619    "Win32_UI_Input_Ime",
620    "Win32_UI_Input_KeyboardAndMouse",
621    "Win32_UI_Shell",
622    "Win32_UI_Shell_Common",
623    "Win32_UI_WindowsAndMessaging",
624]
625
626# TODO livekit https://github.com/RustAudio/cpal/pull/891
627[patch.crates-io]
628cpal = { git = "https://github.com/zed-industries/cpal", rev = "fd8bc2fd39f1f5fdee5a0690656caff9a26d9d50" }
629real-async-tls = { git = "https://github.com/zed-industries/async-tls", rev = "1e759a4b5e370f87dc15e40756ac4f8815b61d9d", package = "async-tls"}
630
631[profile.dev]
632split-debuginfo = "unpacked"
633debug = "limited"
634codegen-units = 16
635
636[profile.dev.package]
637taffy = { opt-level = 3 }
638cranelift-codegen = { opt-level = 3 }
639resvg = { opt-level = 3 }
640rustybuzz = { opt-level = 3 }
641ttf-parser = { opt-level = 3 }
642wasmtime-cranelift = { opt-level = 3 }
643wasmtime = { opt-level = 3 }
644# Build single-source-file crates with cg=1 as it helps make `cargo build` of a whole workspace a bit faster
645activity_indicator = { codegen-units = 1 }
646assets = { codegen-units = 1 }
647breadcrumbs = { codegen-units = 1 }
648collections = { codegen-units = 1 }
649command_palette = { codegen-units = 1 }
650command_palette_hooks = { codegen-units = 1 }
651evals = { codegen-units = 1 }
652extension_cli = { codegen-units = 1 }
653feature_flags = { codegen-units = 1 }
654file_icons = { codegen-units = 1 }
655fsevent = { codegen-units = 1 }
656image_viewer = { codegen-units = 1 }
657inline_completion_button = { codegen-units = 1 }
658install_cli = { codegen-units = 1 }
659journal = { codegen-units = 1 }
660lmstudio = { codegen-units = 1 }
661menu = { codegen-units = 1 }
662notifications = { codegen-units = 1 }
663ollama = { codegen-units = 1 }
664outline = { codegen-units = 1 }
665paths = { codegen-units = 1 }
666prettier = { codegen-units = 1 }
667project_symbols = { codegen-units = 1 }
668refineable = { codegen-units = 1 }
669release_channel = { codegen-units = 1 }
670reqwest_client = { codegen-units = 1 }
671rich_text = { codegen-units = 1 }
672semantic_version = { codegen-units = 1 }
673session = { codegen-units = 1 }
674snippet = { codegen-units = 1 }
675snippets_ui = { codegen-units = 1 }
676sqlez_macros = { codegen-units = 1 }
677story = { codegen-units = 1 }
678supermaven_api = { codegen-units = 1 }
679telemetry_events = { codegen-units = 1 }
680theme_selector = { codegen-units = 1 }
681time_format = { codegen-units = 1 }
682ui_input = { codegen-units = 1 }
683zed_actions = { codegen-units = 1 }
684
685[profile.release]
686debug = "limited"
687lto = "thin"
688codegen-units = 1
689
690[profile.release.package]
691zed = { codegen-units = 16 }
692
693[profile.release-fast]
694inherits = "release"
695debug = "full"
696lto = false
697codegen-units = 16
698
699[workspace.lints.clippy]
700dbg_macro = "deny"
701todo = "deny"
702
703# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
704# warning on this rule produces a lot of noise.
705single_range_in_vec_init = "allow"
706
707# These are all of the rules that currently have violations in the Zed
708# codebase.
709#
710# We'll want to drive this list down by either:
711# 1. fixing violations of the rule and begin enforcing it
712# 2. deciding we want to allow the rule permanently, at which point
713#    we should codify that separately above.
714#
715# This list shouldn't be added to; it should only get shorter.
716# =============================================================================
717
718# There are a bunch of rules currently failing in the `style` group, so
719# allow all of those, for now.
720style = { level = "allow", priority = -1 }
721
722# Temporary list of style lints that we've fixed so far.
723module_inception = { level = "deny" }
724question_mark = { level = "deny" }
725redundant_closure = { level = "deny" }
726# Individual rules that have violations in the codebase:
727type_complexity = "allow"
728# We often return trait objects from `new` functions.
729new_ret_no_self = { level = "allow" }
730# We have a few `next` functions that differ in lifetimes
731# compared to Iterator::next. Yet, clippy complains about those.
732should_implement_trait = { level = "allow" }
733let_underscore_future = "allow"
734
735[workspace.metadata.cargo-machete]
736ignored = ["bindgen", "cbindgen", "prost_build", "serde"]