Cargo.toml

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