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