Cargo.toml

  1[workspace]
  2resolver = "2"
  3members = [
  4    "crates/acp_tools",
  5    "crates/acp_thread",
  6    "crates/action_log",
  7    "crates/activity_indicator",
  8    "crates/agent",
  9    "crates/agent_servers",
 10    "crates/agent_settings",
 11    "crates/agent_ui",
 12    "crates/agent_ui_v2",
 13    "crates/ai_onboarding",
 14    "crates/anthropic",
 15    "crates/askpass",
 16    "crates/assets",
 17    "crates/assistant_text_thread",
 18    "crates/assistant_slash_command",
 19    "crates/assistant_slash_commands",
 20    "crates/audio",
 21    "crates/auto_update",
 22    "crates/auto_update_helper",
 23    "crates/auto_update_ui",
 24    "crates/aws_http_client",
 25    "crates/bedrock",
 26    "crates/breadcrumbs",
 27    "crates/buffer_diff",
 28    "crates/call",
 29    "crates/channel",
 30    "crates/cli",
 31    "crates/client",
 32    "crates/clock",
 33    "crates/cloud_api_client",
 34    "crates/cloud_api_types",
 35    "crates/cloud_llm_client",
 36    "crates/collab",
 37    "crates/collab_ui",
 38    "crates/collections",
 39    "crates/command_palette",
 40    "crates/command_palette_hooks",
 41    "crates/component",
 42    "crates/component_preview",
 43    "crates/context_server",
 44    "crates/copilot",
 45    "crates/copilot_chat",
 46    "crates/crashes",
 47    "crates/credentials_provider",
 48    "crates/dap",
 49    "crates/dap_adapters",
 50    "crates/db",
 51    "crates/debug_adapter_extension",
 52    "crates/debugger_tools",
 53    "crates/debugger_ui",
 54    "crates/deepseek",
 55    "crates/denoise",
 56    "crates/diagnostics",
 57    "crates/docs_preprocessor",
 58    "crates/edit_prediction",
 59    "crates/edit_prediction_types",
 60    "crates/edit_prediction_ui",
 61    "crates/edit_prediction_context",
 62    "crates/editor",
 63    "crates/encoding_selector",
 64    "crates/eval",
 65    "crates/eval_utils",
 66    "crates/explorer_command_injector",
 67    "crates/extension",
 68    "crates/extension_api",
 69    "crates/extension_cli",
 70    "crates/extension_host",
 71    "crates/extensions_ui",
 72    "crates/feature_flags",
 73    "crates/feedback",
 74    "crates/file_finder",
 75    "crates/file_icons",
 76    "crates/fs",
 77    "crates/fs_benchmarks",
 78    "crates/fsevent",
 79    "crates/fuzzy",
 80    "crates/git",
 81    "crates/git_hosting_providers",
 82    "crates/git_ui",
 83    "crates/go_to_line",
 84    "crates/google_ai",
 85    "crates/gpui",
 86    "crates/gpui_macros",
 87    "crates/gpui_tokio",
 88    "crates/html_to_markdown",
 89    "crates/http_client",
 90    "crates/http_client_tls",
 91    "crates/icons",
 92    "crates/image_viewer",
 93    "crates/inspector_ui",
 94    "crates/install_cli",
 95    "crates/journal",
 96    "crates/json_schema_store",
 97    "crates/keymap_editor",
 98    "crates/language",
 99    "crates/language_extension",
100    "crates/language_model",
101    "crates/language_models",
102    "crates/language_onboarding",
103    "crates/language_selector",
104    "crates/language_tools",
105    "crates/languages",
106    "crates/line_ending_selector",
107    "crates/livekit_api",
108    "crates/livekit_client",
109    "crates/lmstudio",
110    "crates/lsp",
111    "crates/markdown",
112    "crates/markdown_preview",
113    "crates/media",
114    "crates/menu",
115    "crates/migrator",
116    "crates/mistral",
117    "crates/miniprofiler_ui",
118    "crates/multi_buffer",
119    "crates/nc",
120    "crates/net",
121    "crates/node_runtime",
122    "crates/notifications",
123    "crates/ollama",
124    "crates/onboarding",
125    "crates/open_ai",
126    "crates/open_router",
127    "crates/outline",
128    "crates/outline_panel",
129    "crates/panel",
130    "crates/paths",
131    "crates/picker",
132    "crates/prettier",
133    "crates/project",
134    "crates/project_benchmarks",
135    "crates/project_panel",
136    "crates/project_symbols",
137    "crates/prompt_store",
138    "crates/proto",
139    "crates/recent_projects",
140    "crates/refineable",
141    "crates/refineable/derive_refineable",
142    "crates/release_channel",
143    "crates/scheduler",
144    "crates/remote",
145    "crates/remote_server",
146    "crates/repl",
147    "crates/reqwest_client",
148    "crates/rich_text",
149    "crates/rope",
150    "crates/rpc",
151    "crates/rules_library",
152    "crates/schema_generator",
153    "crates/search",
154    "crates/session",
155    "crates/settings",
156    "crates/settings_content",
157    "crates/settings_json",
158    "crates/settings_macros",
159    "crates/settings_profile_selector",
160    "crates/settings_ui",
161    "crates/snippet",
162    "crates/snippet_provider",
163    "crates/snippets_ui",
164    "crates/sqlez",
165    "crates/sqlez_macros",
166    "crates/story",
167    "crates/storybook",
168    "crates/streaming_diff",
169    "crates/sum_tree",
170    "crates/supermaven",
171    "crates/supermaven_api",
172    "crates/codestral",
173    "crates/svg_preview",
174    "crates/system_specs",
175    "crates/tab_switcher",
176    "crates/task",
177    "crates/tasks_ui",
178    "crates/telemetry",
179    "crates/telemetry_events",
180    "crates/terminal",
181    "crates/terminal_view",
182    "crates/text",
183    "crates/theme",
184    "crates/theme_extension",
185    "crates/theme_importer",
186    "crates/theme_selector",
187    "crates/time_format",
188    "crates/title_bar",
189    "crates/toolchain_selector",
190    "crates/ui",
191    "crates/ui_input",
192    "crates/ui_macros",
193    "crates/ui_prompt",
194    "crates/util",
195    "crates/util_macros",
196    "crates/vercel",
197    "crates/vim",
198    "crates/vim_mode_setting",
199    "crates/which_key",
200    "crates/watch",
201    "crates/web_search",
202    "crates/web_search_providers",
203    "crates/workspace",
204    "crates/worktree",
205    "crates/worktree_benchmarks",
206    "crates/x_ai",
207    "crates/zed",
208    "crates/zed_actions",
209    "crates/zed_env_vars",
210    "crates/edit_prediction_cli",
211    "crates/zeta_prompt",
212    "crates/zlog",
213    "crates/zlog_settings",
214    "crates/ztracing",
215    "crates/ztracing_macro",
216
217    #
218    # Extensions
219    #
220
221    "extensions/glsl",
222    "extensions/html",
223    "extensions/proto",
224    "extensions/slash-commands-example",
225    "extensions/test-extension",
226
227    #
228    # Tooling
229    #
230
231    "tooling/perf",
232    "tooling/xtask",
233]
234default-members = ["crates/zed"]
235
236[workspace.package]
237publish = false
238edition = "2024"
239
240[workspace.dependencies]
241
242#
243# Workspace member crates
244#
245
246acp_tools = { path = "crates/acp_tools" }
247acp_thread = { path = "crates/acp_thread" }
248action_log = { path = "crates/action_log" }
249agent = { path = "crates/agent" }
250activity_indicator = { path = "crates/activity_indicator" }
251agent_ui = { path = "crates/agent_ui" }
252agent_ui_v2 = { path = "crates/agent_ui_v2" }
253agent_settings = { path = "crates/agent_settings" }
254agent_servers = { path = "crates/agent_servers" }
255ai_onboarding = { path = "crates/ai_onboarding" }
256anthropic = { path = "crates/anthropic" }
257askpass = { path = "crates/askpass" }
258assets = { path = "crates/assets" }
259assistant_text_thread = { path = "crates/assistant_text_thread" }
260assistant_slash_command = { path = "crates/assistant_slash_command" }
261assistant_slash_commands = { path = "crates/assistant_slash_commands" }
262audio = { path = "crates/audio" }
263auto_update = { path = "crates/auto_update" }
264auto_update_ui = { path = "crates/auto_update_ui" }
265aws_http_client = { path = "crates/aws_http_client" }
266bedrock = { path = "crates/bedrock" }
267breadcrumbs = { path = "crates/breadcrumbs" }
268buffer_diff = { path = "crates/buffer_diff" }
269call = { path = "crates/call" }
270channel = { path = "crates/channel" }
271cli = { path = "crates/cli" }
272client = { path = "crates/client" }
273clock = { path = "crates/clock" }
274cloud_api_client = { path = "crates/cloud_api_client" }
275cloud_api_types = { path = "crates/cloud_api_types" }
276cloud_llm_client = { path = "crates/cloud_llm_client" }
277collab_ui = { path = "crates/collab_ui" }
278collections = { path = "crates/collections", version = "0.1.0" }
279command_palette = { path = "crates/command_palette" }
280command_palette_hooks = { path = "crates/command_palette_hooks" }
281component = { path = "crates/component" }
282component_preview  = { path = "crates/component_preview" }
283context_server = { path = "crates/context_server" }
284copilot = { path = "crates/copilot" }
285copilot_chat = { path = "crates/copilot_chat" }
286copilot_ui = { path = "crates/copilot_ui" }
287crashes = { path = "crates/crashes" }
288credentials_provider = { path = "crates/credentials_provider" }
289crossbeam = "0.8.4"
290dap = { path = "crates/dap" }
291dap_adapters = { path = "crates/dap_adapters" }
292db = { path = "crates/db" }
293debug_adapter_extension = { path = "crates/debug_adapter_extension" }
294debugger_tools = { path = "crates/debugger_tools" }
295debugger_ui = { path = "crates/debugger_ui" }
296deepseek = { path = "crates/deepseek" }
297derive_refineable = { path = "crates/refineable/derive_refineable" }
298diagnostics = { path = "crates/diagnostics" }
299editor = { path = "crates/editor" }
300encoding_selector = { path = "crates/encoding_selector" }
301eval_utils = { path = "crates/eval_utils" }
302extension = { path = "crates/extension" }
303extension_host = { path = "crates/extension_host" }
304extensions_ui = { path = "crates/extensions_ui" }
305feature_flags = { path = "crates/feature_flags" }
306feedback = { path = "crates/feedback" }
307file_finder = { path = "crates/file_finder" }
308file_icons = { path = "crates/file_icons" }
309fs = { path = "crates/fs" }
310fsevent = { path = "crates/fsevent" }
311fuzzy = { path = "crates/fuzzy" }
312git = { path = "crates/git" }
313git_hosting_providers = { path = "crates/git_hosting_providers" }
314git_ui = { path = "crates/git_ui" }
315go_to_line = { path = "crates/go_to_line" }
316google_ai = { path = "crates/google_ai" }
317gpui = { path = "crates/gpui", default-features = false }
318gpui_macros = { path = "crates/gpui_macros" }
319gpui_tokio = { path = "crates/gpui_tokio" }
320html_to_markdown = { path = "crates/html_to_markdown" }
321http_client = { path = "crates/http_client" }
322http_client_tls = { path = "crates/http_client_tls" }
323icons = { path = "crates/icons" }
324image_viewer = { path = "crates/image_viewer" }
325edit_prediction_types = { path = "crates/edit_prediction_types" }
326edit_prediction_ui = { path = "crates/edit_prediction_ui" }
327edit_prediction_context = { path = "crates/edit_prediction_context" }
328inspector_ui = { path = "crates/inspector_ui" }
329install_cli = { path = "crates/install_cli" }
330journal = { path = "crates/journal" }
331json_schema_store = { path = "crates/json_schema_store" }
332keymap_editor = { path = "crates/keymap_editor" }
333language = { path = "crates/language" }
334language_extension = { path = "crates/language_extension" }
335language_model = { path = "crates/language_model" }
336language_models = { path = "crates/language_models" }
337language_onboarding = { path = "crates/language_onboarding" }
338language_selector = { path = "crates/language_selector" }
339language_tools = { path = "crates/language_tools" }
340languages = { path = "crates/languages" }
341line_ending_selector = { path = "crates/line_ending_selector" }
342livekit_api = { path = "crates/livekit_api" }
343livekit_client = { path = "crates/livekit_client" }
344lmstudio = { path = "crates/lmstudio" }
345lsp = { path = "crates/lsp" }
346markdown = { path = "crates/markdown" }
347markdown_preview = { path = "crates/markdown_preview" }
348svg_preview = { path = "crates/svg_preview" }
349media = { path = "crates/media" }
350menu = { path = "crates/menu" }
351migrator = { path = "crates/migrator" }
352mistral = { path = "crates/mistral" }
353multi_buffer = { path = "crates/multi_buffer" }
354miniprofiler_ui = { path = "crates/miniprofiler_ui" }
355nc = { path = "crates/nc" }
356net = { path = "crates/net" }
357node_runtime = { path = "crates/node_runtime" }
358notifications = { path = "crates/notifications" }
359ollama = { path = "crates/ollama" }
360onboarding = { path = "crates/onboarding" }
361open_ai = { path = "crates/open_ai" }
362open_router = { path = "crates/open_router", features = ["schemars"] }
363outline = { path = "crates/outline" }
364outline_panel = { path = "crates/outline_panel" }
365panel = { path = "crates/panel" }
366paths = { path = "crates/paths" }
367perf = { path = "tooling/perf" }
368picker = { path = "crates/picker" }
369prettier = { path = "crates/prettier" }
370settings_profile_selector = { path = "crates/settings_profile_selector" }
371project = { path = "crates/project" }
372project_panel = { path = "crates/project_panel" }
373project_symbols = { path = "crates/project_symbols" }
374prompt_store = { path = "crates/prompt_store" }
375proto = { path = "crates/proto" }
376recent_projects = { path = "crates/recent_projects" }
377refineable = { path = "crates/refineable" }
378release_channel = { path = "crates/release_channel" }
379remote = { path = "crates/remote" }
380remote_server = { path = "crates/remote_server" }
381repl = { path = "crates/repl" }
382reqwest_client = { path = "crates/reqwest_client" }
383rodio = { git = "https://github.com/RustAudio/rodio", rev ="e2074c6c2acf07b57cf717e076bdda7a9ac6e70b", features = ["wav", "playback", "wav_output", "recording"] }
384rope = { path = "crates/rope" }
385rpc = { path = "crates/rpc" }
386rules_library = { path = "crates/rules_library" }
387scheduler = { path = "crates/scheduler" }
388search = { path = "crates/search" }
389session = { path = "crates/session" }
390settings = { path = "crates/settings" }
391settings_content = { path = "crates/settings_content" }
392settings_json = { path = "crates/settings_json" }
393settings_macros = { path = "crates/settings_macros" }
394settings_ui = { path = "crates/settings_ui" }
395snippet = { path = "crates/snippet" }
396snippet_provider = { path = "crates/snippet_provider" }
397snippets_ui = { path = "crates/snippets_ui" }
398sqlez = { path = "crates/sqlez" }
399sqlez_macros = { path = "crates/sqlez_macros" }
400story = { path = "crates/story" }
401streaming_diff = { path = "crates/streaming_diff" }
402sum_tree = { path = "crates/sum_tree" }
403supermaven = { path = "crates/supermaven" }
404supermaven_api = { path = "crates/supermaven_api" }
405codestral = { path = "crates/codestral" }
406system_specs = { path = "crates/system_specs" }
407tab_switcher = { path = "crates/tab_switcher" }
408task = { path = "crates/task" }
409tasks_ui = { path = "crates/tasks_ui" }
410telemetry = { path = "crates/telemetry" }
411telemetry_events = { path = "crates/telemetry_events" }
412terminal = { path = "crates/terminal" }
413terminal_view = { path = "crates/terminal_view" }
414text = { path = "crates/text" }
415theme = { path = "crates/theme" }
416theme_extension = { path = "crates/theme_extension" }
417theme_selector = { path = "crates/theme_selector" }
418time_format = { path = "crates/time_format" }
419title_bar = { path = "crates/title_bar" }
420toolchain_selector = { path = "crates/toolchain_selector" }
421ui = { path = "crates/ui" }
422ui_input = { path = "crates/ui_input" }
423ui_macros = { path = "crates/ui_macros" }
424ui_prompt = { path = "crates/ui_prompt" }
425util = { path = "crates/util" }
426util_macros = { path = "crates/util_macros" }
427vercel = { path = "crates/vercel" }
428vim = { path = "crates/vim" }
429vim_mode_setting = { path = "crates/vim_mode_setting" }
430which_key = { path = "crates/which_key" }
431
432watch = { path = "crates/watch" }
433web_search = { path = "crates/web_search" }
434web_search_providers = { path = "crates/web_search_providers" }
435workspace = { path = "crates/workspace" }
436worktree = { path = "crates/worktree" }
437x_ai = { path = "crates/x_ai" }
438zed = { path = "crates/zed" }
439zed_actions = { path = "crates/zed_actions" }
440zed_env_vars = { path = "crates/zed_env_vars" }
441edit_prediction = { path = "crates/edit_prediction" }
442zeta_prompt = { path = "crates/zeta_prompt" }
443zlog = { path = "crates/zlog" }
444zlog_settings = { path = "crates/zlog_settings" }
445ztracing = { path = "crates/ztracing" }
446ztracing_macro = { path = "crates/ztracing_macro" }
447
448#
449# External crates
450#
451
452agent-client-protocol = { version = "=0.9.3", features = ["unstable"] }
453aho-corasick = "1.1"
454alacritty_terminal = "0.25.1-rc1"
455any_vec = "0.14"
456anyhow = "1.0.86"
457arrayvec = { version = "0.7.4", features = ["serde"] }
458ashpd = { version = "0.12.1", default-features = false, features = ["async-std"] }
459async-compat = "0.2.1"
460async-compression = { version = "0.4", features = ["gzip", "futures-io"] }
461async-dispatcher = "0.1"
462async-fs = "2.1"
463async-lock = "2.1"
464async-pipe = { git = "https://github.com/zed-industries/async-pipe-rs", rev = "82d00a04211cf4e1236029aa03e6b6ce2a74c553" }
465async-recursion = "1.0.0"
466async-tar = "0.5.1"
467async-task = "4.7"
468async-trait = "0.1"
469async-tungstenite = "0.31.0"
470async_zip = { version = "0.0.18", features = ["deflate", "deflate64"] }
471aws-config = { version = "1.8.10", features = ["behavior-version-latest"] }
472aws-credential-types = { version = "1.2.8", features = [
473    "hardcoded-credentials",
474] }
475aws-sdk-bedrockruntime = { version = "1.112.0", features = [
476    "behavior-version-latest",
477] }
478aws-smithy-runtime-api = { version = "1.9.2", features = ["http-1x", "client"] }
479aws-smithy-types = { version = "1.3.4", features = ["http-body-1-x"] }
480backtrace = "0.3"
481base64 = "0.22"
482bincode = "1.2.1"
483bitflags = "2.6.0"
484blade-graphics = { git = "https://github.com/kvark/blade", rev = "e3cf011ca18a6dfd907d1dedd93e85e21f005fe3" }
485blade-macros = { git = "https://github.com/kvark/blade", rev = "e3cf011ca18a6dfd907d1dedd93e85e21f005fe3" }
486blade-util = { git = "https://github.com/kvark/blade", rev = "e3cf011ca18a6dfd907d1dedd93e85e21f005fe3" }
487brotli = "8.0.2"
488bytes = "1.0"
489cargo_metadata = "0.19"
490cargo_toml = "0.21"
491cfg-if = "1.0.3"
492chardetng = "0.1"
493chrono = { version = "0.4", features = ["serde"] }
494ciborium = "0.2"
495circular-buffer = "1.0"
496clap = { version = "4.4", features = ["derive", "wrap_help"] }
497cocoa = "=0.26.0"
498cocoa-foundation = "=0.2.0"
499convert_case = "0.8.0"
500core-foundation = "=0.10.0"
501core-foundation-sys = "0.8.6"
502core-video = { version = "0.4.3", features = ["metal"] }
503cpal = "0.16"
504crash-handler = "0.6"
505criterion = { version = "0.5", features = ["html_reports"] }
506ctor = "0.4.0"
507dap-types = { git = "https://github.com/zed-industries/dap-types", rev = "1b461b310481d01e02b2603c16d7144b926339f8" }
508dashmap = "6.0"
509derive_more = "0.99.17"
510dirs = "4.0"
511documented = "0.9.1"
512dotenvy = "0.15.0"
513ec4rs = "1.1"
514emojis = "0.6.1"
515env_logger = "0.11"
516encoding_rs = "0.8"
517exec = "0.3.1"
518fancy-regex = "0.16.0"
519fork = "0.4.0"
520futures = "0.3"
521futures-lite = "1.13"
522gh-workflow = { git = "https://github.com/zed-industries/gh-workflow", rev = "09acfdf2bd5c1d6254abefd609c808ff73547b2c" }
523git2 = { version = "0.20.1", default-features = false }
524globset = "0.4"
525handlebars = "4.3"
526heck = "0.5"
527heed = { version = "0.21.0", features = ["read-txn-no-tls"] }
528hex = "0.4.3"
529human_bytes = "0.4.1"
530html5ever = "0.27.0"
531http = "1.1"
532http-body = "1.0"
533hyper = "0.14"
534ignore = "0.4.22"
535image = "0.25.1"
536imara-diff = "0.1.8"
537indexmap = { version = "2.7.0", features = ["serde"] }
538indoc = "2"
539inventory = "0.3.19"
540itertools = "0.14.0"
541json_dotpath = "1.1"
542jsonschema = "0.37.0"
543jsonwebtoken = "9.3"
544jupyter-protocol = "0.10.0"
545jupyter-websocket-client = "0.15.0"
546libc = "0.2"
547libsqlite3-sys = { version = "0.30.1", features = ["bundled"] }
548linkify = "0.10.0"
549log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
550lsp-types = { git = "https://github.com/zed-industries/lsp-types", rev = "b71ab4eeb27d9758be8092020a46fe33fbca4e33" }
551mach2 = "0.5"
552markup5ever_rcdom = "0.3.0"
553metal = "0.29"
554minidumper = "0.8"
555moka = { version = "0.12.10", features = ["sync"] }
556naga = { version = "25.0", features = ["wgsl-in"] }
557nanoid = "0.4"
558nbformat = "0.15.0"
559nix = "0.29"
560num-format = "0.4.4"
561objc = "0.2"
562objc2-foundation = { version = "=0.3.1", default-features = false, features = [
563    "NSArray",
564    "NSAttributedString",
565    "NSBundle",
566    "NSCoder",
567    "NSData",
568    "NSDate",
569    "NSDictionary",
570    "NSEnumerator",
571    "NSError",
572    "NSGeometry",
573    "NSNotification",
574    "NSNull",
575    "NSObjCRuntime",
576    "NSObject",
577    "NSProcessInfo",
578    "NSRange",
579    "NSRunLoop",
580    "NSString",
581    "NSURL",
582    "NSUndoManager",
583    "NSValue",
584    "objc2-core-foundation",
585    "std"
586] }
587open = "5.0.0"
588ordered-float = "2.1.1"
589palette = { version = "0.7.5", default-features = false, features = ["std"] }
590parking_lot = "0.12.1"
591partial-json-fixer = "0.5.3"
592parse_int = "0.9"
593pciid-parser = "0.8.0"
594pathdiff = "0.2"
595pet = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da" }
596pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da" }
597pet-core = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da" }
598pet-fs = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da" }
599pet-poetry = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da" }
600pet-reporter = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da" }
601pet-virtualenv = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da" }
602portable-pty = "0.9.0"
603postage = { version = "0.5", features = ["futures-traits"] }
604pretty_assertions = { version = "1.3.0", features = ["unstable"] }
605proc-macro2 = "1.0.93"
606profiling = "1"
607prost = "0.9"
608prost-build = "0.9"
609prost-types = "0.9"
610pulldown-cmark = { version = "0.13.0", default-features = false }
611quote = "1.0.9"
612rand = "0.9"
613rayon = "1.8"
614regex = "1.5"
615# WARNING: If you change this, you must also publish a new version of zed-reqwest to crates.io
616reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "c15662463bda39148ba154100dd44d3fba5873a4", default-features = false, features = [
617    "charset",
618    "http2",
619    "macos-system-configuration",
620    "multipart",
621    "rustls-tls-native-roots",
622    "socks",
623    "stream",
624], package = "zed-reqwest", version = "0.12.15-zed" }
625rsa = "0.9.6"
626runtimelib = { version = "0.30.0", default-features = false, features = [
627    "async-dispatcher-runtime", "aws-lc-rs"
628] }
629rust-embed = { version = "8.4", features = ["include-exclude"] }
630rustc-hash = "2.1.0"
631rustls = { version = "0.23.26" }
632rustls-platform-verifier = "0.5.0"
633# WARNING: If you change this, you must also publish a new version of zed-scap to crates.io
634scap = { git = "https://github.com/zed-industries/scap", rev = "4afea48c3b002197176fb19cd0f9b180dd36eaac", default-features = false, package = "zed-scap", version = "0.0.8-zed" }
635schemars = { version = "1.0", features = ["indexmap2"] }
636semver = { version = "1.0", features = ["serde"] }
637serde = { version = "1.0.221", features = ["derive", "rc"] }
638serde_json = { version = "1.0.144", features = ["preserve_order", "raw_value"] }
639serde_json_lenient = { version = "0.2", features = [
640    "preserve_order",
641    "raw_value",
642] }
643serde_path_to_error = "0.1.17"
644serde_repr = "0.1"
645serde_urlencoded = "0.7"
646sha2 = "0.10"
647shellexpand = "2.1.0"
648shlex = "1.3.0"
649simplelog = "0.12.2"
650slotmap = "1.0.6"
651smallvec = { version = "1.6", features = ["union", "const_new"] }
652smol = "2.0"
653sqlformat = "0.2"
654stacksafe = "0.1"
655streaming-iterator = "0.1"
656strsim = "0.11"
657strum = { version = "0.27.2", features = ["derive"] }
658subtle = "2.5.0"
659syn = { version = "2.0.101", features = ["full", "extra-traits", "visit-mut"] }
660sys-locale = "0.3.1"
661sysinfo = "0.37.0"
662take-until = "0.2.0"
663tempfile = "3.20.0"
664thiserror = "2.0.12"
665tiktoken-rs = { git = "https://github.com/zed-industries/tiktoken-rs", rev = "2570c4387a8505fb8f1d3f3557454b474f1e8271" }
666time = { version = "0.3", features = [
667    "macros",
668    "parsing",
669    "serde",
670    "serde-well-known",
671    "formatting",
672    "local-offset",
673] }
674tiny_http = "0.8"
675tokio = { version = "1" }
676tokio-tungstenite = { version = "0.26", features = ["__rustls-tls"] }
677tokio-socks = { version = "0.5.2", default-features = false, features = ["futures-io", "tokio"] }
678toml = "0.8"
679toml_edit = { version = "0.22", default-features = false, features = ["display", "parse", "serde"] }
680tower-http = "0.4.4"
681tree-sitter = { version = "0.26", features = ["wasm"] }
682tree-sitter-bash = "0.25.1"
683tree-sitter-c = "0.23"
684tree-sitter-cpp = { git = "https://github.com/tree-sitter/tree-sitter-cpp", rev = "5cb9b693cfd7bfacab1d9ff4acac1a4150700609" }
685tree-sitter-css = "0.23"
686tree-sitter-diff = "0.1.0"
687tree-sitter-elixir = "0.3"
688tree-sitter-embedded-template = "0.23.0"
689tree-sitter-gitcommit = { git = "https://github.com/zed-industries/tree-sitter-git-commit", rev = "88309716a69dd13ab83443721ba6e0b491d37ee9" }
690tree-sitter-go = "0.23"
691tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "2e886870578eeba1927a2dc4bd2e2b3f598c5f9a", package = "tree-sitter-gomod" }
692tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
693tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
694tree-sitter-html = "0.23"
695tree-sitter-jsdoc = "0.23"
696tree-sitter-json = "0.24"
697tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
698tree-sitter-python = "0.25"
699tree-sitter-regex = "0.24"
700tree-sitter-ruby = "0.23"
701tree-sitter-rust = "0.24"
702tree-sitter-typescript = { git = "https://github.com/zed-industries/tree-sitter-typescript", rev = "e2c53597d6a5d9cf7bbe8dccde576fe1e46c5899" } # https://github.com/tree-sitter/tree-sitter-typescript/pull/347
703tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
704tracing = "0.1.40"
705unicase = "2.6"
706unicode-script = "0.5.7"
707unicode-segmentation = "1.10"
708unindent = "0.2.0"
709url = "2.2"
710urlencoding = "2.1.2"
711uuid = { version = "1.1.2", features = ["v4", "v5", "v7", "serde"] }
712walkdir = "2.5"
713wasm-encoder = "0.221"
714wasmparser = "0.221"
715wasmtime = { version = "33", default-features = false, features = [
716    "async",
717    "demangle",
718    "runtime",
719    "cranelift",
720    "component-model",
721    "incremental-cache",
722    "parallel-compilation",
723] }
724wasmtime-wasi = "33"
725wax = "0.6"
726which = "6.0.0"
727windows-core = "0.61"
728yawc = "0.2.5"
729zeroize = "1.8"
730zstd = "0.11"
731
732
733[workspace.dependencies.windows]
734version = "0.61"
735features = [
736    "Foundation_Numerics",
737    "Storage_Search",
738    "Storage_Streams",
739    "System_Threading",
740    "UI_ViewManagement",
741    "Wdk_System_SystemServices",
742    "Win32_Globalization",
743    "Win32_Graphics_Direct3D",
744    "Win32_Graphics_Direct3D11",
745    "Win32_Graphics_Direct3D_Fxc",
746    "Win32_Graphics_DirectComposition",
747    "Win32_Graphics_DirectWrite",
748    "Win32_Graphics_Dwm",
749    "Win32_Graphics_Dxgi",
750    "Win32_Graphics_Dxgi_Common",
751    "Win32_Graphics_Gdi",
752    "Win32_Graphics_Imaging",
753    "Win32_Graphics_Hlsl",
754    "Win32_Networking_WinSock",
755    "Win32_Security",
756    "Win32_Security_Credentials",
757    "Win32_Security_Cryptography",
758    "Win32_Storage_FileSystem",
759    "Win32_System_Com",
760    "Win32_System_Com_StructuredStorage",
761    "Win32_System_Console",
762    "Win32_System_DataExchange",
763    "Win32_System_IO",
764    "Win32_System_LibraryLoader",
765    "Win32_System_Memory",
766    "Win32_System_Ole",
767    "Win32_System_Performance",
768    "Win32_System_Pipes",
769    "Win32_System_SystemInformation",
770    "Win32_System_SystemServices",
771    "Win32_System_Threading",
772    "Win32_System_Variant",
773    "Win32_System_WinRT",
774    "Win32_UI_Controls",
775    "Win32_UI_HiDpi",
776    "Win32_UI_Input_Ime",
777    "Win32_UI_Input_KeyboardAndMouse",
778    "Win32_UI_Shell",
779    "Win32_UI_Shell_Common",
780    "Win32_UI_Shell_PropertiesSystem",
781    "Win32_UI_WindowsAndMessaging",
782]
783
784[patch.crates-io]
785notify = { git = "https://github.com/zed-industries/notify.git", rev = "b4588b2e5aee68f4c0e100f140e808cbce7b1419" }
786notify-types = { git = "https://github.com/zed-industries/notify.git", rev = "b4588b2e5aee68f4c0e100f140e808cbce7b1419" }
787windows-capture = { git = "https://github.com/zed-industries/windows-capture.git", rev = "f0d6c1b6691db75461b732f6d5ff56eed002eeb9" }
788calloop = { git = "https://github.com/zed-industries/calloop" }
789
790[profile.dev]
791split-debuginfo = "unpacked"
792# https://github.com/rust-lang/cargo/issues/16104
793incremental = false
794codegen-units = 16
795
796# mirror configuration for crates compiled for the build platform
797# (without this cargo will compile ~400 crates twice)
798[profile.dev.build-override]
799codegen-units = 16
800
801[profile.dev.package]
802# proc-macros start
803gpui_macros = { opt-level = 3 }
804derive_refineable = { opt-level = 3 }
805settings_macros = { opt-level = 3 }
806sqlez_macros = { opt-level = 3, codegen-units = 1 }
807ui_macros = { opt-level = 3 }
808util_macros = { opt-level = 3 }
809quote = { opt-level = 3 }
810syn = { opt-level = 3 }
811proc-macro2 = { opt-level = 3 }
812# proc-macros end
813
814taffy = { opt-level = 3 }
815resvg = { opt-level = 3 }
816wasmtime = { opt-level = 3 }
817# Build single-source-file crates with cg=1 as it helps make `cargo build` of a whole workspace a bit faster
818activity_indicator = { codegen-units = 1 }
819assets = { codegen-units = 1 }
820breadcrumbs = { codegen-units = 1 }
821collections = { codegen-units = 1 }
822command_palette = { codegen-units = 1 }
823command_palette_hooks = { codegen-units = 1 }
824feature_flags = { codegen-units = 1 }
825file_icons = { codegen-units = 1 }
826fsevent = { codegen-units = 1 }
827image_viewer = { codegen-units = 1 }
828edit_prediction_ui = { codegen-units = 1 }
829install_cli = { codegen-units = 1 }
830journal = { codegen-units = 1 }
831json_schema_store = { codegen-units = 1 }
832lmstudio = { codegen-units = 1 }
833menu = { codegen-units = 1 }
834notifications = { codegen-units = 1 }
835ollama = { codegen-units = 1 }
836outline = { codegen-units = 1 }
837paths = { codegen-units = 1 }
838prettier = { codegen-units = 1 }
839project_symbols = { codegen-units = 1 }
840refineable = { codegen-units = 1 }
841release_channel = { codegen-units = 1 }
842reqwest_client = { codegen-units = 1 }
843session = { codegen-units = 1 }
844snippet = { codegen-units = 1 }
845snippets_ui = { codegen-units = 1 }
846story = { codegen-units = 1 }
847supermaven_api = { codegen-units = 1 }
848telemetry_events = { codegen-units = 1 }
849theme_selector = { codegen-units = 1 }
850time_format = { codegen-units = 1 }
851ui_input = { codegen-units = 1 }
852zed_actions = { codegen-units = 1 }
853
854[profile.release]
855debug = "limited"
856lto = "thin"
857codegen-units = 1
858
859[profile.release.package]
860zed = { codegen-units = 16 }
861
862[profile.release-fast]
863inherits = "release"
864debug = "full"
865lto = false
866codegen-units = 16
867
868[workspace.lints.rust]
869unexpected_cfgs = { level = "allow" }
870
871[workspace.lints.clippy]
872dbg_macro = "deny"
873todo = "deny"
874
875declare_interior_mutable_const = "deny"
876
877redundant_clone = "deny"
878disallowed_methods = "deny"
879
880# We currently do not restrict any style rules
881# as it slows down shipping code to Zed.
882#
883# Running ./script/clippy can take several minutes, and so it's
884# common to skip that step and let CI do it. Any unexpected failures
885# (which also take minutes to discover) thus require switching back
886# to an old branch, manual fixing, and re-pushing.
887#
888# In the future we could improve this by either making sure
889# Zed can surface clippy errors in diagnostics (in addition to the
890# rust-analyzer errors), or by having CI fix style nits automatically.
891style = { level = "allow", priority = -1 }
892
893# Individual rules that have violations in the codebase:
894type_complexity = "allow"
895let_underscore_future = "allow"
896
897# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
898# warning on this rule produces a lot of noise.
899single_range_in_vec_init = "allow"
900
901# in Rust it can be very tedious to reduce argument count without
902# running afoul of the borrow checker.
903too_many_arguments = "allow"
904
905# We often have large enum variants yet we rarely actually bother with splitting them up.
906large_enum_variant = "allow"
907
908# Boolean expressions can be hard to read, requiring only the minimal form gets in the way
909nonminimal_bool = "allow"
910
911[workspace.metadata.cargo-machete]
912ignored = [
913    "bindgen",
914    "cbindgen",
915    "prost_build",
916    "serde",
917    "component",
918    "documented",
919    "sea-orm-macros",
920]