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