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