Cargo.toml

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