Cargo.toml

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