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