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