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