Cargo.toml

  1[workspace]
  2resolver = "2"
  3members = [
  4    "crates/acp_thread",
  5    "crates/action_log",
  6    "crates/activity_indicator",
  7    "crates/agent",
  8    "crates/agent2",
  9    "crates/agent_servers",
 10    "crates/agent_settings",
 11    "crates/agent_ui",
 12    "crates/ai_onboarding",
 13    "crates/anthropic",
 14    "crates/askpass",
 15    "crates/assets",
 16    "crates/assistant_context",
 17    "crates/assistant_slash_command",
 18    "crates/assistant_slash_commands",
 19    "crates/assistant_tool",
 20    "crates/assistant_tools",
 21    "crates/audio",
 22    "crates/auto_update",
 23    "crates/auto_update_helper",
 24    "crates/auto_update_ui",
 25    "crates/aws_http_client",
 26    "crates/bedrock",
 27    "crates/breadcrumbs",
 28    "crates/buffer_diff",
 29    "crates/call",
 30    "crates/channel",
 31    "crates/cli",
 32    "crates/client",
 33    "crates/clock",
 34    "crates/cloud_api_client",
 35    "crates/cloud_api_types",
 36    "crates/cloud_llm_client",
 37    "crates/collab",
 38    "crates/collab_ui",
 39    "crates/collections",
 40    "crates/command_palette",
 41    "crates/command_palette_hooks",
 42    "crates/component",
 43    "crates/context_server",
 44    "crates/copilot",
 45    "crates/crashes",
 46    "crates/credentials_provider",
 47    "crates/dap",
 48    "crates/dap_adapters",
 49    "crates/db",
 50    "crates/debug_adapter_extension",
 51    "crates/debugger_tools",
 52    "crates/debugger_ui",
 53    "crates/deepseek",
 54    "crates/diagnostics",
 55    "crates/docs_preprocessor",
 56    "crates/editor",
 57    "crates/eval",
 58    "crates/explorer_command_injector",
 59    "crates/extension",
 60    "crates/extension_api",
 61    "crates/extension_cli",
 62    "crates/extension_host",
 63    "crates/extensions_ui",
 64    "crates/feature_flags",
 65    "crates/feedback",
 66    "crates/file_finder",
 67    "crates/file_icons",
 68    "crates/fs",
 69    "crates/fsevent",
 70    "crates/fuzzy",
 71    "crates/git",
 72    "crates/git_hosting_providers",
 73    "crates/git_ui",
 74    "crates/go_to_line",
 75    "crates/google_ai",
 76    "crates/gpui",
 77    "crates/gpui_macros",
 78    "crates/gpui_tokio",
 79    "crates/html_to_markdown",
 80    "crates/http_client",
 81    "crates/http_client_tls",
 82    "crates/icons",
 83    "crates/image_viewer",
 84    "crates/edit_prediction",
 85    "crates/edit_prediction_button",
 86    "crates/inspector_ui",
 87    "crates/install_cli",
 88    "crates/jj",
 89    "crates/jj_ui",
 90    "crates/journal",
 91    "crates/language",
 92    "crates/language_extension",
 93    "crates/language_model",
 94    "crates/language_models",
 95    "crates/language_selector",
 96    "crates/language_tools",
 97    "crates/languages",
 98    "crates/livekit_api",
 99    "crates/livekit_client",
100    "crates/lmstudio",
101    "crates/lsp",
102    "crates/markdown",
103    "crates/markdown_preview",
104    "crates/media",
105    "crates/menu",
106    "crates/migrator",
107    "crates/mistral",
108    "crates/multi_buffer",
109    "crates/nc",
110    "crates/net",
111    "crates/node_runtime",
112    "crates/notifications",
113    "crates/ollama",
114    "crates/onboarding",
115    "crates/open_ai",
116    "crates/open_router",
117    "crates/outline",
118    "crates/outline_panel",
119    "crates/panel",
120    "crates/paths",
121    "crates/picker",
122    "crates/prettier",
123    "crates/project",
124    "crates/project_panel",
125    "crates/project_symbols",
126    "crates/prompt_store",
127    "crates/proto",
128    "crates/recent_projects",
129    "crates/refineable",
130    "crates/refineable/derive_refineable",
131    "crates/release_channel",
132    "crates/remote",
133    "crates/remote_server",
134    "crates/repl",
135    "crates/reqwest_client",
136    "crates/rich_text",
137    "crates/rope",
138    "crates/rpc",
139    "crates/rules_library",
140    "crates/schema_generator",
141    "crates/search",
142    "crates/semantic_index",
143    "crates/semantic_version",
144    "crates/session",
145    "crates/settings",
146    "crates/settings_profile_selector",
147    "crates/settings_ui",
148    "crates/snippet",
149    "crates/snippet_provider",
150    "crates/snippets_ui",
151    "crates/sqlez",
152    "crates/sqlez_macros",
153    "crates/story",
154    "crates/storybook",
155    "crates/streaming_diff",
156    "crates/sum_tree",
157    "crates/supermaven",
158    "crates/supermaven_api",
159    "crates/svg_preview",
160    "crates/tab_switcher",
161    "crates/task",
162    "crates/tasks_ui",
163    "crates/telemetry",
164    "crates/telemetry_events",
165    "crates/terminal",
166    "crates/terminal_view",
167    "crates/text",
168    "crates/theme",
169    "crates/theme_extension",
170    "crates/theme_importer",
171    "crates/theme_selector",
172    "crates/time_format",
173    "crates/title_bar",
174    "crates/toolchain_selector",
175    "crates/ui",
176    "crates/ui_input",
177    "crates/ui_macros",
178    "crates/ui_prompt",
179    "crates/util",
180    "crates/util_macros",
181    "crates/vercel",
182    "crates/vim",
183    "crates/vim_mode_setting",
184    "crates/watch",
185    "crates/web_search",
186    "crates/web_search_providers",
187    "crates/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/glsl",
202    "extensions/html",
203    "extensions/proto",
204    "extensions/ruff",
205    "extensions/slash-commands-example",
206    "extensions/snippets",
207    "extensions/test-extension",
208    "extensions/toml",
209
210    #
211    # Tooling
212    #
213
214    "tooling/workspace-hack",
215    "tooling/xtask",
216]
217default-members = ["crates/zed"]
218
219[workspace.package]
220publish = false
221edition = "2024"
222
223[workspace.dependencies]
224
225#
226# Workspace member crates
227#
228
229acp_thread = { path = "crates/acp_thread" }
230action_log = { path = "crates/action_log" }
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" }
271crashes = { path = "crates/crashes" }
272credentials_provider = { path = "crates/credentials_provider" }
273dap = { path = "crates/dap" }
274dap_adapters = { path = "crates/dap_adapters" }
275db = { path = "crates/db" }
276debug_adapter_extension = { path = "crates/debug_adapter_extension" }
277debugger_tools = { path = "crates/debugger_tools" }
278debugger_ui = { path = "crates/debugger_ui" }
279deepseek = { path = "crates/deepseek" }
280diagnostics = { path = "crates/diagnostics" }
281editor = { path = "crates/editor" }
282extension = { path = "crates/extension" }
283extension_host = { path = "crates/extension_host" }
284extensions_ui = { path = "crates/extensions_ui" }
285feature_flags = { path = "crates/feature_flags" }
286feedback = { path = "crates/feedback" }
287file_finder = { path = "crates/file_finder" }
288file_icons = { path = "crates/file_icons" }
289fs = { path = "crates/fs" }
290fsevent = { path = "crates/fsevent" }
291fuzzy = { path = "crates/fuzzy" }
292git = { path = "crates/git" }
293git_hosting_providers = { path = "crates/git_hosting_providers" }
294git_ui = { path = "crates/git_ui" }
295go_to_line = { path = "crates/go_to_line" }
296google_ai = { path = "crates/google_ai" }
297gpui = { path = "crates/gpui", default-features = false, features = [
298    "http_client",
299] }
300gpui_macros = { path = "crates/gpui_macros" }
301gpui_tokio = { path = "crates/gpui_tokio" }
302html_to_markdown = { path = "crates/html_to_markdown" }
303http_client = { path = "crates/http_client" }
304http_client_tls = { path = "crates/http_client_tls" }
305icons = { path = "crates/icons" }
306image_viewer = { path = "crates/image_viewer" }
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" }
363rodio = { version = "0.21.1", default-features = false }
364rope = { path = "crates/rope" }
365rpc = { path = "crates/rpc" }
366rules_library = { path = "crates/rules_library" }
367search = { path = "crates/search" }
368semantic_index = { path = "crates/semantic_index" }
369semantic_version = { path = "crates/semantic_version" }
370session = { path = "crates/session" }
371settings = { path = "crates/settings" }
372settings_ui = { path = "crates/settings_ui" }
373snippet = { path = "crates/snippet" }
374snippet_provider = { path = "crates/snippet_provider" }
375snippets_ui = { path = "crates/snippets_ui" }
376sqlez = { path = "crates/sqlez" }
377sqlez_macros = { path = "crates/sqlez_macros" }
378story = { path = "crates/story" }
379storybook = { path = "crates/storybook" }
380streaming_diff = { path = "crates/streaming_diff" }
381sum_tree = { path = "crates/sum_tree" }
382supermaven = { path = "crates/supermaven" }
383supermaven_api = { path = "crates/supermaven_api" }
384tab_switcher = { path = "crates/tab_switcher" }
385task = { path = "crates/task" }
386tasks_ui = { path = "crates/tasks_ui" }
387telemetry = { path = "crates/telemetry" }
388telemetry_events = { path = "crates/telemetry_events" }
389terminal = { path = "crates/terminal" }
390terminal_view = { path = "crates/terminal_view" }
391text = { path = "crates/text" }
392theme = { path = "crates/theme" }
393theme_extension = { path = "crates/theme_extension" }
394theme_importer = { path = "crates/theme_importer" }
395theme_selector = { path = "crates/theme_selector" }
396time_format = { path = "crates/time_format" }
397title_bar = { path = "crates/title_bar" }
398toolchain_selector = { path = "crates/toolchain_selector" }
399ui = { path = "crates/ui" }
400ui_input = { path = "crates/ui_input" }
401ui_macros = { path = "crates/ui_macros" }
402ui_prompt = { path = "crates/ui_prompt" }
403util = { path = "crates/util" }
404util_macros = { path = "crates/util_macros" }
405vercel = { path = "crates/vercel" }
406vim = { path = "crates/vim" }
407vim_mode_setting = { path = "crates/vim_mode_setting" }
408
409watch = { path = "crates/watch" }
410web_search = { path = "crates/web_search" }
411web_search_providers = { path = "crates/web_search_providers" }
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.30"
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"] }
462ciborium = "0.2"
463circular-buffer = "1.0"
464clap = { version = "4.4", features = ["derive"] }
465cocoa = "0.26"
466cocoa-foundation = "0.2.0"
467convert_case = "0.8.0"
468core-foundation = "0.10.0"
469core-foundation-sys = "0.8.6"
470core-video = { version = "0.4.3", features = ["metal"] }
471cpal = "0.16"
472crash-handler = "0.6"
473criterion = { version = "0.5", features = ["html_reports"] }
474ctor = "0.4.0"
475dap-types = { git = "https://github.com/zed-industries/dap-types", rev = "1b461b310481d01e02b2603c16d7144b926339f8" }
476dashmap = "6.0"
477derive_more = "0.99.17"
478dirs = "4.0"
479documented = "0.9.1"
480dotenvy = "0.15.0"
481ec4rs = "1.1"
482emojis = "0.6.1"
483env_logger = "0.11"
484exec = "0.3.1"
485fancy-regex = "0.14.0"
486fork = "0.2.0"
487futures = "0.3"
488futures-batch = "0.6.1"
489futures-lite = "1.13"
490git2 = { version = "0.20.1", default-features = false }
491globset = "0.4"
492handlebars = "4.3"
493heck = "0.5"
494heed = { version = "0.21.0", features = ["read-txn-no-tls"] }
495hex = "0.4.3"
496html5ever = "0.27.0"
497http = "1.1"
498http-body = "1.0"
499hyper = "0.14"
500ignore = "0.4.22"
501image = "0.25.1"
502imara-diff = "0.1.8"
503indexmap = { version = "2.7.0", features = ["serde"] }
504indoc = "2"
505inventory = "0.3.19"
506itertools = "0.14.0"
507jj-lib = { git = "https://github.com/jj-vcs/jj", rev = "e18eb8e05efaa153fad5ef46576af145bba1807f" }
508json_dotpath = "1.1"
509jsonschema = "0.30.0"
510jsonwebtoken = "9.3"
511jupyter-protocol = { git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
512jupyter-websocket-client = {  git = "https://github.com/ConradIrwin/runtimed" ,rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
513libc = "0.2"
514libsqlite3-sys = { version = "0.30.1", features = ["bundled"] }
515linkify = "0.10.0"
516log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
517lsp-types = { git = "https://github.com/zed-industries/lsp-types", rev = "39f629bdd03d59abd786ed9fc27e8bca02c0c0ec" }
518mach2 = "0.5"
519markup5ever_rcdom = "0.3.0"
520metal = "0.29"
521minidumper = "0.8"
522moka = { version = "0.12.10", features = ["sync"] }
523naga = { version = "25.0", features = ["wgsl-in"] }
524nanoid = "0.4"
525nbformat = {  git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
526nix = "0.29"
527num-format = "0.4.4"
528objc = "0.2"
529open = "5.0.0"
530ordered-float = "2.1.1"
531palette = { version = "0.7.5", default-features = false, features = ["std"] }
532parking_lot = "0.12.1"
533partial-json-fixer = "0.5.3"
534parse_int = "0.9"
535pathdiff = "0.2"
536pet = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
537pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
538pet-core = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
539pet-fs = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
540pet-pixi = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
541pet-poetry = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
542pet-reporter = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
543portable-pty = "0.9.0"
544postage = { version = "0.5", features = ["futures-traits"] }
545pretty_assertions = { version = "1.3.0", features = ["unstable"] }
546proc-macro2 = "1.0.93"
547profiling = "1"
548prost = "0.9"
549prost-build = "0.9"
550prost-types = "0.9"
551pulldown-cmark = { version = "0.12.0", default-features = false }
552quote = "1.0.9"
553rand = "0.8.5"
554rayon = "1.8"
555ref-cast = "1.0.24"
556regex = "1.5"
557reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "951c770a32f1998d6e999cef3e59e0013e6c4415", default-features = false, features = [
558    "charset",
559    "http2",
560    "macos-system-configuration",
561    "multipart",
562    "rustls-tls-native-roots",
563    "socks",
564    "stream",
565] }
566rsa = "0.9.6"
567runtimelib = {  git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734", default-features = false, features = [
568    "async-dispatcher-runtime",
569] }
570rust-embed = { version = "8.4", features = ["include-exclude"] }
571rustc-demangle = "0.1.23"
572rustc-hash = "2.1.0"
573rustls = { version = "0.23.26" }
574rustls-platform-verifier = "0.5.0"
575scap = { git = "https://github.com/zed-industries/scap", rev = "808aa5c45b41e8f44729d02e38fd00a2fe2722e7", default-features = false }
576schemars = { version = "1.0", features = ["indexmap2"] }
577semver = "1.0"
578serde = { version = "1.0", features = ["derive", "rc"] }
579serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
580serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
581serde_json_lenient = { version = "0.2", features = [
582    "preserve_order",
583    "raw_value",
584] }
585serde_repr = "0.1"
586serde_urlencoded = "0.7"
587sha2 = "0.10"
588shellexpand = "2.1.0"
589shlex = "1.3.0"
590simplelog = "0.12.2"
591smallvec = { version = "1.6", features = ["union"] }
592smol = "2.0"
593sqlformat = "0.2"
594stacksafe = "0.1"
595streaming-iterator = "0.1"
596strsim = "0.11"
597strum = { version = "0.27.0", features = ["derive"] }
598subtle = "2.5.0"
599syn = { version = "2.0.101", features = ["full", "extra-traits"] }
600sys-locale = "0.3.1"
601sysinfo = "0.31.0"
602take-until = "0.2.0"
603tempfile = "3.20.0"
604thiserror = "2.0.12"
605tiktoken-rs = { git = "https://github.com/zed-industries/tiktoken-rs", rev = "30c32a4522751699adeda0d5840c71c3b75ae73d" }
606time = { version = "0.3", features = [
607    "macros",
608    "parsing",
609    "serde",
610    "serde-well-known",
611    "formatting",
612] }
613tiny_http = "0.8"
614tokio = { version = "1" }
615tokio-tungstenite = { version = "0.26", features = ["__rustls-tls"] }
616toml = "0.8"
617tower-http = "0.4.4"
618tree-sitter = { version = "0.25.6", features = ["wasm"] }
619tree-sitter-bash = "0.25.0"
620tree-sitter-c = "0.23"
621tree-sitter-cpp = "0.23"
622tree-sitter-css = "0.23"
623tree-sitter-diff = "0.1.0"
624tree-sitter-elixir = "0.3"
625tree-sitter-embedded-template = "0.23.0"
626tree-sitter-gitcommit = { git = "https://github.com/zed-industries/tree-sitter-git-commit", rev = "88309716a69dd13ab83443721ba6e0b491d37ee9" }
627tree-sitter-go = "0.23"
628tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c", package = "tree-sitter-gomod" }
629tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
630tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
631tree-sitter-html = "0.23"
632tree-sitter-jsdoc = "0.23"
633tree-sitter-json = "0.24"
634tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
635tree-sitter-python = { git = "https://github.com/zed-industries/tree-sitter-python", rev = "218fcbf3fda3d029225f3dec005cb497d111b35e" }
636tree-sitter-regex = "0.24"
637tree-sitter-ruby = "0.23"
638tree-sitter-rust = "0.24"
639tree-sitter-typescript = "0.23"
640tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
641unicase = "2.6"
642unicode-script = "0.5.7"
643unicode-segmentation = "1.10"
644unindent = "0.2.0"
645url = "2.2"
646urlencoding = "2.1.2"
647uuid = { version = "1.1.2", features = ["v4", "v5", "v7", "serde"] }
648walkdir = "2.5"
649wasm-encoder = "0.221"
650wasmparser = "0.221"
651wasmtime = { version = "29", default-features = false, features = [
652    "async",
653    "demangle",
654    "runtime",
655    "cranelift",
656    "component-model",
657    "incremental-cache",
658    "parallel-compilation",
659] }
660wasmtime-wasi = "29"
661which = "6.0.0"
662windows-core = "0.61"
663wit-component = "0.221"
664workspace-hack = "0.1.0"
665yawc = "0.2.5"
666zstd = "0.11"
667
668[workspace.dependencies.windows]
669version = "0.61"
670features = [
671    "Foundation_Numerics",
672    "Storage_Search",
673    "Storage_Streams",
674    "System_Threading",
675    "UI_ViewManagement",
676    "Wdk_System_SystemServices",
677    "Win32_Globalization",
678    "Win32_Graphics_Direct3D",
679    "Win32_Graphics_Direct3D11",
680    "Win32_Graphics_Direct3D_Fxc",
681    "Win32_Graphics_DirectComposition",
682    "Win32_Graphics_DirectWrite",
683    "Win32_Graphics_Dwm",
684    "Win32_Graphics_Dxgi",
685    "Win32_Graphics_Dxgi_Common",
686    "Win32_Graphics_Gdi",
687    "Win32_Graphics_Imaging",
688    "Win32_Networking_WinSock",
689    "Win32_Security",
690    "Win32_Security_Credentials",
691    "Win32_Storage_FileSystem",
692    "Win32_System_Com",
693    "Win32_System_Com_StructuredStorage",
694    "Win32_System_Console",
695    "Win32_System_DataExchange",
696    "Win32_System_IO",
697    "Win32_System_LibraryLoader",
698    "Win32_System_Memory",
699    "Win32_System_Ole",
700    "Win32_System_Performance",
701    "Win32_System_Pipes",
702    "Win32_System_SystemInformation",
703    "Win32_System_SystemServices",
704    "Win32_System_Threading",
705    "Win32_System_Variant",
706    "Win32_System_WinRT",
707    "Win32_UI_Controls",
708    "Win32_UI_HiDpi",
709    "Win32_UI_Input_Ime",
710    "Win32_UI_Input_KeyboardAndMouse",
711    "Win32_UI_Shell",
712    "Win32_UI_Shell_Common",
713    "Win32_UI_Shell_PropertiesSystem",
714    "Win32_UI_WindowsAndMessaging",
715]
716
717[patch.crates-io]
718notify = { git = "https://github.com/zed-industries/notify.git", rev = "bbb9ea5ae52b253e095737847e367c30653a2e96" }
719notify-types = { git = "https://github.com/zed-industries/notify.git", rev = "bbb9ea5ae52b253e095737847e367c30653a2e96" }
720windows-capture = { git = "https://github.com/zed-industries/windows-capture.git", rev = "f0d6c1b6691db75461b732f6d5ff56eed002eeb9" }
721
722# Makes the workspace hack crate refer to the local one, but only when you're building locally
723workspace-hack = { path = "tooling/workspace-hack" }
724
725[profile.dev]
726split-debuginfo = "unpacked"
727codegen-units = 16
728
729# mirror configuration for crates compiled for the build platform
730# (without this cargo will compile ~400 crates twice)
731[profile.dev.build-override]
732codegen-units = 16
733
734[profile.dev.package]
735taffy = { opt-level = 3 }
736cranelift-codegen = { opt-level = 3 }
737cranelift-codegen-meta = { opt-level = 3 }
738cranelift-codegen-shared = { opt-level = 3 }
739resvg = { opt-level = 3 }
740rustybuzz = { opt-level = 3 }
741ttf-parser = { opt-level = 3 }
742wasmtime-cranelift = { opt-level = 3 }
743wasmtime = { opt-level = 3 }
744# Build single-source-file crates with cg=1 as it helps make `cargo build` of a whole workspace a bit faster
745activity_indicator = { codegen-units = 1 }
746assets = { codegen-units = 1 }
747breadcrumbs = { codegen-units = 1 }
748collections = { codegen-units = 1 }
749command_palette = { codegen-units = 1 }
750command_palette_hooks = { codegen-units = 1 }
751extension_cli = { codegen-units = 1 }
752feature_flags = { codegen-units = 1 }
753file_icons = { codegen-units = 1 }
754fsevent = { codegen-units = 1 }
755image_viewer = { codegen-units = 1 }
756edit_prediction_button = { codegen-units = 1 }
757install_cli = { codegen-units = 1 }
758journal = { codegen-units = 1 }
759lmstudio = { codegen-units = 1 }
760menu = { codegen-units = 1 }
761notifications = { codegen-units = 1 }
762ollama = { codegen-units = 1 }
763outline = { codegen-units = 1 }
764paths = { codegen-units = 1 }
765prettier = { codegen-units = 1 }
766project_symbols = { codegen-units = 1 }
767refineable = { codegen-units = 1 }
768release_channel = { codegen-units = 1 }
769reqwest_client = { codegen-units = 1 }
770rich_text = { codegen-units = 1 }
771semantic_version = { codegen-units = 1 }
772session = { codegen-units = 1 }
773snippet = { codegen-units = 1 }
774snippets_ui = { codegen-units = 1 }
775sqlez_macros = { codegen-units = 1 }
776story = { codegen-units = 1 }
777supermaven_api = { codegen-units = 1 }
778telemetry_events = { codegen-units = 1 }
779theme_selector = { codegen-units = 1 }
780time_format = { codegen-units = 1 }
781ui_input = { codegen-units = 1 }
782zed_actions = { codegen-units = 1 }
783
784[profile.release]
785debug = "limited"
786lto = "thin"
787codegen-units = 1
788
789[profile.release.package]
790zed = { codegen-units = 16 }
791
792[profile.release-fast]
793inherits = "release"
794debug = "full"
795lto = false
796codegen-units = 16
797
798[workspace.lints.rust]
799unexpected_cfgs = { level = "allow" }
800
801[workspace.lints.clippy]
802dbg_macro = "deny"
803todo = "deny"
804
805# trying this out
806redundant_clone = "deny"
807
808# We currently do not restrict any style rules
809# as it slows down shipping code to Zed.
810#
811# Running ./script/clippy can take several minutes, and so it's
812# common to skip that step and let CI do it. Any unexpected failures
813# (which also take minutes to discover) thus require switching back
814# to an old branch, manual fixing, and re-pushing.
815#
816# In the future we could improve this by either making sure
817# Zed can surface clippy errors in diagnostics (in addition to the
818# rust-analyzer errors), or by having CI fix style nits automatically.
819style = { level = "allow", priority = -1 }
820
821# Individual rules that have violations in the codebase:
822type_complexity = "allow"
823let_underscore_future = "allow"
824
825# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
826# warning on this rule produces a lot of noise.
827single_range_in_vec_init = "allow"
828
829# in Rust it can be very tedious to reduce argument count without
830# running afoul of the borrow checker.
831too_many_arguments = "allow"
832
833# We often have large enum variants yet we rarely actually bother with splitting them up.
834large_enum_variant = "allow"
835
836[workspace.metadata.cargo-machete]
837ignored = [
838    "bindgen",
839    "cbindgen",
840    "prost_build",
841    "serde",
842    "component",
843    "documented",
844    "workspace-hack",
845]