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