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