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