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