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