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