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/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/inline_completion",
 84    "crates/inline_completion_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" }
232agent2 = { path = "crates/agent2" }
233activity_indicator = { path = "crates/activity_indicator" }
234agent_ui = { path = "crates/agent_ui" }
235agent_settings = { path = "crates/agent_settings" }
236agent_servers = { path = "crates/agent_servers" }
237ai = { path = "crates/ai" }
238ai_onboarding = { path = "crates/ai_onboarding" }
239anthropic = { path = "crates/anthropic" }
240askpass = { path = "crates/askpass" }
241assets = { path = "crates/assets" }
242assistant_context = { path = "crates/assistant_context" }
243assistant_slash_command = { path = "crates/assistant_slash_command" }
244assistant_slash_commands = { path = "crates/assistant_slash_commands" }
245assistant_tool = { path = "crates/assistant_tool" }
246assistant_tools = { path = "crates/assistant_tools" }
247audio = { path = "crates/audio" }
248auto_update = { path = "crates/auto_update" }
249auto_update_helper = { path = "crates/auto_update_helper" }
250auto_update_ui = { path = "crates/auto_update_ui" }
251aws_http_client = { path = "crates/aws_http_client" }
252bedrock = { path = "crates/bedrock" }
253breadcrumbs = { path = "crates/breadcrumbs" }
254buffer_diff = { path = "crates/buffer_diff" }
255call = { path = "crates/call" }
256channel = { path = "crates/channel" }
257cli = { path = "crates/cli" }
258client = { path = "crates/client" }
259clock = { path = "crates/clock" }
260cloud_api_client = { path = "crates/cloud_api_client" }
261cloud_api_types = { path = "crates/cloud_api_types" }
262cloud_llm_client = { path = "crates/cloud_llm_client" }
263collab = { path = "crates/collab" }
264collab_ui = { path = "crates/collab_ui" }
265collections = { path = "crates/collections" }
266command_palette = { path = "crates/command_palette" }
267command_palette_hooks = { path = "crates/command_palette_hooks" }
268component = { path = "crates/component" }
269context_server = { path = "crates/context_server" }
270copilot = { path = "crates/copilot" }
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" }
307inline_completion = { path = "crates/inline_completion" }
308inline_completion_button = { path = "crates/inline_completion_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 = {path="../agent-client-protocol"}
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"
471criterion = { version = "0.5", features = ["html_reports"] }
472ctor = "0.4.0"
473dap-types = { git = "https://github.com/zed-industries/dap-types", rev = "1b461b310481d01e02b2603c16d7144b926339f8" }
474dashmap = "6.0"
475derive_more = "0.99.17"
476dirs = "4.0"
477documented = "0.9.1"
478dotenvy = "0.15.0"
479ec4rs = "1.1"
480emojis = "0.6.1"
481env_logger = "0.11"
482exec = "0.3.1"
483fancy-regex = "0.14.0"
484fork = "0.2.0"
485futures = "0.3"
486futures-batch = "0.6.1"
487futures-lite = "1.13"
488git2 = { version = "0.20.1", default-features = false }
489globset = "0.4"
490handlebars = "4.3"
491heck = "0.5"
492heed = { version = "0.21.0", features = ["read-txn-no-tls"] }
493hex = "0.4.3"
494html5ever = "0.27.0"
495http = "1.1"
496http-body = "1.0"
497hyper = "0.14"
498ignore = "0.4.22"
499image = "0.25.1"
500imara-diff = "0.1.8"
501indexmap = { version = "2.7.0", features = ["serde"] }
502indoc = "2"
503inventory = "0.3.19"
504itertools = "0.14.0"
505jj-lib = { git = "https://github.com/jj-vcs/jj", rev = "e18eb8e05efaa153fad5ef46576af145bba1807f" }
506json_dotpath = "1.1"
507jsonschema = "0.30.0"
508jsonwebtoken = "9.3"
509jupyter-protocol = { git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
510jupyter-websocket-client = {  git = "https://github.com/ConradIrwin/runtimed" ,rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
511libc = "0.2"
512libsqlite3-sys = { version = "0.30.1", features = ["bundled"] }
513linkify = "0.10.0"
514log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
515lsp-types = { git = "https://github.com/zed-industries/lsp-types", rev = "39f629bdd03d59abd786ed9fc27e8bca02c0c0ec" }
516markup5ever_rcdom = "0.3.0"
517metal = "0.29"
518moka = { version = "0.12.10", features = ["sync"] }
519naga = { version = "25.0", features = ["wgsl-in"] }
520nanoid = "0.4"
521nbformat = {  git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
522nix = "0.29"
523num-format = "0.4.4"
524objc = "0.2"
525open = "5.0.0"
526ordered-float = "2.1.1"
527palette = { version = "0.7.5", default-features = false, features = ["std"] }
528parking_lot = "0.12.1"
529partial-json-fixer = "0.5.3"
530parse_int = "0.9"
531pathdiff = "0.2"
532pet = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
533pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
534pet-core = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
535pet-fs = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
536pet-pixi = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
537pet-poetry = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
538pet-reporter = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
539portable-pty = "0.9.0"
540postage = { version = "0.5", features = ["futures-traits"] }
541pretty_assertions = { version = "1.3.0", features = ["unstable"] }
542proc-macro2 = "1.0.93"
543profiling = "1"
544prost = "0.9"
545prost-build = "0.9"
546prost-types = "0.9"
547pulldown-cmark = { version = "0.12.0", default-features = false }
548quote = "1.0.9"
549rand = "0.8.5"
550rayon = "1.8"
551ref-cast = "1.0.24"
552regex = "1.5"
553reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "951c770a32f1998d6e999cef3e59e0013e6c4415", default-features = false, features = [
554    "charset",
555    "http2",
556    "macos-system-configuration",
557    "rustls-tls-native-roots",
558    "socks",
559    "stream",
560] }
561rsa = "0.9.6"
562runtimelib = {  git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734", default-features = false, features = [
563    "async-dispatcher-runtime",
564] }
565rust-embed = { version = "8.4", features = ["include-exclude"] }
566rustc-demangle = "0.1.23"
567rustc-hash = "2.1.0"
568rustls = { version = "0.23.26" }
569rustls-platform-verifier = "0.5.0"
570scap = { git = "https://github.com/zed-industries/scap", rev = "808aa5c45b41e8f44729d02e38fd00a2fe2722e7", default-features = false }
571schemars = { version = "1.0", features = ["indexmap2"] }
572semver = "1.0"
573serde = { version = "1.0", features = ["derive", "rc"] }
574serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
575serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
576serde_json_lenient = { version = "0.2", features = [
577    "preserve_order",
578    "raw_value",
579] }
580serde_repr = "0.1"
581sha2 = "0.10"
582shellexpand = "2.1.0"
583shlex = "1.3.0"
584simplelog = "0.12.2"
585smallvec = { version = "1.6", features = ["union"] }
586smol = "2.0"
587sqlformat = "0.2"
588streaming-iterator = "0.1"
589strsim = "0.11"
590strum = { version = "0.27.0", features = ["derive"] }
591subtle = "2.5.0"
592syn = { version = "2.0.101", features = ["full", "extra-traits"] }
593sys-locale = "0.3.1"
594sysinfo = "0.31.0"
595take-until = "0.2.0"
596tempfile = "3.20.0"
597thiserror = "2.0.12"
598tiktoken-rs = "0.7.0"
599time = { version = "0.3", features = [
600    "macros",
601    "parsing",
602    "serde",
603    "serde-well-known",
604    "formatting",
605] }
606tiny_http = "0.8"
607tokio = { version = "1" }
608tokio-tungstenite = { version = "0.26", features = ["__rustls-tls"] }
609toml = "0.8"
610tower-http = "0.4.4"
611tree-sitter = { version = "0.25.6", features = ["wasm"] }
612tree-sitter-bash = "0.25.0"
613tree-sitter-c = "0.23"
614tree-sitter-cpp = "0.23"
615tree-sitter-css = "0.23"
616tree-sitter-diff = "0.1.0"
617tree-sitter-elixir = "0.3"
618tree-sitter-embedded-template = "0.23.0"
619tree-sitter-gitcommit = { git = "https://github.com/zed-industries/tree-sitter-git-commit", rev = "88309716a69dd13ab83443721ba6e0b491d37ee9" }
620tree-sitter-go = "0.23"
621tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c", package = "tree-sitter-gomod" }
622tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
623tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
624tree-sitter-html = "0.23"
625tree-sitter-jsdoc = "0.23"
626tree-sitter-json = "0.24"
627tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
628tree-sitter-python = { git = "https://github.com/zed-industries/tree-sitter-python", rev = "218fcbf3fda3d029225f3dec005cb497d111b35e" }
629tree-sitter-regex = "0.24"
630tree-sitter-ruby = "0.23"
631tree-sitter-rust = "0.24"
632tree-sitter-typescript = "0.23"
633tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
634unicase = "2.6"
635unicode-script = "0.5.7"
636unicode-segmentation = "1.10"
637unindent = "0.2.0"
638url = "2.2"
639urlencoding = "2.1.2"
640uuid = { version = "1.1.2", features = ["v4", "v5", "v7", "serde"] }
641walkdir = "2.5"
642wasm-encoder = "0.221"
643wasmparser = "0.221"
644wasmtime = { version = "29", default-features = false, features = [
645    "async",
646    "demangle",
647    "runtime",
648    "cranelift",
649    "component-model",
650    "incremental-cache",
651    "parallel-compilation",
652] }
653wasmtime-wasi = "29"
654which = "6.0.0"
655windows-core = "0.61"
656wit-component = "0.221"
657workspace-hack = "0.1.0"
658zstd = "0.11"
659
660[workspace.dependencies.async-stripe]
661git = "https://github.com/zed-industries/async-stripe"
662rev = "3672dd4efb7181aa597bf580bf5a2f5d23db6735"
663default-features = false
664features = [
665    "runtime-tokio-hyper-rustls",
666    "billing",
667    "checkout",
668    "events",
669    # The features below are only enabled to get the `events` feature to build.
670    "chrono",
671    "connect",
672]
673
674[workspace.dependencies.windows]
675version = "0.61"
676features = [
677    "Foundation_Numerics",
678    "Storage_Search",
679    "Storage_Streams",
680    "System_Threading",
681    "UI_ViewManagement",
682    "Wdk_System_SystemServices",
683    "Win32_Globalization",
684    "Win32_Graphics_Direct3D",
685    "Win32_Graphics_Direct3D11",
686    "Win32_Graphics_Direct3D_Fxc",
687    "Win32_Graphics_DirectComposition",
688    "Win32_Graphics_DirectWrite",
689    "Win32_Graphics_Dwm",
690    "Win32_Graphics_Dxgi",
691    "Win32_Graphics_Dxgi_Common",
692    "Win32_Graphics_Gdi",
693    "Win32_Graphics_Imaging",
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]