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