Cargo.toml

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