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/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/php",
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" }
239diff = { path = "crates/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_client = { path = "crates/livekit_client" }
278livekit_client_macos = { path = "crates/livekit_client_macos" }
279livekit_server = { path = "crates/livekit_server" }
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" }
287multi_buffer = { path = "crates/multi_buffer" }
288node_runtime = { path = "crates/node_runtime" }
289notifications = { path = "crates/notifications" }
290ollama = { path = "crates/ollama" }
291open_ai = { path = "crates/open_ai" }
292outline = { path = "crates/outline" }
293outline_panel = { path = "crates/outline_panel" }
294paths = { path = "crates/paths" }
295panel = { path = "crates/panel" }
296picker = { path = "crates/picker" }
297plugin = { path = "crates/plugin" }
298plugin_macros = { path = "crates/plugin_macros" }
299prettier = { path = "crates/prettier" }
300project = { path = "crates/project" }
301project_panel = { path = "crates/project_panel" }
302project_symbols = { path = "crates/project_symbols" }
303prompt_library = { path = "crates/prompt_library" }
304proto = { path = "crates/proto" }
305recent_projects = { path = "crates/recent_projects" }
306refineable = { path = "crates/refineable" }
307release_channel = { path = "crates/release_channel" }
308remote = { path = "crates/remote" }
309remote_server = { path = "crates/remote_server" }
310repl = { path = "crates/repl" }
311reqwest_client = { path = "crates/reqwest_client" }
312rich_text = { path = "crates/rich_text" }
313rope = { path = "crates/rope" }
314rpc = { path = "crates/rpc" }
315search = { path = "crates/search" }
316semantic_index = { path = "crates/semantic_index" }
317semantic_version = { path = "crates/semantic_version" }
318session = { path = "crates/session" }
319settings = { path = "crates/settings" }
320settings_ui = { path = "crates/settings_ui" }
321snippet = { path = "crates/snippet" }
322snippet_provider = { path = "crates/snippet_provider" }
323snippets_ui = { path = "crates/snippets_ui" }
324sqlez = { path = "crates/sqlez" }
325sqlez_macros = { path = "crates/sqlez_macros" }
326story = { path = "crates/story" }
327storybook = { path = "crates/storybook" }
328streaming_diff = { path = "crates/streaming_diff" }
329sum_tree = { path = "crates/sum_tree" }
330supermaven = { path = "crates/supermaven" }
331supermaven_api = { path = "crates/supermaven_api" }
332tab_switcher = { path = "crates/tab_switcher" }
333task = { path = "crates/task" }
334tasks_ui = { path = "crates/tasks_ui" }
335telemetry = { path = "crates/telemetry" }
336telemetry_events = { path = "crates/telemetry_events" }
337terminal = { path = "crates/terminal" }
338terminal_view = { path = "crates/terminal_view" }
339text = { path = "crates/text" }
340theme = { path = "crates/theme" }
341theme_extension = { path = "crates/theme_extension" }
342theme_importer = { path = "crates/theme_importer" }
343theme_selector = { path = "crates/theme_selector" }
344time_format = { path = "crates/time_format" }
345title_bar = { path = "crates/title_bar" }
346toolchain_selector = { path = "crates/toolchain_selector" }
347ui = { path = "crates/ui" }
348ui_input = { path = "crates/ui_input" }
349ui_macros = { path = "crates/ui_macros" }
350util = { path = "crates/util" }
351util_macros = { path = "crates/util_macros" }
352vim = { path = "crates/vim" }
353vim_mode_setting = { path = "crates/vim_mode_setting" }
354welcome = { path = "crates/welcome" }
355workspace = { path = "crates/workspace" }
356worktree = { path = "crates/worktree" }
357zed = { path = "crates/zed" }
358zed_actions = { path = "crates/zed_actions" }
359zeta = { path = "crates/zeta" }
360
361#
362# External crates
363#
364
365aho-corasick = "1.1"
366# TODO(#18342): Update to version 0.25 from crates.io when it is released.
367alacritty_terminal = { git = "https://github.com/alacritty/alacritty.git", rev = "5e78d20c709cb1ab8d44ca7a8702cc26d779227c" }
368any_vec = "0.14"
369anyhow = "1.0.86"
370arrayvec = { version = "0.7.4", features = ["serde"] }
371ashpd = { version = "0.10", 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.2.6"
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"
424indexmap = { version = "2.7.0", features = ["serde"] }
425indoc = "2"
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"
505strsim = "0.11"
506strum = { version = "0.26.0", features = ["derive"] }
507subtle = "2.5.0"
508syn = { version = "1.0.72", features = ["full", "extra-traits"] }
509sys-locale = "0.3.1"
510sysinfo = "0.31.0"
511take-until = "0.2.0"
512tempfile = "3.9.0"
513thiserror = "1.0.29"
514tiktoken-rs = "0.6.0"
515time = { version = "0.3", features = [
516    "macros",
517    "parsing",
518    "serde",
519    "serde-well-known",
520    "formatting",
521] }
522tiny_http = "0.8"
523toml = "0.8"
524tokio = { version = "1" }
525tower-http = "0.4.4"
526tree-sitter = { version = "0.23", features = ["wasm"] }
527tree-sitter-bash = "0.23"
528tree-sitter-c = "0.23"
529tree-sitter-cpp = "0.23"
530tree-sitter-css = "0.23"
531tree-sitter-elixir = "0.3"
532tree-sitter-embedded-template = "0.23.0"
533tree-sitter-gitcommit = {git  = "https://github.com/zed-industries/tree-sitter-git-commit", rev = "88309716a69dd13ab83443721ba6e0b491d37ee9"}
534tree-sitter-go = "0.23"
535tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c", package = "tree-sitter-gomod" }
536tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
537tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
538tree-sitter-diff = "0.1.0"
539tree-sitter-html = "0.20"
540tree-sitter-jsdoc = "0.23"
541tree-sitter-json = "0.24"
542tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
543tree-sitter-python = "0.23"
544tree-sitter-regex = "0.24"
545tree-sitter-ruby = "0.23"
546tree-sitter-rust = "0.23"
547tree-sitter-typescript = "0.23"
548tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
549unicase = "2.6"
550unindent = "0.2.0"
551unicode-segmentation = "1.10"
552unicode-script = "0.5.7"
553url = "2.2"
554uuid = { version = "1.1.2", features = ["v4", "v5", "v7", "serde"] }
555wasmparser = "0.215"
556wasm-encoder = "0.215"
557wasmtime = { version = "24", default-features = false, features = [
558    "async",
559    "demangle",
560    "runtime",
561    "cranelift",
562    "component-model",
563] }
564wasmtime-wasi = "24"
565which = "6.0.0"
566wit-component = "0.201"
567zed_llm_client = "0.4"
568zstd = "0.11"
569metal = "0.31"
570
571[workspace.dependencies.async-stripe]
572git = "https://github.com/zed-industries/async-stripe"
573rev = "3672dd4efb7181aa597bf580bf5a2f5d23db6735"
574default-features = false
575features = [
576    "runtime-tokio-hyper-rustls",
577    "billing",
578    "checkout",
579    "events",
580    # The features below are only enabled to get the `events` feature to build.
581    "chrono",
582    "connect",
583]
584
585[workspace.dependencies.windows]
586version = "0.58"
587features = [
588    "implement",
589    "Foundation_Numerics",
590    "Storage",
591    "System_Threading",
592    "UI_ViewManagement",
593    "Wdk_System_SystemServices",
594    "Win32_Globalization",
595    "Win32_Graphics_Direct2D",
596    "Win32_Graphics_Direct2D_Common",
597    "Win32_Graphics_DirectWrite",
598    "Win32_Graphics_Dwm",
599    "Win32_Graphics_Dxgi_Common",
600    "Win32_Graphics_Gdi",
601    "Win32_Graphics_Imaging",
602    "Win32_Graphics_Imaging_D2D",
603    "Win32_Security",
604    "Win32_Security_Credentials",
605    "Win32_Storage_FileSystem",
606    "Win32_System_Com",
607    "Win32_System_Com_StructuredStorage",
608    "Win32_System_DataExchange",
609    "Win32_System_LibraryLoader",
610    "Win32_System_Memory",
611    "Win32_System_Ole",
612    "Win32_System_SystemInformation",
613    "Win32_System_SystemServices",
614    "Win32_System_Threading",
615    "Win32_System_WinRT",
616    "Win32_UI_Controls",
617    "Win32_UI_HiDpi",
618    "Win32_UI_Input_Ime",
619    "Win32_UI_Input_KeyboardAndMouse",
620    "Win32_UI_Shell",
621    "Win32_UI_Shell_Common",
622    "Win32_UI_WindowsAndMessaging",
623]
624
625# TODO livekit https://github.com/RustAudio/cpal/pull/891
626[patch.crates-io]
627cpal = { git = "https://github.com/zed-industries/cpal", rev = "fd8bc2fd39f1f5fdee5a0690656caff9a26d9d50" }
628real-async-tls = { git = "https://github.com/zed-industries/async-tls", rev = "1e759a4b5e370f87dc15e40756ac4f8815b61d9d", package = "async-tls"}
629
630[profile.dev]
631split-debuginfo = "unpacked"
632debug = "limited"
633codegen-units = 16
634
635[profile.dev.package]
636taffy = { opt-level = 3 }
637cranelift-codegen = { opt-level = 3 }
638resvg = { opt-level = 3 }
639rustybuzz = { opt-level = 3 }
640ttf-parser = { opt-level = 3 }
641wasmtime-cranelift = { opt-level = 3 }
642wasmtime = { opt-level = 3 }
643# Build single-source-file crates with cg=1 as it helps make `cargo build` of a whole workspace a bit faster
644activity_indicator = { codegen-units = 1 }
645assets = { codegen-units = 1 }
646breadcrumbs = { codegen-units = 1 }
647collections = { codegen-units = 1 }
648command_palette = { codegen-units = 1 }
649command_palette_hooks = { codegen-units = 1 }
650evals = { codegen-units = 1 }
651extension_cli = { codegen-units = 1 }
652feature_flags = { codegen-units = 1 }
653file_icons = { codegen-units = 1 }
654fsevent = { codegen-units = 1 }
655image_viewer = { codegen-units = 1 }
656inline_completion_button = { codegen-units = 1 }
657install_cli = { codegen-units = 1 }
658journal = { codegen-units = 1 }
659lmstudio = { codegen-units = 1 }
660menu = { codegen-units = 1 }
661notifications = { codegen-units = 1 }
662ollama = { codegen-units = 1 }
663outline = { codegen-units = 1 }
664paths = { codegen-units = 1 }
665prettier = { codegen-units = 1 }
666project_symbols = { codegen-units = 1 }
667refineable = { codegen-units = 1 }
668release_channel = { codegen-units = 1 }
669reqwest_client = { codegen-units = 1 }
670rich_text = { codegen-units = 1 }
671semantic_version = { codegen-units = 1 }
672session = { codegen-units = 1 }
673snippet = { codegen-units = 1 }
674snippets_ui = { codegen-units = 1 }
675sqlez_macros = { codegen-units = 1 }
676story = { codegen-units = 1 }
677supermaven_api = { codegen-units = 1 }
678telemetry_events = { codegen-units = 1 }
679theme_selector = { codegen-units = 1 }
680time_format = { codegen-units = 1 }
681ui_input = { codegen-units = 1 }
682zed_actions = { codegen-units = 1 }
683
684[profile.release]
685debug = "limited"
686lto = "thin"
687codegen-units = 1
688
689[profile.release.package]
690zed = { codegen-units = 16 }
691
692[profile.release-fast]
693inherits = "release"
694debug = "full"
695lto = false
696codegen-units = 16
697
698[workspace.lints.clippy]
699dbg_macro = "deny"
700todo = "deny"
701
702# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
703# warning on this rule produces a lot of noise.
704single_range_in_vec_init = "allow"
705
706# These are all of the rules that currently have violations in the Zed
707# codebase.
708#
709# We'll want to drive this list down by either:
710# 1. fixing violations of the rule and begin enforcing it
711# 2. deciding we want to allow the rule permanently, at which point
712#    we should codify that separately above.
713#
714# This list shouldn't be added to; it should only get shorter.
715# =============================================================================
716
717# There are a bunch of rules currently failing in the `style` group, so
718# allow all of those, for now.
719style = { level = "allow", priority = -1 }
720
721# Temporary list of style lints that we've fixed so far.
722module_inception = { level = "deny" }
723question_mark = { level = "deny" }
724redundant_closure = { level = "deny" }
725# Individual rules that have violations in the codebase:
726type_complexity = "allow"
727# We often return trait objects from `new` functions.
728new_ret_no_self = { level = "allow" }
729# We have a few `next` functions that differ in lifetimes
730# compared to Iterator::next. Yet, clippy complains about those.
731should_implement_trait = { level = "allow" }
732let_underscore_future = "allow"
733
734[workspace.metadata.cargo-machete]
735ignored = ["bindgen", "cbindgen", "prost_build", "serde"]