Cargo.toml

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