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