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