Cargo.toml

  1[workspace]
  2resolver = "2"
  3members = [
  4    "crates/acp_thread",
  5    "crates/activity_indicator",
  6    "crates/agent",
  7    "crates/agent2",
  8    "crates/agent_servers",
  9    "crates/agent_settings",
 10    "crates/agent_ui",
 11    "crates/ai_onboarding",
 12    "crates/anthropic",
 13    "crates/askpass",
 14    "crates/assets",
 15    "crates/assistant_context",
 16    "crates/assistant_slash_command",
 17    "crates/assistant_slash_commands",
 18    "crates/assistant_tool",
 19    "crates/assistant_tools",
 20    "crates/audio",
 21    "crates/auto_update",
 22    "crates/auto_update_helper",
 23    "crates/auto_update_ui",
 24    "crates/aws_http_client",
 25    "crates/bedrock",
 26    "crates/breadcrumbs",
 27    "crates/buffer_diff",
 28    "crates/call",
 29    "crates/channel",
 30    "crates/cli",
 31    "crates/client",
 32    "crates/clock",
 33    "crates/cloud_api_client",
 34    "crates/cloud_api_types",
 35    "crates/cloud_llm_client",
 36    "crates/collab",
 37    "crates/collab_ui",
 38    "crates/collections",
 39    "crates/command_palette",
 40    "crates/command_palette_hooks",
 41    "crates/component",
 42    "crates/context_server",
 43    "crates/copilot",
 44    "crates/crashes",
 45    "crates/credentials_provider",
 46    "crates/dap",
 47    "crates/dap_adapters",
 48    "crates/db",
 49    "crates/debug_adapter_extension",
 50    "crates/debugger_tools",
 51    "crates/debugger_ui",
 52    "crates/deepseek",
 53    "crates/diagnostics",
 54    "crates/docs_preprocessor",
 55    "crates/editor",
 56    "crates/eval",
 57    "crates/explorer_command_injector",
 58    "crates/extension",
 59    "crates/extension_api",
 60    "crates/extension_cli",
 61    "crates/extension_host",
 62    "crates/extensions_ui",
 63    "crates/feature_flags",
 64    "crates/feedback",
 65    "crates/file_finder",
 66    "crates/file_icons",
 67    "crates/fs",
 68    "crates/fsevent",
 69    "crates/fuzzy",
 70    "crates/git",
 71    "crates/git_hosting_providers",
 72    "crates/git_ui",
 73    "crates/go_to_line",
 74    "crates/google_ai",
 75    "crates/gpui",
 76    "crates/gpui_macros",
 77    "crates/gpui_tokio",
 78    "crates/html_to_markdown",
 79    "crates/http_client",
 80    "crates/http_client_tls",
 81    "crates/icons",
 82    "crates/image_viewer",
 83    "crates/indexed_docs",
 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/supermaven_api",
159    "crates/svg_preview",
160    "crates/tab_switcher",
161    "crates/task",
162    "crates/tasks_ui",
163    "crates/telemetry",
164    "crates/telemetry_events",
165    "crates/terminal",
166    "crates/terminal_view",
167    "crates/text",
168    "crates/theme",
169    "crates/theme_extension",
170    "crates/theme_importer",
171    "crates/theme_selector",
172    "crates/time_format",
173    "crates/title_bar",
174    "crates/toolchain_selector",
175    "crates/ui",
176    "crates/ui_input",
177    "crates/ui_macros",
178    "crates/ui_prompt",
179    "crates/util",
180    "crates/util_macros",
181    "crates/vercel",
182    "crates/vim",
183    "crates/vim_mode_setting",
184    "crates/watch",
185    "crates/web_search",
186    "crates/web_search_providers",
187    "crates/welcome",
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" }
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" }
308indexed_docs = { path = "crates/indexed_docs" }
309edit_prediction = { path = "crates/edit_prediction" }
310edit_prediction_button = { path = "crates/edit_prediction_button" }
311inspector_ui = { path = "crates/inspector_ui" }
312install_cli = { path = "crates/install_cli" }
313jj = { path = "crates/jj" }
314jj_ui = { path = "crates/jj_ui" }
315journal = { path = "crates/journal" }
316language = { path = "crates/language" }
317language_extension = { path = "crates/language_extension" }
318language_model = { path = "crates/language_model" }
319language_models = { path = "crates/language_models" }
320language_selector = { path = "crates/language_selector" }
321language_tools = { path = "crates/language_tools" }
322languages = { path = "crates/languages" }
323livekit_api = { path = "crates/livekit_api" }
324livekit_client = { path = "crates/livekit_client" }
325lmstudio = { path = "crates/lmstudio" }
326lsp = { path = "crates/lsp" }
327markdown = { path = "crates/markdown" }
328markdown_preview = { path = "crates/markdown_preview" }
329svg_preview = { path = "crates/svg_preview" }
330media = { path = "crates/media" }
331menu = { path = "crates/menu" }
332migrator = { path = "crates/migrator" }
333mistral = { path = "crates/mistral" }
334multi_buffer = { path = "crates/multi_buffer" }
335nc = { path = "crates/nc" }
336net = { path = "crates/net" }
337node_runtime = { path = "crates/node_runtime" }
338notifications = { path = "crates/notifications" }
339ollama = { path = "crates/ollama" }
340onboarding = { path = "crates/onboarding" }
341open_ai = { path = "crates/open_ai" }
342open_router = { path = "crates/open_router", features = ["schemars"] }
343outline = { path = "crates/outline" }
344outline_panel = { path = "crates/outline_panel" }
345panel = { path = "crates/panel" }
346paths = { path = "crates/paths" }
347picker = { path = "crates/picker" }
348plugin = { path = "crates/plugin" }
349plugin_macros = { path = "crates/plugin_macros" }
350prettier = { path = "crates/prettier" }
351settings_profile_selector = { path = "crates/settings_profile_selector" }
352project = { path = "crates/project" }
353project_panel = { path = "crates/project_panel" }
354project_symbols = { path = "crates/project_symbols" }
355prompt_store = { path = "crates/prompt_store" }
356proto = { path = "crates/proto" }
357recent_projects = { path = "crates/recent_projects" }
358refineable = { path = "crates/refineable" }
359release_channel = { path = "crates/release_channel" }
360remote = { path = "crates/remote" }
361remote_server = { path = "crates/remote_server" }
362repl = { path = "crates/repl" }
363reqwest_client = { path = "crates/reqwest_client" }
364rich_text = { path = "crates/rich_text" }
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" }
385tab_switcher = { path = "crates/tab_switcher" }
386task = { path = "crates/task" }
387tasks_ui = { path = "crates/tasks_ui" }
388telemetry = { path = "crates/telemetry" }
389telemetry_events = { path = "crates/telemetry_events" }
390terminal = { path = "crates/terminal" }
391terminal_view = { path = "crates/terminal_view" }
392text = { path = "crates/text" }
393theme = { path = "crates/theme" }
394theme_extension = { path = "crates/theme_extension" }
395theme_importer = { path = "crates/theme_importer" }
396theme_selector = { path = "crates/theme_selector" }
397time_format = { path = "crates/time_format" }
398title_bar = { path = "crates/title_bar" }
399toolchain_selector = { path = "crates/toolchain_selector" }
400ui = { path = "crates/ui" }
401ui_input = { path = "crates/ui_input" }
402ui_macros = { path = "crates/ui_macros" }
403ui_prompt = { path = "crates/ui_prompt" }
404util = { path = "crates/util" }
405util_macros = { path = "crates/util_macros" }
406vercel = { path = "crates/vercel" }
407vim = { path = "crates/vim" }
408vim_mode_setting = { path = "crates/vim_mode_setting" }
409
410watch = { path = "crates/watch" }
411web_search = { path = "crates/web_search" }
412web_search_providers = { path = "crates/web_search_providers" }
413welcome = { path = "crates/welcome" }
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] }
567rsa = "0.9.6"
568runtimelib = {  git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734", default-features = false, features = [
569    "async-dispatcher-runtime",
570] }
571rust-embed = { version = "8.4", features = ["include-exclude"] }
572rustc-demangle = "0.1.23"
573rustc-hash = "2.1.0"
574rustls = { version = "0.23.26" }
575rustls-platform-verifier = "0.5.0"
576scap = { git = "https://github.com/zed-industries/scap", rev = "808aa5c45b41e8f44729d02e38fd00a2fe2722e7", default-features = false }
577schemars = { version = "1.0", features = ["indexmap2"] }
578semver = "1.0"
579serde = { version = "1.0", features = ["derive", "rc"] }
580serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
581serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
582serde_json_lenient = { version = "0.2", features = [
583    "preserve_order",
584    "raw_value",
585] }
586serde_repr = "0.1"
587sha2 = "0.10"
588shellexpand = "2.1.0"
589shlex = "1.3.0"
590simplelog = "0.12.2"
591smallvec = { version = "1.6", features = ["union"] }
592smol = "2.0"
593sqlformat = "0.2"
594streaming-iterator = "0.1"
595strsim = "0.11"
596strum = { version = "0.27.0", features = ["derive"] }
597subtle = "2.5.0"
598syn = { version = "2.0.101", features = ["full", "extra-traits"] }
599sys-locale = "0.3.1"
600sysinfo = "0.31.0"
601take-until = "0.2.0"
602tempfile = "3.20.0"
603thiserror = "2.0.12"
604tiktoken-rs = { git = "https://github.com/zed-industries/tiktoken-rs", rev = "30c32a4522751699adeda0d5840c71c3b75ae73d" }
605time = { version = "0.3", features = [
606    "macros",
607    "parsing",
608    "serde",
609    "serde-well-known",
610    "formatting",
611] }
612tiny_http = "0.8"
613tokio = { version = "1" }
614tokio-tungstenite = { version = "0.26", features = ["__rustls-tls"] }
615toml = "0.8"
616tower-http = "0.4.4"
617tree-sitter = { version = "0.25.6", features = ["wasm"] }
618tree-sitter-bash = "0.25.0"
619tree-sitter-c = "0.23"
620tree-sitter-cpp = "0.23"
621tree-sitter-css = "0.23"
622tree-sitter-diff = "0.1.0"
623tree-sitter-elixir = "0.3"
624tree-sitter-embedded-template = "0.23.0"
625tree-sitter-gitcommit = { git = "https://github.com/zed-industries/tree-sitter-git-commit", rev = "88309716a69dd13ab83443721ba6e0b491d37ee9" }
626tree-sitter-go = "0.23"
627tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c", package = "tree-sitter-gomod" }
628tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
629tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
630tree-sitter-html = "0.23"
631tree-sitter-jsdoc = "0.23"
632tree-sitter-json = "0.24"
633tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
634tree-sitter-python = { git = "https://github.com/zed-industries/tree-sitter-python", rev = "218fcbf3fda3d029225f3dec005cb497d111b35e" }
635tree-sitter-regex = "0.24"
636tree-sitter-ruby = "0.23"
637tree-sitter-rust = "0.24"
638tree-sitter-typescript = "0.23"
639tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
640unicase = "2.6"
641unicode-script = "0.5.7"
642unicode-segmentation = "1.10"
643unindent = "0.2.0"
644url = "2.2"
645urlencoding = "2.1.2"
646uuid = { version = "1.1.2", features = ["v4", "v5", "v7", "serde"] }
647walkdir = "2.5"
648wasm-encoder = "0.221"
649wasmparser = "0.221"
650wasmtime = { version = "29", default-features = false, features = [
651    "async",
652    "demangle",
653    "runtime",
654    "cranelift",
655    "component-model",
656    "incremental-cache",
657    "parallel-compilation",
658] }
659wasmtime-wasi = "29"
660which = "6.0.0"
661windows-core = "0.61"
662wit-component = "0.221"
663workspace-hack = "0.1.0"
664# We can switch back to the published version once https://github.com/infinitefield/yawc/pull/16 is merged and a new
665# version is released.
666yawc = { git = "https://github.com/deviant-forks/yawc", rev = "1899688f3e69ace4545aceb97b2a13881cf26142" }
667zstd = "0.11"
668
669[workspace.dependencies.async-stripe]
670git = "https://github.com/zed-industries/async-stripe"
671rev = "3672dd4efb7181aa597bf580bf5a2f5d23db6735"
672default-features = false
673features = [
674    "runtime-tokio-hyper-rustls",
675    "billing",
676    "checkout",
677    "events",
678    # The features below are only enabled to get the `events` feature to build.
679    "chrono",
680    "connect",
681]
682
683[workspace.dependencies.windows]
684version = "0.61"
685features = [
686    "Foundation_Numerics",
687    "Storage_Search",
688    "Storage_Streams",
689    "System_Threading",
690    "UI_ViewManagement",
691    "Wdk_System_SystemServices",
692    "Win32_Globalization",
693    "Win32_Graphics_Direct3D",
694    "Win32_Graphics_Direct3D11",
695    "Win32_Graphics_Direct3D_Fxc",
696    "Win32_Graphics_DirectComposition",
697    "Win32_Graphics_DirectWrite",
698    "Win32_Graphics_Dwm",
699    "Win32_Graphics_Dxgi",
700    "Win32_Graphics_Dxgi_Common",
701    "Win32_Graphics_Gdi",
702    "Win32_Graphics_Imaging",
703    "Win32_Networking_WinSock",
704    "Win32_Security",
705    "Win32_Security_Credentials",
706    "Win32_Storage_FileSystem",
707    "Win32_System_Com",
708    "Win32_System_Com_StructuredStorage",
709    "Win32_System_Console",
710    "Win32_System_DataExchange",
711    "Win32_System_IO",
712    "Win32_System_LibraryLoader",
713    "Win32_System_Memory",
714    "Win32_System_Ole",
715    "Win32_System_Pipes",
716    "Win32_System_SystemInformation",
717    "Win32_System_SystemServices",
718    "Win32_System_Threading",
719    "Win32_System_Variant",
720    "Win32_System_WinRT",
721    "Win32_UI_Controls",
722    "Win32_UI_HiDpi",
723    "Win32_UI_Input_Ime",
724    "Win32_UI_Input_KeyboardAndMouse",
725    "Win32_UI_Shell",
726    "Win32_UI_Shell_Common",
727    "Win32_UI_Shell_PropertiesSystem",
728    "Win32_UI_WindowsAndMessaging",
729]
730
731[patch.crates-io]
732notify = { git = "https://github.com/zed-industries/notify.git", rev = "bbb9ea5ae52b253e095737847e367c30653a2e96" }
733notify-types = { git = "https://github.com/zed-industries/notify.git", rev = "bbb9ea5ae52b253e095737847e367c30653a2e96" }
734windows-capture = { git = "https://github.com/zed-industries/windows-capture.git", rev = "f0d6c1b6691db75461b732f6d5ff56eed002eeb9" }
735
736# Makes the workspace hack crate refer to the local one, but only when you're building locally
737workspace-hack = { path = "tooling/workspace-hack" }
738
739[profile.dev]
740split-debuginfo = "unpacked"
741codegen-units = 16
742
743# mirror configuration for crates compiled for the build platform
744# (without this cargo will compile ~400 crates twice)
745[profile.dev.build-override]
746codegen-units = 16
747
748[profile.dev.package]
749taffy = { opt-level = 3 }
750cranelift-codegen = { opt-level = 3 }
751cranelift-codegen-meta = { opt-level = 3 }
752cranelift-codegen-shared = { opt-level = 3 }
753resvg = { opt-level = 3 }
754rustybuzz = { opt-level = 3 }
755ttf-parser = { opt-level = 3 }
756wasmtime-cranelift = { opt-level = 3 }
757wasmtime = { opt-level = 3 }
758# Build single-source-file crates with cg=1 as it helps make `cargo build` of a whole workspace a bit faster
759activity_indicator = { codegen-units = 1 }
760assets = { codegen-units = 1 }
761breadcrumbs = { codegen-units = 1 }
762collections = { codegen-units = 1 }
763command_palette = { codegen-units = 1 }
764command_palette_hooks = { codegen-units = 1 }
765extension_cli = { codegen-units = 1 }
766feature_flags = { codegen-units = 1 }
767file_icons = { codegen-units = 1 }
768fsevent = { codegen-units = 1 }
769image_viewer = { codegen-units = 1 }
770edit_prediction_button = { codegen-units = 1 }
771install_cli = { codegen-units = 1 }
772journal = { codegen-units = 1 }
773lmstudio = { codegen-units = 1 }
774menu = { codegen-units = 1 }
775notifications = { codegen-units = 1 }
776ollama = { codegen-units = 1 }
777outline = { codegen-units = 1 }
778paths = { codegen-units = 1 }
779prettier = { codegen-units = 1 }
780project_symbols = { codegen-units = 1 }
781refineable = { codegen-units = 1 }
782release_channel = { codegen-units = 1 }
783reqwest_client = { codegen-units = 1 }
784rich_text = { codegen-units = 1 }
785semantic_version = { codegen-units = 1 }
786session = { codegen-units = 1 }
787snippet = { codegen-units = 1 }
788snippets_ui = { codegen-units = 1 }
789sqlez_macros = { codegen-units = 1 }
790story = { codegen-units = 1 }
791supermaven_api = { codegen-units = 1 }
792telemetry_events = { codegen-units = 1 }
793theme_selector = { codegen-units = 1 }
794time_format = { codegen-units = 1 }
795ui_input = { codegen-units = 1 }
796zed_actions = { codegen-units = 1 }
797
798[profile.release]
799debug = "limited"
800lto = "thin"
801codegen-units = 1
802
803[profile.release.package]
804zed = { codegen-units = 16 }
805
806[profile.release-fast]
807inherits = "release"
808debug = "full"
809lto = false
810codegen-units = 16
811
812[workspace.lints.rust]
813unexpected_cfgs = { level = "allow" }
814
815[workspace.lints.clippy]
816dbg_macro = "deny"
817todo = "deny"
818
819# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
820# warning on this rule produces a lot of noise.
821single_range_in_vec_init = "allow"
822
823# These are all of the rules that currently have violations in the Zed
824# codebase.
825#
826# We'll want to drive this list down by either:
827# 1. fixing violations of the rule and begin enforcing it
828# 2. deciding we want to allow the rule permanently, at which point
829#    we should codify that separately above.
830#
831# This list shouldn't be added to; it should only get shorter.
832# =============================================================================
833
834# There are a bunch of rules currently failing in the `style` group, so
835# allow all of those, for now.
836style = { level = "allow", priority = -1 }
837
838# Temporary list of style lints that we've fixed so far.
839module_inception = { level = "deny" }
840question_mark = { level = "deny" }
841redundant_closure = { level = "deny" }
842# Individual rules that have violations in the codebase:
843type_complexity = "allow"
844# We often return trait objects from `new` functions.
845new_ret_no_self = { level = "allow" }
846# We have a few `next` functions that differ in lifetimes
847# compared to Iterator::next. Yet, clippy complains about those.
848should_implement_trait = { level = "allow" }
849let_underscore_future = "allow"
850
851# in Rust it can be very tedious to reduce argument count without
852# running afoul of the borrow checker.
853too_many_arguments = "allow"
854
855# We often have large enum variants yet we rarely actually bother with splitting them up.
856large_enum_variant = "allow"
857
858[workspace.metadata.cargo-machete]
859ignored = [
860    "bindgen",
861    "cbindgen",
862    "prost_build",
863    "serde",
864    "component",
865    "documented",
866    "workspace-hack",
867]