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