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