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