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] }
569rsa = "0.9.6"
570runtimelib = { git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734", default-features = false, features = [
571 "async-dispatcher-runtime",
572] }
573rust-embed = { version = "8.4", features = ["include-exclude"] }
574rustc-demangle = "0.1.23"
575rustc-hash = "2.1.0"
576rustls = { version = "0.23.26" }
577rustls-platform-verifier = "0.5.0"
578scap = { git = "https://github.com/zed-industries/scap", rev = "808aa5c45b41e8f44729d02e38fd00a2fe2722e7", default-features = false }
579schemars = { version = "1.0", features = ["indexmap2"] }
580semver = "1.0"
581serde = { version = "1.0", features = ["derive", "rc"] }
582serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
583serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
584serde_json_lenient = { version = "0.2", features = [
585 "preserve_order",
586 "raw_value",
587] }
588serde_repr = "0.1"
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"
596streaming-iterator = "0.1"
597strsim = "0.11"
598strum = { version = "0.27.0", features = ["derive"] }
599subtle = "2.5.0"
600syn = { version = "2.0.101", features = ["full", "extra-traits"] }
601sys-locale = "0.3.1"
602sysinfo = "0.31.0"
603take-until = "0.2.0"
604tempfile = "3.20.0"
605thiserror = "2.0.12"
606tiktoken-rs = { git = "https://github.com/zed-industries/tiktoken-rs", rev = "30c32a4522751699adeda0d5840c71c3b75ae73d" }
607time = { version = "0.3", features = [
608 "macros",
609 "parsing",
610 "serde",
611 "serde-well-known",
612 "formatting",
613] }
614tiny_http = "0.8"
615tokio = { version = "1" }
616tokio-tungstenite = { version = "0.26", features = ["__rustls-tls"] }
617toml = "0.8"
618tower-http = "0.4.4"
619tree-sitter = { version = "0.25.6", features = ["wasm"] }
620tree-sitter-bash = "0.25.0"
621tree-sitter-c = "0.23"
622tree-sitter-cpp = "0.23"
623tree-sitter-css = "0.23"
624tree-sitter-diff = "0.1.0"
625tree-sitter-elixir = "0.3"
626tree-sitter-embedded-template = "0.23.0"
627tree-sitter-gitcommit = { git = "https://github.com/zed-industries/tree-sitter-git-commit", rev = "88309716a69dd13ab83443721ba6e0b491d37ee9" }
628tree-sitter-go = "0.23"
629tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c", package = "tree-sitter-gomod" }
630tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
631tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
632tree-sitter-html = "0.23"
633tree-sitter-jsdoc = "0.23"
634tree-sitter-json = "0.24"
635tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
636tree-sitter-python = { git = "https://github.com/zed-industries/tree-sitter-python", rev = "218fcbf3fda3d029225f3dec005cb497d111b35e" }
637tree-sitter-regex = "0.24"
638tree-sitter-ruby = "0.23"
639tree-sitter-rust = "0.24"
640tree-sitter-typescript = "0.23"
641tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
642unicase = "2.6"
643unicode-script = "0.5.7"
644unicode-segmentation = "1.10"
645unindent = "0.2.0"
646url = "2.2"
647urlencoding = "2.1.2"
648uuid = { version = "1.1.2", features = ["v4", "v5", "v7", "serde"] }
649walkdir = "2.5"
650wasm-encoder = "0.221"
651wasmparser = "0.221"
652wasmtime = { version = "29", default-features = false, features = [
653 "async",
654 "demangle",
655 "runtime",
656 "cranelift",
657 "component-model",
658 "incremental-cache",
659 "parallel-compilation",
660] }
661wasmtime-wasi = "29"
662which = "6.0.0"
663windows-core = "0.61"
664wit-component = "0.221"
665workspace-hack = "0.1.0"
666# We can switch back to the published version once https://github.com/infinitefield/yawc/pull/16 is merged and a new
667# version is released.
668yawc = { git = "https://github.com/deviant-forks/yawc", rev = "1899688f3e69ace4545aceb97b2a13881cf26142" }
669zstd = "0.11"
670
671[workspace.dependencies.async-stripe]
672git = "https://github.com/zed-industries/async-stripe"
673rev = "3672dd4efb7181aa597bf580bf5a2f5d23db6735"
674default-features = false
675features = [
676 "runtime-tokio-hyper-rustls",
677 "billing",
678 "checkout",
679 "events",
680 # The features below are only enabled to get the `events` feature to build.
681 "chrono",
682 "connect",
683]
684
685[workspace.dependencies.windows]
686version = "0.61"
687features = [
688 "Foundation_Numerics",
689 "Storage_Search",
690 "Storage_Streams",
691 "System_Threading",
692 "UI_ViewManagement",
693 "Wdk_System_SystemServices",
694 "Win32_Globalization",
695 "Win32_Graphics_Direct3D",
696 "Win32_Graphics_Direct3D11",
697 "Win32_Graphics_Direct3D_Fxc",
698 "Win32_Graphics_DirectComposition",
699 "Win32_Graphics_DirectWrite",
700 "Win32_Graphics_Dwm",
701 "Win32_Graphics_Dxgi",
702 "Win32_Graphics_Dxgi_Common",
703 "Win32_Graphics_Gdi",
704 "Win32_Graphics_Imaging",
705 "Win32_Networking_WinSock",
706 "Win32_Security",
707 "Win32_Security_Credentials",
708 "Win32_Storage_FileSystem",
709 "Win32_System_Com",
710 "Win32_System_Com_StructuredStorage",
711 "Win32_System_Console",
712 "Win32_System_DataExchange",
713 "Win32_System_IO",
714 "Win32_System_LibraryLoader",
715 "Win32_System_Memory",
716 "Win32_System_Ole",
717 "Win32_System_Pipes",
718 "Win32_System_SystemInformation",
719 "Win32_System_SystemServices",
720 "Win32_System_Threading",
721 "Win32_System_Variant",
722 "Win32_System_WinRT",
723 "Win32_UI_Controls",
724 "Win32_UI_HiDpi",
725 "Win32_UI_Input_Ime",
726 "Win32_UI_Input_KeyboardAndMouse",
727 "Win32_UI_Shell",
728 "Win32_UI_Shell_Common",
729 "Win32_UI_Shell_PropertiesSystem",
730 "Win32_UI_WindowsAndMessaging",
731]
732
733[patch.crates-io]
734notify = { git = "https://github.com/zed-industries/notify.git", rev = "bbb9ea5ae52b253e095737847e367c30653a2e96" }
735notify-types = { git = "https://github.com/zed-industries/notify.git", rev = "bbb9ea5ae52b253e095737847e367c30653a2e96" }
736windows-capture = { git = "https://github.com/zed-industries/windows-capture.git", rev = "f0d6c1b6691db75461b732f6d5ff56eed002eeb9" }
737
738# Makes the workspace hack crate refer to the local one, but only when you're building locally
739workspace-hack = { path = "tooling/workspace-hack" }
740
741[profile.dev]
742split-debuginfo = "unpacked"
743codegen-units = 16
744
745# mirror configuration for crates compiled for the build platform
746# (without this cargo will compile ~400 crates twice)
747[profile.dev.build-override]
748codegen-units = 16
749
750[profile.dev.package]
751taffy = { opt-level = 3 }
752cranelift-codegen = { opt-level = 3 }
753cranelift-codegen-meta = { opt-level = 3 }
754cranelift-codegen-shared = { opt-level = 3 }
755resvg = { opt-level = 3 }
756rustybuzz = { opt-level = 3 }
757ttf-parser = { opt-level = 3 }
758wasmtime-cranelift = { opt-level = 3 }
759wasmtime = { opt-level = 3 }
760# Build single-source-file crates with cg=1 as it helps make `cargo build` of a whole workspace a bit faster
761activity_indicator = { codegen-units = 1 }
762assets = { codegen-units = 1 }
763breadcrumbs = { codegen-units = 1 }
764collections = { codegen-units = 1 }
765command_palette = { codegen-units = 1 }
766command_palette_hooks = { codegen-units = 1 }
767extension_cli = { codegen-units = 1 }
768feature_flags = { codegen-units = 1 }
769file_icons = { codegen-units = 1 }
770fsevent = { codegen-units = 1 }
771image_viewer = { codegen-units = 1 }
772edit_prediction_button = { codegen-units = 1 }
773install_cli = { codegen-units = 1 }
774journal = { codegen-units = 1 }
775lmstudio = { codegen-units = 1 }
776menu = { codegen-units = 1 }
777notifications = { codegen-units = 1 }
778ollama = { codegen-units = 1 }
779outline = { codegen-units = 1 }
780paths = { codegen-units = 1 }
781prettier = { codegen-units = 1 }
782project_symbols = { codegen-units = 1 }
783refineable = { codegen-units = 1 }
784release_channel = { codegen-units = 1 }
785reqwest_client = { codegen-units = 1 }
786rich_text = { codegen-units = 1 }
787semantic_version = { codegen-units = 1 }
788session = { codegen-units = 1 }
789snippet = { codegen-units = 1 }
790snippets_ui = { codegen-units = 1 }
791sqlez_macros = { codegen-units = 1 }
792story = { codegen-units = 1 }
793supermaven_api = { codegen-units = 1 }
794telemetry_events = { codegen-units = 1 }
795theme_selector = { codegen-units = 1 }
796time_format = { codegen-units = 1 }
797ui_input = { codegen-units = 1 }
798zed_actions = { codegen-units = 1 }
799
800[profile.release]
801debug = "limited"
802lto = "thin"
803codegen-units = 1
804
805[profile.release.package]
806zed = { codegen-units = 16 }
807
808[profile.release-fast]
809inherits = "release"
810debug = "full"
811lto = false
812codegen-units = 16
813
814[workspace.lints.rust]
815unexpected_cfgs = { level = "allow" }
816
817[workspace.lints.clippy]
818dbg_macro = "deny"
819todo = "deny"
820
821# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
822# warning on this rule produces a lot of noise.
823single_range_in_vec_init = "allow"
824
825# These are all of the rules that currently have violations in the Zed
826# codebase.
827#
828# We'll want to drive this list down by either:
829# 1. fixing violations of the rule and begin enforcing it
830# 2. deciding we want to allow the rule permanently, at which point
831# we should codify that separately above.
832#
833# This list shouldn't be added to; it should only get shorter.
834# =============================================================================
835
836# There are a bunch of rules currently failing in the `style` group, so
837# allow all of those, for now.
838style = { level = "allow", priority = -1 }
839
840# Temporary list of style lints that we've fixed so far.
841module_inception = { level = "deny" }
842question_mark = { level = "deny" }
843redundant_closure = { level = "deny" }
844declare_interior_mutable_const = { level = "deny" }
845# Individual rules that have violations in the codebase:
846type_complexity = "allow"
847# We often return trait objects from `new` functions.
848new_ret_no_self = { level = "allow" }
849# We have a few `next` functions that differ in lifetimes
850# compared to Iterator::next. Yet, clippy complains about those.
851should_implement_trait = { level = "allow" }
852let_underscore_future = "allow"
853
854# in Rust it can be very tedious to reduce argument count without
855# running afoul of the borrow checker.
856too_many_arguments = "allow"
857
858# We often have large enum variants yet we rarely actually bother with splitting them up.
859large_enum_variant = "allow"
860
861[workspace.metadata.cargo-machete]
862ignored = [
863 "bindgen",
864 "cbindgen",
865 "prost_build",
866 "serde",
867 "component",
868 "documented",
869 "workspace-hack",
870]