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