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/indexed_docs",
 85    "crates/edit_prediction",
 86    "crates/edit_prediction_button",
 87    "crates/inspector_ui",
 88    "crates/install_cli",
 89    "crates/jj",
 90    "crates/jj_ui",
 91    "crates/journal",
 92    "crates/language",
 93    "crates/language_extension",
 94    "crates/language_model",
 95    "crates/language_models",
 96    "crates/language_selector",
 97    "crates/language_tools",
 98    "crates/languages",
 99    "crates/livekit_api",
100    "crates/livekit_client",
101    "crates/lmstudio",
102    "crates/lsp",
103    "crates/markdown",
104    "crates/markdown_preview",
105    "crates/media",
106    "crates/menu",
107    "crates/migrator",
108    "crates/mistral",
109    "crates/multi_buffer",
110    "crates/nc",
111    "crates/net",
112    "crates/node_runtime",
113    "crates/notifications",
114    "crates/ollama",
115    "crates/onboarding",
116    "crates/open_ai",
117    "crates/open_router",
118    "crates/outline",
119    "crates/outline_panel",
120    "crates/panel",
121    "crates/paths",
122    "crates/picker",
123    "crates/prettier",
124    "crates/project",
125    "crates/project_panel",
126    "crates/project_symbols",
127    "crates/prompt_store",
128    "crates/proto",
129    "crates/recent_projects",
130    "crates/refineable",
131    "crates/refineable/derive_refineable",
132    "crates/release_channel",
133    "crates/remote",
134    "crates/remote_server",
135    "crates/repl",
136    "crates/reqwest_client",
137    "crates/rich_text",
138    "crates/rope",
139    "crates/rpc",
140    "crates/rules_library",
141    "crates/schema_generator",
142    "crates/search",
143    "crates/semantic_index",
144    "crates/semantic_version",
145    "crates/session",
146    "crates/settings",
147    "crates/settings_profile_selector",
148    "crates/settings_ui",
149    "crates/snippet",
150    "crates/snippet_provider",
151    "crates/snippets_ui",
152    "crates/sqlez",
153    "crates/sqlez_macros",
154    "crates/story",
155    "crates/storybook",
156    "crates/streaming_diff",
157    "crates/sum_tree",
158    "crates/supermaven",
159    "crates/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/emmet",
203    "extensions/glsl",
204    "extensions/html",
205    "extensions/proto",
206    "extensions/ruff",
207    "extensions/slash-commands-example",
208    "extensions/snippets",
209    "extensions/test-extension",
210    "extensions/toml",
211
212    #
213    # Tooling
214    #
215
216    "tooling/workspace-hack",
217    "tooling/xtask",
218]
219default-members = ["crates/zed"]
220
221[workspace.package]
222publish = false
223edition = "2024"
224
225[workspace.dependencies]
226
227#
228# Workspace member crates
229#
230
231acp_thread = { path = "crates/acp_thread" }
232action_log = { path = "crates/action_log" }
233agent = { path = "crates/agent" }
234agent2 = { path = "crates/agent2" }
235activity_indicator = { path = "crates/activity_indicator" }
236agent_ui = { path = "crates/agent_ui" }
237agent_settings = { path = "crates/agent_settings" }
238agent_servers = { path = "crates/agent_servers" }
239ai = { path = "crates/ai" }
240ai_onboarding = { path = "crates/ai_onboarding" }
241anthropic = { path = "crates/anthropic" }
242askpass = { path = "crates/askpass" }
243assets = { path = "crates/assets" }
244assistant_context = { path = "crates/assistant_context" }
245assistant_slash_command = { path = "crates/assistant_slash_command" }
246assistant_slash_commands = { path = "crates/assistant_slash_commands" }
247assistant_tool = { path = "crates/assistant_tool" }
248assistant_tools = { path = "crates/assistant_tools" }
249audio = { path = "crates/audio" }
250auto_update = { path = "crates/auto_update" }
251auto_update_helper = { path = "crates/auto_update_helper" }
252auto_update_ui = { path = "crates/auto_update_ui" }
253aws_http_client = { path = "crates/aws_http_client" }
254bedrock = { path = "crates/bedrock" }
255breadcrumbs = { path = "crates/breadcrumbs" }
256buffer_diff = { path = "crates/buffer_diff" }
257call = { path = "crates/call" }
258channel = { path = "crates/channel" }
259cli = { path = "crates/cli" }
260client = { path = "crates/client" }
261clock = { path = "crates/clock" }
262cloud_api_client = { path = "crates/cloud_api_client" }
263cloud_api_types = { path = "crates/cloud_api_types" }
264cloud_llm_client = { path = "crates/cloud_llm_client" }
265collab = { path = "crates/collab" }
266collab_ui = { path = "crates/collab_ui" }
267collections = { path = "crates/collections" }
268command_palette = { path = "crates/command_palette" }
269command_palette_hooks = { path = "crates/command_palette_hooks" }
270component = { path = "crates/component" }
271context_server = { path = "crates/context_server" }
272copilot = { path = "crates/copilot" }
273crashes = { path = "crates/crashes" }
274credentials_provider = { path = "crates/credentials_provider" }
275dap = { path = "crates/dap" }
276dap_adapters = { path = "crates/dap_adapters" }
277db = { path = "crates/db" }
278debug_adapter_extension = { path = "crates/debug_adapter_extension" }
279debugger_tools = { path = "crates/debugger_tools" }
280debugger_ui = { path = "crates/debugger_ui" }
281deepseek = { path = "crates/deepseek" }
282diagnostics = { path = "crates/diagnostics" }
283editor = { path = "crates/editor" }
284extension = { path = "crates/extension" }
285extension_host = { path = "crates/extension_host" }
286extensions_ui = { path = "crates/extensions_ui" }
287feature_flags = { path = "crates/feature_flags" }
288feedback = { path = "crates/feedback" }
289file_finder = { path = "crates/file_finder" }
290file_icons = { path = "crates/file_icons" }
291fs = { path = "crates/fs" }
292fsevent = { path = "crates/fsevent" }
293fuzzy = { path = "crates/fuzzy" }
294git = { path = "crates/git" }
295git_hosting_providers = { path = "crates/git_hosting_providers" }
296git_ui = { path = "crates/git_ui" }
297go_to_line = { path = "crates/go_to_line" }
298google_ai = { path = "crates/google_ai" }
299gpui = { path = "crates/gpui", default-features = false, features = [
300    "http_client",
301] }
302gpui_macros = { path = "crates/gpui_macros" }
303gpui_tokio = { path = "crates/gpui_tokio" }
304html_to_markdown = { path = "crates/html_to_markdown" }
305http_client = { path = "crates/http_client" }
306http_client_tls = { path = "crates/http_client_tls" }
307icons = { path = "crates/icons" }
308image_viewer = { path = "crates/image_viewer" }
309indexed_docs = { path = "crates/indexed_docs" }
310edit_prediction = { path = "crates/edit_prediction" }
311edit_prediction_button = { path = "crates/edit_prediction_button" }
312inspector_ui = { path = "crates/inspector_ui" }
313install_cli = { path = "crates/install_cli" }
314jj = { path = "crates/jj" }
315jj_ui = { path = "crates/jj_ui" }
316journal = { path = "crates/journal" }
317language = { path = "crates/language" }
318language_extension = { path = "crates/language_extension" }
319language_model = { path = "crates/language_model" }
320language_models = { path = "crates/language_models" }
321language_selector = { path = "crates/language_selector" }
322language_tools = { path = "crates/language_tools" }
323languages = { path = "crates/languages" }
324livekit_api = { path = "crates/livekit_api" }
325livekit_client = { path = "crates/livekit_client" }
326lmstudio = { path = "crates/lmstudio" }
327lsp = { path = "crates/lsp" }
328markdown = { path = "crates/markdown" }
329markdown_preview = { path = "crates/markdown_preview" }
330svg_preview = { path = "crates/svg_preview" }
331media = { path = "crates/media" }
332menu = { path = "crates/menu" }
333migrator = { path = "crates/migrator" }
334mistral = { path = "crates/mistral" }
335multi_buffer = { path = "crates/multi_buffer" }
336nc = { path = "crates/nc" }
337net = { path = "crates/net" }
338node_runtime = { path = "crates/node_runtime" }
339notifications = { path = "crates/notifications" }
340ollama = { path = "crates/ollama" }
341onboarding = { path = "crates/onboarding" }
342open_ai = { path = "crates/open_ai" }
343open_router = { path = "crates/open_router", features = ["schemars"] }
344outline = { path = "crates/outline" }
345outline_panel = { path = "crates/outline_panel" }
346panel = { path = "crates/panel" }
347paths = { path = "crates/paths" }
348picker = { path = "crates/picker" }
349plugin = { path = "crates/plugin" }
350plugin_macros = { path = "crates/plugin_macros" }
351prettier = { path = "crates/prettier" }
352settings_profile_selector = { path = "crates/settings_profile_selector" }
353project = { path = "crates/project" }
354project_panel = { path = "crates/project_panel" }
355project_symbols = { path = "crates/project_symbols" }
356prompt_store = { path = "crates/prompt_store" }
357proto = { path = "crates/proto" }
358recent_projects = { path = "crates/recent_projects" }
359refineable = { path = "crates/refineable" }
360release_channel = { path = "crates/release_channel" }
361remote = { path = "crates/remote" }
362remote_server = { path = "crates/remote_server" }
363repl = { path = "crates/repl" }
364reqwest_client = { path = "crates/reqwest_client" }
365rich_text = { path = "crates/rich_text" }
366rope = { path = "crates/rope" }
367rpc = { path = "crates/rpc" }
368rules_library = { path = "crates/rules_library" }
369search = { path = "crates/search" }
370semantic_index = { path = "crates/semantic_index" }
371semantic_version = { path = "crates/semantic_version" }
372session = { path = "crates/session" }
373settings = { path = "crates/settings" }
374settings_ui = { path = "crates/settings_ui" }
375snippet = { path = "crates/snippet" }
376snippet_provider = { path = "crates/snippet_provider" }
377snippets_ui = { path = "crates/snippets_ui" }
378sqlez = { path = "crates/sqlez" }
379sqlez_macros = { path = "crates/sqlez_macros" }
380story = { path = "crates/story" }
381storybook = { path = "crates/storybook" }
382streaming_diff = { path = "crates/streaming_diff" }
383sum_tree = { path = "crates/sum_tree" }
384supermaven = { path = "crates/supermaven" }
385supermaven_api = { path = "crates/supermaven_api" }
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.23"
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"
455bitflags = "2.6.0"
456blade-graphics = { git = "https://github.com/kvark/blade", rev = "e0ec4e720957edd51b945b64dd85605ea54bcfe5" }
457blade-macros = { git = "https://github.com/kvark/blade", rev = "e0ec4e720957edd51b945b64dd85605ea54bcfe5" }
458blade-util = { git = "https://github.com/kvark/blade", rev = "e0ec4e720957edd51b945b64dd85605ea54bcfe5" }
459blake3 = "1.5.3"
460bytes = "1.0"
461cargo_metadata = "0.19"
462cargo_toml = "0.21"
463chrono = { version = "0.4", features = ["serde"] }
464ciborium = "0.2"
465circular-buffer = "1.0"
466clap = { version = "4.4", features = ["derive"] }
467cocoa = "0.26"
468cocoa-foundation = "0.2.0"
469convert_case = "0.8.0"
470core-foundation = "0.10.0"
471core-foundation-sys = "0.8.6"
472core-video = { version = "0.4.3", features = ["metal"] }
473cpal = "0.16"
474crash-handler = "0.6"
475criterion = { version = "0.5", features = ["html_reports"] }
476ctor = "0.4.0"
477dap-types = { git = "https://github.com/zed-industries/dap-types", rev = "1b461b310481d01e02b2603c16d7144b926339f8" }
478dashmap = "6.0"
479derive_more = "0.99.17"
480dirs = "4.0"
481documented = "0.9.1"
482dotenvy = "0.15.0"
483ec4rs = "1.1"
484emojis = "0.6.1"
485env_logger = "0.11"
486exec = "0.3.1"
487fancy-regex = "0.14.0"
488fork = "0.2.0"
489futures = "0.3"
490futures-batch = "0.6.1"
491futures-lite = "1.13"
492git2 = { version = "0.20.1", default-features = false }
493globset = "0.4"
494handlebars = "4.3"
495heck = "0.5"
496heed = { version = "0.21.0", features = ["read-txn-no-tls"] }
497hex = "0.4.3"
498html5ever = "0.27.0"
499http = "1.1"
500http-body = "1.0"
501hyper = "0.14"
502ignore = "0.4.22"
503image = "0.25.1"
504imara-diff = "0.1.8"
505indexmap = { version = "2.7.0", features = ["serde"] }
506indoc = "2"
507inventory = "0.3.19"
508itertools = "0.14.0"
509jj-lib = { git = "https://github.com/jj-vcs/jj", rev = "e18eb8e05efaa153fad5ef46576af145bba1807f" }
510json_dotpath = "1.1"
511jsonschema = "0.30.0"
512jsonwebtoken = "9.3"
513jupyter-protocol = { git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
514jupyter-websocket-client = {  git = "https://github.com/ConradIrwin/runtimed" ,rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
515libc = "0.2"
516libsqlite3-sys = { version = "0.30.1", features = ["bundled"] }
517linkify = "0.10.0"
518log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
519lsp-types = { git = "https://github.com/zed-industries/lsp-types", rev = "39f629bdd03d59abd786ed9fc27e8bca02c0c0ec" }
520markup5ever_rcdom = "0.3.0"
521metal = "0.29"
522minidumper = "0.8"
523moka = { version = "0.12.10", features = ["sync"] }
524naga = { version = "25.0", features = ["wgsl-in"] }
525nanoid = "0.4"
526nbformat = {  git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
527nix = "0.29"
528num-format = "0.4.4"
529objc = "0.2"
530open = "5.0.0"
531ordered-float = "2.1.1"
532palette = { version = "0.7.5", default-features = false, features = ["std"] }
533parking_lot = "0.12.1"
534partial-json-fixer = "0.5.3"
535parse_int = "0.9"
536pathdiff = "0.2"
537pet = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
538pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
539pet-core = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
540pet-fs = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
541pet-pixi = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
542pet-poetry = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
543pet-reporter = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
544portable-pty = "0.9.0"
545postage = { version = "0.5", features = ["futures-traits"] }
546pretty_assertions = { version = "1.3.0", features = ["unstable"] }
547proc-macro2 = "1.0.93"
548profiling = "1"
549prost = "0.9"
550prost-build = "0.9"
551prost-types = "0.9"
552pulldown-cmark = { version = "0.12.0", default-features = false }
553quote = "1.0.9"
554rand = "0.8.5"
555rayon = "1.8"
556ref-cast = "1.0.24"
557regex = "1.5"
558reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "951c770a32f1998d6e999cef3e59e0013e6c4415", default-features = false, features = [
559    "charset",
560    "http2",
561    "macos-system-configuration",
562    "multipart",
563    "rustls-tls-native-roots",
564    "socks",
565    "stream",
566] }
567rodio = { version = "0.21.1", default-features = false }
568rsa = "0.9.6"
569runtimelib = {  git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734", default-features = false, features = [
570    "async-dispatcher-runtime",
571] }
572rust-embed = { version = "8.4", features = ["include-exclude"] }
573rustc-demangle = "0.1.23"
574rustc-hash = "2.1.0"
575rustls = { version = "0.23.26" }
576rustls-platform-verifier = "0.5.0"
577scap = { git = "https://github.com/zed-industries/scap", rev = "808aa5c45b41e8f44729d02e38fd00a2fe2722e7", default-features = false }
578schemars = { version = "1.0", features = ["indexmap2"] }
579semver = "1.0"
580serde = { version = "1.0", features = ["derive", "rc"] }
581serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
582serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
583serde_json_lenient = { version = "0.2", features = [
584    "preserve_order",
585    "raw_value",
586] }
587serde_repr = "0.1"
588sha2 = "0.10"
589shellexpand = "2.1.0"
590shlex = "1.3.0"
591simplelog = "0.12.2"
592smallvec = { version = "1.6", features = ["union"] }
593smol = "2.0"
594sqlformat = "0.2"
595streaming-iterator = "0.1"
596strsim = "0.11"
597strum = { version = "0.27.0", features = ["derive"] }
598subtle = "2.5.0"
599syn = { version = "2.0.101", features = ["full", "extra-traits"] }
600sys-locale = "0.3.1"
601sysinfo = "0.31.0"
602take-until = "0.2.0"
603tempfile = "3.20.0"
604thiserror = "2.0.12"
605tiktoken-rs = { git = "https://github.com/zed-industries/tiktoken-rs", rev = "30c32a4522751699adeda0d5840c71c3b75ae73d" }
606time = { version = "0.3", features = [
607    "macros",
608    "parsing",
609    "serde",
610    "serde-well-known",
611    "formatting",
612] }
613tiny_http = "0.8"
614tokio = { version = "1" }
615tokio-tungstenite = { version = "0.26", features = ["__rustls-tls"] }
616toml = "0.8"
617tower-http = "0.4.4"
618tree-sitter = { version = "0.25.6", features = ["wasm"] }
619tree-sitter-bash = "0.25.0"
620tree-sitter-c = "0.23"
621tree-sitter-cpp = "0.23"
622tree-sitter-css = "0.23"
623tree-sitter-diff = "0.1.0"
624tree-sitter-elixir = "0.3"
625tree-sitter-embedded-template = "0.23.0"
626tree-sitter-gitcommit = { git = "https://github.com/zed-industries/tree-sitter-git-commit", rev = "88309716a69dd13ab83443721ba6e0b491d37ee9" }
627tree-sitter-go = "0.23"
628tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c", package = "tree-sitter-gomod" }
629tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
630tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
631tree-sitter-html = "0.23"
632tree-sitter-jsdoc = "0.23"
633tree-sitter-json = "0.24"
634tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
635tree-sitter-python = { git = "https://github.com/zed-industries/tree-sitter-python", rev = "218fcbf3fda3d029225f3dec005cb497d111b35e" }
636tree-sitter-regex = "0.24"
637tree-sitter-ruby = "0.23"
638tree-sitter-rust = "0.24"
639tree-sitter-typescript = "0.23"
640tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
641unicase = "2.6"
642unicode-script = "0.5.7"
643unicode-segmentation = "1.10"
644unindent = "0.2.0"
645url = "2.2"
646urlencoding = "2.1.2"
647uuid = { version = "1.1.2", features = ["v4", "v5", "v7", "serde"] }
648walkdir = "2.5"
649wasm-encoder = "0.221"
650wasmparser = "0.221"
651wasmtime = { version = "29", default-features = false, features = [
652    "async",
653    "demangle",
654    "runtime",
655    "cranelift",
656    "component-model",
657    "incremental-cache",
658    "parallel-compilation",
659] }
660wasmtime-wasi = "29"
661which = "6.0.0"
662windows-core = "0.61"
663wit-component = "0.221"
664workspace-hack = "0.1.0"
665# We can switch back to the published version once https://github.com/infinitefield/yawc/pull/16 is merged and a new
666# version is released.
667yawc = { git = "https://github.com/deviant-forks/yawc", rev = "1899688f3e69ace4545aceb97b2a13881cf26142" }
668zstd = "0.11"
669
670[workspace.dependencies.async-stripe]
671git = "https://github.com/zed-industries/async-stripe"
672rev = "3672dd4efb7181aa597bf580bf5a2f5d23db6735"
673default-features = false
674features = [
675    "runtime-tokio-hyper-rustls",
676    "billing",
677    "checkout",
678    "events",
679    # The features below are only enabled to get the `events` feature to build.
680    "chrono",
681    "connect",
682]
683
684[workspace.dependencies.windows]
685version = "0.61"
686features = [
687    "Foundation_Numerics",
688    "Storage_Search",
689    "Storage_Streams",
690    "System_Threading",
691    "UI_ViewManagement",
692    "Wdk_System_SystemServices",
693    "Win32_Globalization",
694    "Win32_Graphics_Direct3D",
695    "Win32_Graphics_Direct3D11",
696    "Win32_Graphics_Direct3D_Fxc",
697    "Win32_Graphics_DirectComposition",
698    "Win32_Graphics_DirectWrite",
699    "Win32_Graphics_Dwm",
700    "Win32_Graphics_Dxgi",
701    "Win32_Graphics_Dxgi_Common",
702    "Win32_Graphics_Gdi",
703    "Win32_Graphics_Imaging",
704    "Win32_Networking_WinSock",
705    "Win32_Security",
706    "Win32_Security_Credentials",
707    "Win32_Storage_FileSystem",
708    "Win32_System_Com",
709    "Win32_System_Com_StructuredStorage",
710    "Win32_System_Console",
711    "Win32_System_DataExchange",
712    "Win32_System_IO",
713    "Win32_System_LibraryLoader",
714    "Win32_System_Memory",
715    "Win32_System_Ole",
716    "Win32_System_Performance",
717    "Win32_System_Pipes",
718    "Win32_System_SystemInformation",
719    "Win32_System_SystemServices",
720    "Win32_System_Threading",
721    "Win32_System_Variant",
722    "Win32_System_WinRT",
723    "Win32_UI_Controls",
724    "Win32_UI_HiDpi",
725    "Win32_UI_Input_Ime",
726    "Win32_UI_Input_KeyboardAndMouse",
727    "Win32_UI_Shell",
728    "Win32_UI_Shell_Common",
729    "Win32_UI_Shell_PropertiesSystem",
730    "Win32_UI_WindowsAndMessaging",
731]
732
733[patch.crates-io]
734notify = { git = "https://github.com/zed-industries/notify.git", rev = "bbb9ea5ae52b253e095737847e367c30653a2e96" }
735notify-types = { git = "https://github.com/zed-industries/notify.git", rev = "bbb9ea5ae52b253e095737847e367c30653a2e96" }
736windows-capture = { git = "https://github.com/zed-industries/windows-capture.git", rev = "f0d6c1b6691db75461b732f6d5ff56eed002eeb9" }
737
738# Makes the workspace hack crate refer to the local one, but only when you're building locally
739workspace-hack = { path = "tooling/workspace-hack" }
740
741[profile.dev]
742split-debuginfo = "unpacked"
743codegen-units = 16
744
745# mirror configuration for crates compiled for the build platform
746# (without this cargo will compile ~400 crates twice)
747[profile.dev.build-override]
748codegen-units = 16
749
750[profile.dev.package]
751taffy = { opt-level = 3 }
752cranelift-codegen = { opt-level = 3 }
753cranelift-codegen-meta = { opt-level = 3 }
754cranelift-codegen-shared = { opt-level = 3 }
755resvg = { opt-level = 3 }
756rustybuzz = { opt-level = 3 }
757ttf-parser = { opt-level = 3 }
758wasmtime-cranelift = { opt-level = 3 }
759wasmtime = { opt-level = 3 }
760# Build single-source-file crates with cg=1 as it helps make `cargo build` of a whole workspace a bit faster
761activity_indicator = { codegen-units = 1 }
762assets = { codegen-units = 1 }
763breadcrumbs = { codegen-units = 1 }
764collections = { codegen-units = 1 }
765command_palette = { codegen-units = 1 }
766command_palette_hooks = { codegen-units = 1 }
767extension_cli = { codegen-units = 1 }
768feature_flags = { codegen-units = 1 }
769file_icons = { codegen-units = 1 }
770fsevent = { codegen-units = 1 }
771image_viewer = { codegen-units = 1 }
772edit_prediction_button = { codegen-units = 1 }
773install_cli = { codegen-units = 1 }
774journal = { codegen-units = 1 }
775lmstudio = { codegen-units = 1 }
776menu = { codegen-units = 1 }
777notifications = { codegen-units = 1 }
778ollama = { codegen-units = 1 }
779outline = { codegen-units = 1 }
780paths = { codegen-units = 1 }
781prettier = { codegen-units = 1 }
782project_symbols = { codegen-units = 1 }
783refineable = { codegen-units = 1 }
784release_channel = { codegen-units = 1 }
785reqwest_client = { codegen-units = 1 }
786rich_text = { codegen-units = 1 }
787semantic_version = { codegen-units = 1 }
788session = { codegen-units = 1 }
789snippet = { codegen-units = 1 }
790snippets_ui = { codegen-units = 1 }
791sqlez_macros = { codegen-units = 1 }
792story = { codegen-units = 1 }
793supermaven_api = { codegen-units = 1 }
794telemetry_events = { codegen-units = 1 }
795theme_selector = { codegen-units = 1 }
796time_format = { codegen-units = 1 }
797ui_input = { codegen-units = 1 }
798zed_actions = { codegen-units = 1 }
799
800[profile.release]
801debug = "limited"
802lto = "thin"
803codegen-units = 1
804
805[profile.release.package]
806zed = { codegen-units = 16 }
807
808[profile.release-fast]
809inherits = "release"
810debug = "full"
811lto = false
812codegen-units = 16
813
814[workspace.lints.rust]
815unexpected_cfgs = { level = "allow" }
816
817[workspace.lints.clippy]
818dbg_macro = "deny"
819todo = "deny"
820
821# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
822# warning on this rule produces a lot of noise.
823single_range_in_vec_init = "allow"
824
825# These are all of the rules that currently have violations in the Zed
826# codebase.
827#
828# We'll want to drive this list down by either:
829# 1. fixing violations of the rule and begin enforcing it
830# 2. deciding we want to allow the rule permanently, at which point
831#    we should codify that separately above.
832#
833# This list shouldn't be added to; it should only get shorter.
834# =============================================================================
835
836# There are a bunch of rules currently failing in the `style` group, so
837# allow all of those, for now.
838style = { level = "allow", priority = -1 }
839
840# Temporary list of style lints that we've fixed so far.
841module_inception = { level = "deny" }
842question_mark = { level = "deny" }
843redundant_closure = { level = "deny" }
844declare_interior_mutable_const = { level = "deny" }
845# Individual rules that have violations in the codebase:
846type_complexity = "allow"
847# We often return trait objects from `new` functions.
848new_ret_no_self = { level = "allow" }
849# We have a few `next` functions that differ in lifetimes
850# compared to Iterator::next. Yet, clippy complains about those.
851should_implement_trait = { level = "allow" }
852let_underscore_future = "allow"
853
854# in Rust it can be very tedious to reduce argument count without
855# running afoul of the borrow checker.
856too_many_arguments = "allow"
857
858# We often have large enum variants yet we rarely actually bother with splitting them up.
859large_enum_variant = "allow"
860
861[workspace.metadata.cargo-machete]
862ignored = [
863    "bindgen",
864    "cbindgen",
865    "prost_build",
866    "serde",
867    "component",
868    "documented",
869    "workspace-hack",
870]