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