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.20"
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"] }
464circular-buffer = "1.0"
465clap = { version = "4.4", features = ["derive"] }
466cocoa = "0.26"
467cocoa-foundation = "0.2.0"
468convert_case = "0.8.0"
469core-foundation = "0.10.0"
470core-foundation-sys = "0.8.6"
471core-video = { version = "0.4.3", features = ["metal"] }
472cpal = "0.16"
473crash-handler = "0.6"
474criterion = { version = "0.5", features = ["html_reports"] }
475ctor = "0.4.0"
476dap-types = { git = "https://github.com/zed-industries/dap-types", rev = "1b461b310481d01e02b2603c16d7144b926339f8" }
477dashmap = "6.0"
478derive_more = "0.99.17"
479dirs = "4.0"
480documented = "0.9.1"
481dotenvy = "0.15.0"
482ec4rs = "1.1"
483emojis = "0.6.1"
484env_logger = "0.11"
485exec = "0.3.1"
486fancy-regex = "0.14.0"
487fork = "0.2.0"
488futures = "0.3"
489futures-batch = "0.6.1"
490futures-lite = "1.13"
491git2 = { version = "0.20.1", default-features = false }
492globset = "0.4"
493handlebars = "4.3"
494heck = "0.5"
495heed = { version = "0.21.0", features = ["read-txn-no-tls"] }
496hex = "0.4.3"
497html5ever = "0.27.0"
498http = "1.1"
499http-body = "1.0"
500hyper = "0.14"
501ignore = "0.4.22"
502image = "0.25.1"
503imara-diff = "0.1.8"
504indexmap = { version = "2.7.0", features = ["serde"] }
505indoc = "2"
506inventory = "0.3.19"
507itertools = "0.14.0"
508jj-lib = { git = "https://github.com/jj-vcs/jj", rev = "e18eb8e05efaa153fad5ef46576af145bba1807f" }
509json_dotpath = "1.1"
510jsonschema = "0.30.0"
511jsonwebtoken = "9.3"
512jupyter-protocol = { git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
513jupyter-websocket-client = {  git = "https://github.com/ConradIrwin/runtimed" ,rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
514libc = "0.2"
515libsqlite3-sys = { version = "0.30.1", features = ["bundled"] }
516linkify = "0.10.0"
517log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
518lsp-types = { git = "https://github.com/zed-industries/lsp-types", rev = "39f629bdd03d59abd786ed9fc27e8bca02c0c0ec" }
519markup5ever_rcdom = "0.3.0"
520metal = "0.29"
521minidumper = "0.8"
522moka = { version = "0.12.10", features = ["sync"] }
523naga = { version = "25.0", features = ["wgsl-in"] }
524nanoid = "0.4"
525nbformat = {  git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
526nix = "0.29"
527num-format = "0.4.4"
528objc = "0.2"
529open = "5.0.0"
530ordered-float = "2.1.1"
531palette = { version = "0.7.5", default-features = false, features = ["std"] }
532parking_lot = "0.12.1"
533partial-json-fixer = "0.5.3"
534parse_int = "0.9"
535pathdiff = "0.2"
536pet = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
537pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
538pet-core = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
539pet-fs = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
540pet-pixi = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
541pet-poetry = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
542pet-reporter = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
543portable-pty = "0.9.0"
544postage = { version = "0.5", features = ["futures-traits"] }
545pretty_assertions = { version = "1.3.0", features = ["unstable"] }
546proc-macro2 = "1.0.93"
547profiling = "1"
548prost = "0.9"
549prost-build = "0.9"
550prost-types = "0.9"
551pulldown-cmark = { version = "0.12.0", default-features = false }
552quote = "1.0.9"
553rand = "0.8.5"
554rayon = "1.8"
555ref-cast = "1.0.24"
556regex = "1.5"
557reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "951c770a32f1998d6e999cef3e59e0013e6c4415", default-features = false, features = [
558    "charset",
559    "http2",
560    "macos-system-configuration",
561    "multipart",
562    "rustls-tls-native-roots",
563    "socks",
564    "stream",
565] }
566rsa = "0.9.6"
567runtimelib = {  git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734", default-features = false, features = [
568    "async-dispatcher-runtime",
569] }
570rust-embed = { version = "8.4", features = ["include-exclude"] }
571rustc-demangle = "0.1.23"
572rustc-hash = "2.1.0"
573rustls = { version = "0.23.26" }
574rustls-platform-verifier = "0.5.0"
575scap = { git = "https://github.com/zed-industries/scap", rev = "808aa5c45b41e8f44729d02e38fd00a2fe2722e7", default-features = false }
576schemars = { version = "1.0", features = ["indexmap2"] }
577semver = "1.0"
578serde = { version = "1.0", features = ["derive", "rc"] }
579serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
580serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
581serde_json_lenient = { version = "0.2", features = [
582    "preserve_order",
583    "raw_value",
584] }
585serde_repr = "0.1"
586sha2 = "0.10"
587shellexpand = "2.1.0"
588shlex = "1.3.0"
589simplelog = "0.12.2"
590smallvec = { version = "1.6", features = ["union"] }
591smol = "2.0"
592sqlformat = "0.2"
593streaming-iterator = "0.1"
594strsim = "0.11"
595strum = { version = "0.27.0", features = ["derive"] }
596subtle = "2.5.0"
597syn = { version = "2.0.101", features = ["full", "extra-traits"] }
598sys-locale = "0.3.1"
599sysinfo = "0.31.0"
600take-until = "0.2.0"
601tempfile = "3.20.0"
602thiserror = "2.0.12"
603tiktoken-rs = "0.7.0"
604time = { version = "0.3", features = [
605    "macros",
606    "parsing",
607    "serde",
608    "serde-well-known",
609    "formatting",
610] }
611tiny_http = "0.8"
612tokio = { version = "1" }
613tokio-tungstenite = { version = "0.26", features = ["__rustls-tls"] }
614toml = "0.8"
615tower-http = "0.4.4"
616tree-sitter = { version = "0.25.6", features = ["wasm"] }
617tree-sitter-bash = "0.25.0"
618tree-sitter-c = "0.23"
619tree-sitter-cpp = "0.23"
620tree-sitter-css = "0.23"
621tree-sitter-diff = "0.1.0"
622tree-sitter-elixir = "0.3"
623tree-sitter-embedded-template = "0.23.0"
624tree-sitter-gitcommit = { git = "https://github.com/zed-industries/tree-sitter-git-commit", rev = "88309716a69dd13ab83443721ba6e0b491d37ee9" }
625tree-sitter-go = "0.23"
626tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c", package = "tree-sitter-gomod" }
627tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
628tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
629tree-sitter-html = "0.23"
630tree-sitter-jsdoc = "0.23"
631tree-sitter-json = "0.24"
632tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
633tree-sitter-python = { git = "https://github.com/zed-industries/tree-sitter-python", rev = "218fcbf3fda3d029225f3dec005cb497d111b35e" }
634tree-sitter-regex = "0.24"
635tree-sitter-ruby = "0.23"
636tree-sitter-rust = "0.24"
637tree-sitter-typescript = "0.23"
638tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
639unicase = "2.6"
640unicode-script = "0.5.7"
641unicode-segmentation = "1.10"
642unindent = "0.2.0"
643url = "2.2"
644urlencoding = "2.1.2"
645uuid = { version = "1.1.2", features = ["v4", "v5", "v7", "serde"] }
646walkdir = "2.5"
647wasm-encoder = "0.221"
648wasmparser = "0.221"
649wasmtime = { version = "29", default-features = false, features = [
650    "async",
651    "demangle",
652    "runtime",
653    "cranelift",
654    "component-model",
655    "incremental-cache",
656    "parallel-compilation",
657] }
658wasmtime-wasi = "29"
659which = "6.0.0"
660windows-core = "0.61"
661wit-component = "0.221"
662workspace-hack = "0.1.0"
663zstd = "0.11"
664
665[workspace.dependencies.async-stripe]
666git = "https://github.com/zed-industries/async-stripe"
667rev = "3672dd4efb7181aa597bf580bf5a2f5d23db6735"
668default-features = false
669features = [
670    "runtime-tokio-hyper-rustls",
671    "billing",
672    "checkout",
673    "events",
674    # The features below are only enabled to get the `events` feature to build.
675    "chrono",
676    "connect",
677]
678
679[workspace.dependencies.windows]
680version = "0.61"
681features = [
682    "Foundation_Numerics",
683    "Storage_Search",
684    "Storage_Streams",
685    "System_Threading",
686    "UI_ViewManagement",
687    "Wdk_System_SystemServices",
688    "Win32_Globalization",
689    "Win32_Graphics_Direct3D",
690    "Win32_Graphics_Direct3D11",
691    "Win32_Graphics_Direct3D_Fxc",
692    "Win32_Graphics_DirectComposition",
693    "Win32_Graphics_DirectWrite",
694    "Win32_Graphics_Dwm",
695    "Win32_Graphics_Dxgi",
696    "Win32_Graphics_Dxgi_Common",
697    "Win32_Graphics_Gdi",
698    "Win32_Graphics_Imaging",
699    "Win32_Networking_WinSock",
700    "Win32_Security",
701    "Win32_Security_Credentials",
702    "Win32_Storage_FileSystem",
703    "Win32_System_Com",
704    "Win32_System_Com_StructuredStorage",
705    "Win32_System_Console",
706    "Win32_System_DataExchange",
707    "Win32_System_IO",
708    "Win32_System_LibraryLoader",
709    "Win32_System_Memory",
710    "Win32_System_Ole",
711    "Win32_System_Pipes",
712    "Win32_System_SystemInformation",
713    "Win32_System_SystemServices",
714    "Win32_System_Threading",
715    "Win32_System_Variant",
716    "Win32_System_WinRT",
717    "Win32_UI_Controls",
718    "Win32_UI_HiDpi",
719    "Win32_UI_Input_Ime",
720    "Win32_UI_Input_KeyboardAndMouse",
721    "Win32_UI_Shell",
722    "Win32_UI_Shell_Common",
723    "Win32_UI_Shell_PropertiesSystem",
724    "Win32_UI_WindowsAndMessaging",
725]
726
727[patch.crates-io]
728notify = { git = "https://github.com/zed-industries/notify.git", rev = "bbb9ea5ae52b253e095737847e367c30653a2e96" }
729notify-types = { git = "https://github.com/zed-industries/notify.git", rev = "bbb9ea5ae52b253e095737847e367c30653a2e96" }
730windows-capture = { git = "https://github.com/zed-industries/windows-capture.git", rev = "f0d6c1b6691db75461b732f6d5ff56eed002eeb9" }
731
732# Makes the workspace hack crate refer to the local one, but only when you're building locally
733workspace-hack = { path = "tooling/workspace-hack" }
734
735[profile.dev]
736split-debuginfo = "unpacked"
737codegen-units = 16
738
739# mirror configuration for crates compiled for the build platform
740# (without this cargo will compile ~400 crates twice)
741[profile.dev.build-override]
742codegen-units = 16
743
744[profile.dev.package]
745taffy = { opt-level = 3 }
746cranelift-codegen = { opt-level = 3 }
747cranelift-codegen-meta = { opt-level = 3 }
748cranelift-codegen-shared = { opt-level = 3 }
749resvg = { opt-level = 3 }
750rustybuzz = { opt-level = 3 }
751ttf-parser = { opt-level = 3 }
752wasmtime-cranelift = { opt-level = 3 }
753wasmtime = { opt-level = 3 }
754# Build single-source-file crates with cg=1 as it helps make `cargo build` of a whole workspace a bit faster
755activity_indicator = { codegen-units = 1 }
756assets = { codegen-units = 1 }
757breadcrumbs = { codegen-units = 1 }
758collections = { codegen-units = 1 }
759command_palette = { codegen-units = 1 }
760command_palette_hooks = { codegen-units = 1 }
761extension_cli = { codegen-units = 1 }
762feature_flags = { codegen-units = 1 }
763file_icons = { codegen-units = 1 }
764fsevent = { codegen-units = 1 }
765image_viewer = { codegen-units = 1 }
766edit_prediction_button = { codegen-units = 1 }
767install_cli = { codegen-units = 1 }
768journal = { codegen-units = 1 }
769lmstudio = { codegen-units = 1 }
770menu = { codegen-units = 1 }
771notifications = { codegen-units = 1 }
772ollama = { codegen-units = 1 }
773outline = { codegen-units = 1 }
774paths = { codegen-units = 1 }
775prettier = { codegen-units = 1 }
776project_symbols = { codegen-units = 1 }
777refineable = { codegen-units = 1 }
778release_channel = { codegen-units = 1 }
779reqwest_client = { codegen-units = 1 }
780rich_text = { codegen-units = 1 }
781semantic_version = { codegen-units = 1 }
782session = { codegen-units = 1 }
783snippet = { codegen-units = 1 }
784snippets_ui = { codegen-units = 1 }
785sqlez_macros = { codegen-units = 1 }
786story = { codegen-units = 1 }
787supermaven_api = { codegen-units = 1 }
788telemetry_events = { codegen-units = 1 }
789theme_selector = { codegen-units = 1 }
790time_format = { codegen-units = 1 }
791ui_input = { codegen-units = 1 }
792zed_actions = { codegen-units = 1 }
793
794[profile.release]
795debug = "limited"
796lto = "thin"
797codegen-units = 1
798
799[profile.release.package]
800zed = { codegen-units = 16 }
801
802[profile.release-fast]
803inherits = "release"
804debug = "full"
805lto = false
806codegen-units = 16
807
808[workspace.lints.rust]
809unexpected_cfgs = { level = "allow" }
810
811[workspace.lints.clippy]
812dbg_macro = "deny"
813todo = "deny"
814
815# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
816# warning on this rule produces a lot of noise.
817single_range_in_vec_init = "allow"
818
819# These are all of the rules that currently have violations in the Zed
820# codebase.
821#
822# We'll want to drive this list down by either:
823# 1. fixing violations of the rule and begin enforcing it
824# 2. deciding we want to allow the rule permanently, at which point
825#    we should codify that separately above.
826#
827# This list shouldn't be added to; it should only get shorter.
828# =============================================================================
829
830# There are a bunch of rules currently failing in the `style` group, so
831# allow all of those, for now.
832style = { level = "allow", priority = -1 }
833
834# Temporary list of style lints that we've fixed so far.
835module_inception = { level = "deny" }
836question_mark = { level = "deny" }
837redundant_closure = { level = "deny" }
838# Individual rules that have violations in the codebase:
839type_complexity = "allow"
840# We often return trait objects from `new` functions.
841new_ret_no_self = { level = "allow" }
842# We have a few `next` functions that differ in lifetimes
843# compared to Iterator::next. Yet, clippy complains about those.
844should_implement_trait = { level = "allow" }
845let_underscore_future = "allow"
846
847# in Rust it can be very tedious to reduce argument count without
848# running afoul of the borrow checker.
849too_many_arguments = "allow"
850
851# We often have large enum variants yet we rarely actually bother with splitting them up.
852large_enum_variant = "allow"
853
854[workspace.metadata.cargo-machete]
855ignored = [
856    "bindgen",
857    "cbindgen",
858    "prost_build",
859    "serde",
860    "component",
861    "documented",
862    "workspace-hack",
863]