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