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" }
280crossbeam = "0.8.4"
281dap = { path = "crates/dap" }
282dap_adapters = { path = "crates/dap_adapters" }
283db = { path = "crates/db" }
284debug_adapter_extension = { path = "crates/debug_adapter_extension" }
285debugger_tools = { path = "crates/debugger_tools" }
286debugger_ui = { path = "crates/debugger_ui" }
287deepseek = { path = "crates/deepseek" }
288diagnostics = { path = "crates/diagnostics" }
289editor = { path = "crates/editor" }
290extension = { path = "crates/extension" }
291extension_host = { path = "crates/extension_host" }
292extensions_ui = { path = "crates/extensions_ui" }
293feature_flags = { path = "crates/feature_flags" }
294feedback = { path = "crates/feedback" }
295file_finder = { path = "crates/file_finder" }
296file_icons = { path = "crates/file_icons" }
297fs = { path = "crates/fs" }
298fsevent = { path = "crates/fsevent" }
299fuzzy = { path = "crates/fuzzy" }
300git = { path = "crates/git" }
301git_hosting_providers = { path = "crates/git_hosting_providers" }
302git_ui = { path = "crates/git_ui" }
303go_to_line = { path = "crates/go_to_line" }
304google_ai = { path = "crates/google_ai" }
305gpui = { path = "crates/gpui", default-features = false }
306gpui_macros = { path = "crates/gpui_macros" }
307gpui_tokio = { path = "crates/gpui_tokio" }
308html_to_markdown = { path = "crates/html_to_markdown" }
309http_client = { path = "crates/http_client" }
310http_client_tls = { path = "crates/http_client_tls" }
311icons = { path = "crates/icons" }
312image_viewer = { path = "crates/image_viewer" }
313edit_prediction = { path = "crates/edit_prediction" }
314edit_prediction_button = { path = "crates/edit_prediction_button" }
315inspector_ui = { path = "crates/inspector_ui" }
316install_cli = { path = "crates/install_cli" }
317jj = { path = "crates/jj" }
318jj_ui = { path = "crates/jj_ui" }
319journal = { path = "crates/journal" }
320keymap_editor = { path = "crates/keymap_editor" }
321language = { path = "crates/language" }
322language_extension = { path = "crates/language_extension" }
323language_model = { path = "crates/language_model" }
324language_models = { path = "crates/language_models" }
325language_onboarding = { path = "crates/language_onboarding" }
326language_selector = { path = "crates/language_selector" }
327language_tools = { path = "crates/language_tools" }
328languages = { path = "crates/languages" }
329line_ending_selector = { path = "crates/line_ending_selector" }
330livekit_api = { path = "crates/livekit_api" }
331livekit_client = { path = "crates/livekit_client" }
332lmstudio = { path = "crates/lmstudio" }
333lsp = { path = "crates/lsp" }
334markdown = { path = "crates/markdown" }
335markdown_preview = { path = "crates/markdown_preview" }
336svg_preview = { path = "crates/svg_preview" }
337media = { path = "crates/media" }
338menu = { path = "crates/menu" }
339migrator = { path = "crates/migrator" }
340mistral = { path = "crates/mistral" }
341multi_buffer = { path = "crates/multi_buffer" }
342nc = { path = "crates/nc" }
343net = { path = "crates/net" }
344node_runtime = { path = "crates/node_runtime" }
345notifications = { path = "crates/notifications" }
346ollama = { path = "crates/ollama" }
347onboarding = { path = "crates/onboarding" }
348open_ai = { path = "crates/open_ai" }
349open_router = { path = "crates/open_router", features = ["schemars"] }
350outline = { path = "crates/outline" }
351outline_panel = { path = "crates/outline_panel" }
352panel = { path = "crates/panel" }
353paths = { path = "crates/paths" }
354picker = { path = "crates/picker" }
355plugin = { path = "crates/plugin" }
356plugin_macros = { path = "crates/plugin_macros" }
357prettier = { path = "crates/prettier" }
358settings_profile_selector = { path = "crates/settings_profile_selector" }
359project = { path = "crates/project" }
360project_panel = { path = "crates/project_panel" }
361project_symbols = { path = "crates/project_symbols" }
362prompt_store = { path = "crates/prompt_store" }
363proto = { path = "crates/proto" }
364recent_projects = { path = "crates/recent_projects" }
365refineable = { path = "crates/refineable" }
366release_channel = { path = "crates/release_channel" }
367scheduler = { path = "crates/scheduler" }
368remote = { path = "crates/remote" }
369remote_server = { path = "crates/remote_server" }
370repl = { path = "crates/repl" }
371reqwest_client = { path = "crates/reqwest_client" }
372rich_text = { path = "crates/rich_text" }
373rodio = { git = "https://github.com/RustAudio/rodio", branch = "better_wav_output"}
374rope = { path = "crates/rope" }
375rpc = { path = "crates/rpc" }
376rules_library = { path = "crates/rules_library" }
377search = { path = "crates/search" }
378semantic_version = { path = "crates/semantic_version" }
379session = { path = "crates/session" }
380settings = { path = "crates/settings" }
381settings_ui = { path = "crates/settings_ui" }
382settings_ui_macros = { path = "crates/settings_ui_macros" }
383snippet = { path = "crates/snippet" }
384snippet_provider = { path = "crates/snippet_provider" }
385snippets_ui = { path = "crates/snippets_ui" }
386sqlez = { path = "crates/sqlez" }
387sqlez_macros = { path = "crates/sqlez_macros" }
388story = { path = "crates/story" }
389storybook = { path = "crates/storybook" }
390streaming_diff = { path = "crates/streaming_diff" }
391sum_tree = { path = "crates/sum_tree" }
392supermaven = { path = "crates/supermaven" }
393supermaven_api = { path = "crates/supermaven_api" }
394system_specs = { path = "crates/system_specs" }
395tab_switcher = { path = "crates/tab_switcher" }
396task = { path = "crates/task" }
397tasks_ui = { path = "crates/tasks_ui" }
398telemetry = { path = "crates/telemetry" }
399telemetry_events = { path = "crates/telemetry_events" }
400terminal = { path = "crates/terminal" }
401terminal_view = { path = "crates/terminal_view" }
402text = { path = "crates/text" }
403theme = { path = "crates/theme" }
404theme_extension = { path = "crates/theme_extension" }
405theme_importer = { path = "crates/theme_importer" }
406theme_selector = { path = "crates/theme_selector" }
407time_format = { path = "crates/time_format" }
408title_bar = { path = "crates/title_bar" }
409toolchain_selector = { path = "crates/toolchain_selector" }
410ui = { path = "crates/ui" }
411ui_input = { path = "crates/ui_input" }
412ui_macros = { path = "crates/ui_macros" }
413ui_prompt = { path = "crates/ui_prompt" }
414util = { path = "crates/util" }
415util_macros = { path = "crates/util_macros" }
416vercel = { path = "crates/vercel" }
417vim = { path = "crates/vim" }
418vim_mode_setting = { path = "crates/vim_mode_setting" }
419
420watch = { path = "crates/watch" }
421web_search = { path = "crates/web_search" }
422web_search_providers = { path = "crates/web_search_providers" }
423workspace = { path = "crates/workspace" }
424worktree = { path = "crates/worktree" }
425x_ai = { path = "crates/x_ai" }
426zed = { path = "crates/zed" }
427zed_actions = { path = "crates/zed_actions" }
428zed_env_vars = { path = "crates/zed_env_vars" }
429zeta = { path = "crates/zeta" }
430zlog = { path = "crates/zlog" }
431zlog_settings = { path = "crates/zlog_settings" }
432
433#
434# External crates
435#
436
437agent-client-protocol = { version = "0.2.1", features = ["unstable"] }
438aho-corasick = "1.1"
439alacritty_terminal = { git = "https://github.com/zed-industries/alacritty.git", branch = "add-hush-login-flag" }
440any_vec = "0.14"
441anyhow = "1.0.86"
442arrayvec = { version = "0.7.4", features = ["serde"] }
443ashpd = { version = "0.11", default-features = false, features = ["async-std"] }
444async-compat = "0.2.1"
445async-compression = { version = "0.4", features = ["gzip", "futures-io"] }
446async-dispatcher = "0.1"
447async-fs = "2.1"
448async-pipe = { git = "https://github.com/zed-industries/async-pipe-rs", rev = "82d00a04211cf4e1236029aa03e6b6ce2a74c553" }
449async-recursion = "1.0.0"
450async-tar = "0.5.0"
451async-task = "4.7"
452async-trait = "0.1"
453async-tungstenite = "0.29.1"
454async_zip = { version = "0.0.17", features = ["deflate", "deflate64"] }
455aws-config = { version = "1.6.1", features = ["behavior-version-latest"] }
456aws-credential-types = { version = "1.2.2", features = [
457    "hardcoded-credentials",
458] }
459aws-sdk-bedrockruntime = { version = "1.80.0", features = [
460    "behavior-version-latest",
461] }
462aws-smithy-runtime-api = { version = "1.7.4", features = ["http-1x", "client"] }
463aws-smithy-types = { version = "1.3.0", features = ["http-body-1-x"] }
464backtrace = "0.3"
465base64 = "0.22"
466bincode = "1.2.1"
467bitflags = "2.6.0"
468blade-graphics = { git = "https://github.com/kvark/blade", rev = "bfa594ea697d4b6326ea29f747525c85ecf933b9" }
469blade-macros = { git = "https://github.com/kvark/blade", rev = "bfa594ea697d4b6326ea29f747525c85ecf933b9" }
470blade-util = { git = "https://github.com/kvark/blade", rev = "bfa594ea697d4b6326ea29f747525c85ecf933b9" }
471blake3 = "1.5.3"
472bytes = "1.0"
473cargo_metadata = "0.19"
474cargo_toml = "0.21"
475cfg-if = "1.0.3"
476chrono = { version = "0.4", features = ["serde"] }
477ciborium = "0.2"
478circular-buffer = "1.0"
479clap = { version = "4.4", features = ["derive"] }
480cocoa = "0.26"
481cocoa-foundation = "0.2.0"
482convert_case = "0.8.0"
483core-foundation = "0.10.0"
484core-foundation-sys = "0.8.6"
485core-video = { version = "0.4.3", features = ["metal"] }
486cpal = "0.16"
487crash-handler = "0.6"
488criterion = { version = "0.5", features = ["html_reports"] }
489ctor = "0.4.0"
490dap-types = { git = "https://github.com/zed-industries/dap-types", rev = "1b461b310481d01e02b2603c16d7144b926339f8" }
491dashmap = "6.0"
492derive_more = "0.99.17"
493dirs = "4.0"
494documented = "0.9.1"
495dotenvy = "0.15.0"
496ec4rs = "1.1"
497emojis = "0.6.1"
498env_logger = "0.11"
499exec = "0.3.1"
500fancy-regex = "0.14.0"
501fork = "0.2.0"
502futures = "0.3"
503futures-batch = "0.6.1"
504futures-lite = "1.13"
505git2 = { version = "0.20.1", default-features = false }
506globset = "0.4"
507handlebars = "4.3"
508heck = "0.5"
509heed = { version = "0.21.0", features = ["read-txn-no-tls"] }
510hex = "0.4.3"
511human_bytes = "0.4.1"
512html5ever = "0.27.0"
513http = "1.1"
514http-body = "1.0"
515hyper = "0.14"
516ignore = "0.4.22"
517image = "0.25.1"
518imara-diff = "0.1.8"
519indexmap = { version = "2.7.0", features = ["serde"] }
520indoc = "2"
521inventory = "0.3.19"
522itertools = "0.14.0"
523jj-lib = { git = "https://github.com/jj-vcs/jj", rev = "e18eb8e05efaa153fad5ef46576af145bba1807f" }
524json_dotpath = "1.1"
525jsonschema = "0.30.0"
526jsonwebtoken = "9.3"
527jupyter-protocol = { git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
528jupyter-websocket-client = {  git = "https://github.com/ConradIrwin/runtimed" ,rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
529libc = "0.2"
530libsqlite3-sys = { version = "0.30.1", features = ["bundled"] }
531linkify = "0.10.0"
532log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
533lsp-types = { git = "https://github.com/zed-industries/lsp-types", rev = "0874f8742fe55b4dc94308c1e3c0069710d8eeaf" }
534mach2 = "0.5"
535markup5ever_rcdom = "0.3.0"
536metal = "0.29"
537minidumper = "0.8"
538moka = { version = "0.12.10", features = ["sync"] }
539naga = { version = "25.0", features = ["wgsl-in"] }
540nanoid = "0.4"
541nbformat = {  git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
542nix = "0.29"
543num-format = "0.4.4"
544objc = "0.2"
545objc2-foundation = { version = "0.3", default-features = false, features = [
546    "NSArray",
547    "NSAttributedString",
548    "NSBundle",
549    "NSCoder",
550    "NSData",
551    "NSDate",
552    "NSDictionary",
553    "NSEnumerator",
554    "NSError",
555    "NSGeometry",
556    "NSNotification",
557    "NSNull",
558    "NSObjCRuntime",
559    "NSObject",
560    "NSProcessInfo",
561    "NSRange",
562    "NSRunLoop",
563    "NSString",
564    "NSURL",
565    "NSUndoManager",
566    "NSValue",
567    "objc2-core-foundation",
568    "std"
569] }
570open = "5.0.0"
571ordered-float = "2.1.1"
572palette = { version = "0.7.5", default-features = false, features = ["std"] }
573parking_lot = "0.12.1"
574partial-json-fixer = "0.5.3"
575parse_int = "0.9"
576pciid-parser = "0.8.0"
577pathdiff = "0.2"
578pet = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
579pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
580pet-core = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
581pet-fs = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
582pet-pixi = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
583pet-poetry = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
584pet-reporter = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
585portable-pty = "0.9.0"
586postage = { version = "0.5", features = ["futures-traits"] }
587pretty_assertions = { version = "1.3.0", features = ["unstable"] }
588proc-macro2 = "1.0.93"
589profiling = "1"
590prost = "0.9"
591prost-build = "0.9"
592prost-types = "0.9"
593pulldown-cmark = { version = "0.12.0", default-features = false }
594quote = "1.0.9"
595rand = "0.9"
596rayon = "1.8"
597ref-cast = "1.0.24"
598regex = "1.5"
599reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "951c770a32f1998d6e999cef3e59e0013e6c4415", default-features = false, features = [
600    "charset",
601    "http2",
602    "macos-system-configuration",
603    "multipart",
604    "rustls-tls-native-roots",
605    "socks",
606    "stream",
607] }
608rsa = "0.9.6"
609runtimelib = {  git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734", default-features = false, features = [
610    "async-dispatcher-runtime",
611] }
612rust-embed = { version = "8.4", features = ["include-exclude"] }
613rustc-demangle = "0.1.23"
614rustc-hash = "2.1.0"
615rustls = { version = "0.23.26" }
616rustls-platform-verifier = "0.5.0"
617scap = { git = "https://github.com/zed-industries/scap", rev = "808aa5c45b41e8f44729d02e38fd00a2fe2722e7", default-features = false }
618schemars = { version = "1.0", features = ["indexmap2"] }
619semver = "1.0"
620serde = { version = "1.0", features = ["derive", "rc"] }
621serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
622serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
623serde_json_lenient = { version = "0.2", features = [
624    "preserve_order",
625    "raw_value",
626] }
627serde_path_to_error = "0.1.17"
628serde_repr = "0.1"
629serde_urlencoded = "0.7"
630sha2 = "0.10"
631shellexpand = "2.1.0"
632shlex = "1.3.0"
633simplelog = "0.12.2"
634smallvec = { version = "1.6", features = ["union"] }
635smol = "2.0"
636sqlformat = "0.2"
637stacksafe = "0.1"
638streaming-iterator = "0.1"
639strsim = "0.11"
640strum = { version = "0.27.0", features = ["derive"] }
641subtle = "2.5.0"
642syn = { version = "2.0.101", features = ["full", "extra-traits"] }
643sys-locale = "0.3.1"
644sysinfo = "0.31.0"
645take-until = "0.2.0"
646tempfile = "3.20.0"
647thiserror = "2.0.12"
648tiktoken-rs = { git = "https://github.com/zed-industries/tiktoken-rs", rev = "30c32a4522751699adeda0d5840c71c3b75ae73d" }
649time = { version = "0.3", features = [
650    "macros",
651    "parsing",
652    "serde",
653    "serde-well-known",
654    "formatting",
655] }
656tiny_http = "0.8"
657tokio = { version = "1" }
658tokio-tungstenite = { version = "0.26", features = ["__rustls-tls"] }
659toml = "0.8"
660tower-http = "0.4.4"
661tree-sitter = { version = "0.25.6", features = ["wasm"] }
662tree-sitter-bash = "0.25.0"
663tree-sitter-c = "0.23"
664tree-sitter-cpp = { git = "https://github.com/tree-sitter/tree-sitter-cpp", rev = "5cb9b693cfd7bfacab1d9ff4acac1a4150700609" }
665tree-sitter-css = "0.23"
666tree-sitter-diff = "0.1.0"
667tree-sitter-elixir = "0.3"
668tree-sitter-embedded-template = "0.23.0"
669tree-sitter-gitcommit = { git = "https://github.com/zed-industries/tree-sitter-git-commit", rev = "88309716a69dd13ab83443721ba6e0b491d37ee9" }
670tree-sitter-go = "0.23"
671tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c", package = "tree-sitter-gomod" }
672tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
673tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
674tree-sitter-html = "0.23"
675tree-sitter-jsdoc = "0.23"
676tree-sitter-json = "0.24"
677tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
678tree-sitter-python = { git = "https://github.com/zed-industries/tree-sitter-python", rev = "218fcbf3fda3d029225f3dec005cb497d111b35e" }
679tree-sitter-regex = "0.24"
680tree-sitter-ruby = "0.23"
681tree-sitter-rust = "0.24"
682tree-sitter-typescript = "0.23"
683tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
684unicase = "2.6"
685unicode-script = "0.5.7"
686unicode-segmentation = "1.10"
687unindent = "0.2.0"
688url = "2.2"
689urlencoding = "2.1.2"
690uuid = { version = "1.1.2", features = ["v4", "v5", "v7", "serde"] }
691walkdir = "2.5"
692wasm-encoder = "0.221"
693wasmparser = "0.221"
694wasmtime = { version = "29", default-features = false, features = [
695    "async",
696    "demangle",
697    "runtime",
698    "cranelift",
699    "component-model",
700    "incremental-cache",
701    "parallel-compilation",
702] }
703wasmtime-wasi = "29"
704which = "6.0.0"
705windows-core = "0.61"
706wit-component = "0.221"
707workspace-hack = "0.1.0"
708yawc = "0.2.5"
709zstd = "0.11"
710
711[workspace.dependencies.windows]
712version = "0.61"
713features = [
714    "Foundation_Numerics",
715    "Storage_Search",
716    "Storage_Streams",
717    "System_Threading",
718    "UI_ViewManagement",
719    "Wdk_System_SystemServices",
720    "Win32_Globalization",
721    "Win32_Graphics_Direct3D",
722    "Win32_Graphics_Direct3D11",
723    "Win32_Graphics_Direct3D_Fxc",
724    "Win32_Graphics_DirectComposition",
725    "Win32_Graphics_DirectWrite",
726    "Win32_Graphics_Dwm",
727    "Win32_Graphics_Dxgi",
728    "Win32_Graphics_Dxgi_Common",
729    "Win32_Graphics_Gdi",
730    "Win32_Graphics_Imaging",
731    "Win32_Graphics_Hlsl",
732    "Win32_Networking_WinSock",
733    "Win32_Security",
734    "Win32_Security_Credentials",
735    "Win32_Storage_FileSystem",
736    "Win32_System_Com",
737    "Win32_System_Com_StructuredStorage",
738    "Win32_System_Console",
739    "Win32_System_DataExchange",
740    "Win32_System_IO",
741    "Win32_System_LibraryLoader",
742    "Win32_System_Memory",
743    "Win32_System_Ole",
744    "Win32_System_Performance",
745    "Win32_System_Pipes",
746    "Win32_System_SystemInformation",
747    "Win32_System_SystemServices",
748    "Win32_System_Threading",
749    "Win32_System_Variant",
750    "Win32_System_WinRT",
751    "Win32_UI_Controls",
752    "Win32_UI_HiDpi",
753    "Win32_UI_Input_Ime",
754    "Win32_UI_Input_KeyboardAndMouse",
755    "Win32_UI_Shell",
756    "Win32_UI_Shell_Common",
757    "Win32_UI_Shell_PropertiesSystem",
758    "Win32_UI_WindowsAndMessaging",
759]
760
761[patch.crates-io]
762notify = { git = "https://github.com/zed-industries/notify.git", rev = "bbb9ea5ae52b253e095737847e367c30653a2e96" }
763notify-types = { git = "https://github.com/zed-industries/notify.git", rev = "bbb9ea5ae52b253e095737847e367c30653a2e96" }
764windows-capture = { git = "https://github.com/zed-industries/windows-capture.git", rev = "f0d6c1b6691db75461b732f6d5ff56eed002eeb9" }
765
766# Makes the workspace hack crate refer to the local one, but only when you're building locally
767workspace-hack = { path = "tooling/workspace-hack" }
768
769[profile.dev]
770split-debuginfo = "unpacked"
771codegen-units = 16
772
773# mirror configuration for crates compiled for the build platform
774# (without this cargo will compile ~400 crates twice)
775[profile.dev.build-override]
776codegen-units = 16
777
778[profile.dev.package]
779taffy = { opt-level = 3 }
780cranelift-codegen = { opt-level = 3 }
781cranelift-codegen-meta = { opt-level = 3 }
782cranelift-codegen-shared = { opt-level = 3 }
783resvg = { opt-level = 3 }
784rustybuzz = { opt-level = 3 }
785ttf-parser = { opt-level = 3 }
786wasmtime-cranelift = { opt-level = 3 }
787wasmtime = { opt-level = 3 }
788# Build single-source-file crates with cg=1 as it helps make `cargo build` of a whole workspace a bit faster
789activity_indicator = { codegen-units = 1 }
790assets = { codegen-units = 1 }
791breadcrumbs = { codegen-units = 1 }
792collections = { codegen-units = 1 }
793command_palette = { codegen-units = 1 }
794command_palette_hooks = { codegen-units = 1 }
795extension_cli = { codegen-units = 1 }
796feature_flags = { codegen-units = 1 }
797file_icons = { codegen-units = 1 }
798fsevent = { codegen-units = 1 }
799image_viewer = { codegen-units = 1 }
800edit_prediction_button = { codegen-units = 1 }
801install_cli = { codegen-units = 1 }
802journal = { codegen-units = 1 }
803lmstudio = { codegen-units = 1 }
804menu = { codegen-units = 1 }
805notifications = { codegen-units = 1 }
806ollama = { codegen-units = 1 }
807outline = { codegen-units = 1 }
808paths = { codegen-units = 1 }
809prettier = { codegen-units = 1 }
810project_symbols = { codegen-units = 1 }
811refineable = { codegen-units = 1 }
812release_channel = { codegen-units = 1 }
813reqwest_client = { codegen-units = 1 }
814rich_text = { codegen-units = 1 }
815semantic_version = { codegen-units = 1 }
816session = { codegen-units = 1 }
817snippet = { codegen-units = 1 }
818snippets_ui = { codegen-units = 1 }
819sqlez_macros = { codegen-units = 1 }
820story = { codegen-units = 1 }
821supermaven_api = { codegen-units = 1 }
822telemetry_events = { codegen-units = 1 }
823theme_selector = { codegen-units = 1 }
824time_format = { codegen-units = 1 }
825ui_input = { codegen-units = 1 }
826zed_actions = { codegen-units = 1 }
827
828[profile.release]
829debug = "limited"
830lto = "thin"
831codegen-units = 1
832
833[profile.release.package]
834zed = { codegen-units = 16 }
835
836[profile.release-fast]
837inherits = "release"
838debug = "full"
839lto = false
840codegen-units = 16
841
842[workspace.lints.rust]
843unexpected_cfgs = { level = "allow" }
844
845[workspace.lints.clippy]
846dbg_macro = "deny"
847todo = "deny"
848
849# This is not a style lint, see https://github.com/rust-lang/rust-clippy/pull/15454
850# Remove when the lint gets promoted to `suspicious`.
851declare_interior_mutable_const = "deny"
852
853redundant_clone = "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    "workspace-hack",
895]