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