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