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