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