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