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