Cargo.toml

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