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.6.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"
403git2 = { version = "0.19", default-features = false }
404globset = "0.4"
405handlebars = "4.3"
406heed = { version = "0.21.0", features = ["read-txn-no-tls"] }
407hex = "0.4.3"
408html5ever = "0.27.0"
409hyper = "0.14"
410http = "1.1"
411ignore = "0.4.22"
412image = "0.25.1"
413indexmap = { version = "2.7.0", features = ["serde"] }
414indoc = "2"
415itertools = "0.14.0"
416jsonwebtoken = "9.3"
417jupyter-protocol = { version = "0.6.0" }
418jupyter-websocket-client = { version = "0.9.0" }
419libc = "0.2"
420libsqlite3-sys = { version = "0.30.1", features = ["bundled"] }
421linkify = "0.10.0"
422livekit = { git = "https://github.com/zed-industries/livekit-rust-sdks", rev="060964da10574cd9bf06463a53bf6e0769c5c45e", features = ["dispatcher", "services-dispatcher", "rustls-tls-native-roots"], default-features = false }
423log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
424markup5ever_rcdom = "0.3.0"
425nanoid = "0.4"
426nbformat = { version = "0.10.0" }
427nix = "0.29"
428num-format = "0.4.4"
429ordered-float = "2.1.1"
430palette = { version = "0.7.5", default-features = false, features = ["std"] }
431parking_lot = "0.12.1"
432pathdiff = "0.2"
433pet = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
434pet-fs = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
435pet-pixi = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
436pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
437pet-core = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
438pet-poetry = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
439pet-reporter = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
440postage = { version = "0.5", features = ["futures-traits"] }
441pretty_assertions = { version = "1.3.0", features = ["unstable"] }
442profiling = "1"
443prost = "0.9"
444prost-build = "0.9"
445prost-types = "0.9"
446pulldown-cmark = { version = "0.12.0", default-features = false }
447rand = "0.8.5"
448rayon = "1.8"
449regex = "1.5"
450repair_json = "0.1.0"
451reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "fd110f6998da16bbca97b6dddda9be7827c50e29", default-features = false, features = [
452    "charset",
453    "http2",
454    "macos-system-configuration",
455    "rustls-tls-native-roots",
456    "socks",
457    "stream",
458] }
459rsa = "0.9.6"
460runtimelib = { version = "0.25.0", default-features = false, features = [
461    "async-dispatcher-runtime",
462] }
463rustc-demangle = "0.1.23"
464rust-embed = { version = "8.4", features = ["include-exclude"] }
465rustc-hash = "2.1.0"
466rustls = "0.21.12"
467rustls-native-certs = "0.8.0"
468schemars = { version = "0.8", features = ["impl_json_schema", "indexmap2"] }
469semver = "1.0"
470serde = { version = "1.0", features = ["derive", "rc"] }
471serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
472serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
473serde_json_lenient = { version = "0.2", features = [
474    "preserve_order",
475    "raw_value",
476] }
477serde_repr = "0.1"
478sha2 = "0.10"
479shellexpand = "2.1.0"
480shlex = "1.3.0"
481signal-hook = "0.3.17"
482similar = "1.3"
483simplelog = "0.12.2"
484smallvec = { version = "1.6", features = ["union"] }
485smol = "2.0"
486sqlformat = "0.2"
487strsim = "0.11"
488strum = { version = "0.26.0", features = ["derive"] }
489subtle = "2.5.0"
490sys-locale = "0.3.1"
491sysinfo = "0.31.0"
492take-until = "0.2.0"
493tempfile = "3.9.0"
494thiserror = "1.0.29"
495tiktoken-rs = "0.6.0"
496time = { version = "0.3", features = [
497    "macros",
498    "parsing",
499    "serde",
500    "serde-well-known",
501    "formatting",
502] }
503tiny_http = "0.8"
504toml = "0.8"
505tokio = { version = "1" }
506tower-http = "0.4.4"
507tree-sitter = { version = "0.23", features = ["wasm"] }
508tree-sitter-bash = "0.23"
509tree-sitter-c = "0.23"
510tree-sitter-cpp = "0.23"
511tree-sitter-css = "0.23"
512tree-sitter-elixir = "0.3"
513tree-sitter-embedded-template = "0.23.0"
514tree-sitter-go = "0.23"
515tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c", package = "tree-sitter-gomod" }
516tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
517tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
518tree-sitter-diff = "0.1.0"
519tree-sitter-html = "0.20"
520tree-sitter-jsdoc = "0.23"
521tree-sitter-json = "0.24"
522tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
523tree-sitter-python = "0.23"
524tree-sitter-regex = "0.23"
525tree-sitter-ruby = "0.23"
526tree-sitter-rust = "0.23"
527tree-sitter-typescript = "0.23"
528tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
529unicase = "2.6"
530unindent = "0.1.7"
531unicode-segmentation = "1.10"
532unicode-script = "0.5.7"
533url = "2.2"
534uuid = { version = "1.1.2", features = ["v4", "v5", "v7", "serde"] }
535wasmparser = "0.215"
536wasm-encoder = "0.215"
537wasmtime = { version = "24", default-features = false, features = [
538    "async",
539    "demangle",
540    "runtime",
541    "cranelift",
542    "component-model",
543] }
544wasmtime-wasi = "24"
545which = "6.0.0"
546wit-component = "0.201"
547zstd = "0.11"
548metal = "0.30"
549
550[workspace.dependencies.async-stripe]
551git = "https://github.com/zed-industries/async-stripe"
552rev = "3672dd4efb7181aa597bf580bf5a2f5d23db6735"
553default-features = false
554features = [
555    "runtime-tokio-hyper-rustls",
556    "billing",
557    "checkout",
558    "events",
559    # The features below are only enabled to get the `events` feature to build.
560    "chrono",
561    "connect",
562]
563
564[workspace.dependencies.windows]
565version = "0.58"
566features = [
567    "implement",
568    "Foundation_Numerics",
569    "Storage",
570    "System_Threading",
571    "UI_ViewManagement",
572    "Wdk_System_SystemServices",
573    "Win32_Globalization",
574    "Win32_Graphics_Direct2D",
575    "Win32_Graphics_Direct2D_Common",
576    "Win32_Graphics_DirectWrite",
577    "Win32_Graphics_Dwm",
578    "Win32_Graphics_Dxgi_Common",
579    "Win32_Graphics_Gdi",
580    "Win32_Graphics_Imaging",
581    "Win32_Graphics_Imaging_D2D",
582    "Win32_Security",
583    "Win32_Security_Credentials",
584    "Win32_Storage_FileSystem",
585    "Win32_System_Com",
586    "Win32_System_Com_StructuredStorage",
587    "Win32_System_DataExchange",
588    "Win32_System_LibraryLoader",
589    "Win32_System_Memory",
590    "Win32_System_Ole",
591    "Win32_System_SystemInformation",
592    "Win32_System_SystemServices",
593    "Win32_System_Threading",
594    "Win32_System_WinRT",
595    "Win32_UI_Controls",
596    "Win32_UI_HiDpi",
597    "Win32_UI_Input_Ime",
598    "Win32_UI_Input_KeyboardAndMouse",
599    "Win32_UI_Shell",
600    "Win32_UI_Shell_Common",
601    "Win32_UI_WindowsAndMessaging",
602]
603
604# TODO livekit https://github.com/RustAudio/cpal/pull/891
605[patch.crates-io]
606cpal = { git = "https://github.com/zed-industries/cpal", rev = "fd8bc2fd39f1f5fdee5a0690656caff9a26d9d50" }
607
608[profile.dev]
609split-debuginfo = "unpacked"
610debug = "limited"
611codegen-units = 16
612
613[profile.dev.package]
614taffy = { opt-level = 3 }
615cranelift-codegen = { opt-level = 3 }
616resvg = { opt-level = 3 }
617rustybuzz = { opt-level = 3 }
618ttf-parser = { opt-level = 3 }
619wasmtime-cranelift = { opt-level = 3 }
620wasmtime = { opt-level = 3 }
621# Build single-source-file crates with cg=1 as it helps make `cargo build` of a whole workspace a bit faster
622activity_indicator = { codegen-units = 1 }
623assets = { codegen-units = 1 }
624breadcrumbs = { codegen-units = 1 }
625collections = { codegen-units = 1 }
626command_palette = { codegen-units = 1 }
627command_palette_hooks = { codegen-units = 1 }
628evals = { codegen-units = 1 }
629extension_cli = { codegen-units = 1 }
630feature_flags = { codegen-units = 1 }
631file_icons = { codegen-units = 1 }
632fsevent = { codegen-units = 1 }
633image_viewer = { codegen-units = 1 }
634inline_completion_button = { codegen-units = 1 }
635install_cli = { codegen-units = 1 }
636journal = { codegen-units = 1 }
637lmstudio = { codegen-units = 1 }
638menu = { codegen-units = 1 }
639notifications = { codegen-units = 1 }
640ollama = { codegen-units = 1 }
641outline = { codegen-units = 1 }
642paths = { codegen-units = 1 }
643prettier = { codegen-units = 1 }
644project_symbols = { codegen-units = 1 }
645refineable = { codegen-units = 1 }
646release_channel = { codegen-units = 1 }
647reqwest_client = { codegen-units = 1 }
648rich_text = { codegen-units = 1 }
649semantic_version = { codegen-units = 1 }
650session = { codegen-units = 1 }
651snippet = { codegen-units = 1 }
652snippets_ui = { codegen-units = 1 }
653sqlez_macros = { codegen-units = 1 }
654story = { codegen-units = 1 }
655supermaven_api = { codegen-units = 1 }
656telemetry_events = { codegen-units = 1 }
657theme_selector = { codegen-units = 1 }
658time_format = { codegen-units = 1 }
659ui_input = { codegen-units = 1 }
660vcs_menu = { codegen-units = 1 }
661zed_actions = { codegen-units = 1 }
662
663[profile.release]
664debug = "limited"
665lto = "thin"
666codegen-units = 1
667
668[profile.release.package]
669zed = { codegen-units = 16 }
670
671[profile.release-fast]
672inherits = "release"
673debug = "full"
674lto = false
675codegen-units = 16
676
677[workspace.lints.clippy]
678dbg_macro = "deny"
679todo = "deny"
680
681# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
682# warning on this rule produces a lot of noise.
683single_range_in_vec_init = "allow"
684
685# These are all of the rules that currently have violations in the Zed
686# codebase.
687#
688# We'll want to drive this list down by either:
689# 1. fixing violations of the rule and begin enforcing it
690# 2. deciding we want to allow the rule permanently, at which point
691#    we should codify that separately above.
692#
693# This list shouldn't be added to; it should only get shorter.
694# =============================================================================
695
696# There are a bunch of rules currently failing in the `style` group, so
697# allow all of those, for now.
698style = { level = "allow", priority = -1 }
699
700# Temporary list of style lints that we've fixed so far.
701module_inception = { level = "deny" }
702question_mark = { level = "deny" }
703redundant_closure = { level = "deny" }
704# Individual rules that have violations in the codebase:
705type_complexity = "allow"
706# We often return trait objects from `new` functions.
707new_ret_no_self = { level = "allow" }
708# We have a few `next` functions that differ in lifetimes
709# compared to Iterator::next. Yet, clippy complains about those.
710should_implement_trait = { level = "allow" }
711let_underscore_future = "allow"
712
713[workspace.metadata.cargo-machete]
714ignored = ["bindgen", "cbindgen", "prost_build", "serde"]