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