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