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