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