Cargo.toml

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