Cargo.toml

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