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