Cargo.toml

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