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