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