Cargo.toml

  1[workspace]
  2members = [
  3    "crates/activity_indicator",
  4    "crates/anthropic",
  5    "crates/assets",
  6    "crates/assistant",
  7    "crates/assistant_slash_command",
  8    "crates/assistant_tooling",
  9    "crates/audio",
 10    "crates/auto_update",
 11    "crates/breadcrumbs",
 12    "crates/call",
 13    "crates/channel",
 14    "crates/cli",
 15    "crates/client",
 16    "crates/clock",
 17    "crates/collab",
 18    "crates/collab_ui",
 19    "crates/collections",
 20    "crates/command_palette",
 21    "crates/command_palette_hooks",
 22    "crates/copilot",
 23    "crates/db",
 24    "crates/dev_server_projects",
 25    "crates/diagnostics",
 26    "crates/editor",
 27    "crates/extension",
 28    "crates/extension_api",
 29    "crates/extension_cli",
 30    "crates/extensions_ui",
 31    "crates/feature_flags",
 32    "crates/feedback",
 33    "crates/file_finder",
 34    "crates/file_icons",
 35    "crates/fs",
 36    "crates/fsevent",
 37    "crates/fuzzy",
 38    "crates/git",
 39    "crates/git_hosting_providers",
 40    "crates/go_to_line",
 41    "crates/google_ai",
 42    "crates/gpui",
 43    "crates/gpui_macros",
 44    "crates/headless",
 45    "crates/html_to_markdown",
 46    "crates/http",
 47    "crates/image_viewer",
 48    "crates/indexed_docs",
 49    "crates/inline_completion_button",
 50    "crates/install_cli",
 51    "crates/journal",
 52    "crates/language",
 53    "crates/language_selector",
 54    "crates/language_tools",
 55    "crates/languages",
 56    "crates/live_kit_client",
 57    "crates/live_kit_server",
 58    "crates/lsp",
 59    "crates/markdown",
 60    "crates/markdown_preview",
 61    "crates/media",
 62    "crates/menu",
 63    "crates/multi_buffer",
 64    "crates/node_runtime",
 65    "crates/notifications",
 66    "crates/ollama",
 67    "crates/open_ai",
 68    "crates/outline",
 69    "crates/outline_panel",
 70    "crates/paths",
 71    "crates/picker",
 72    "crates/prettier",
 73    "crates/project",
 74    "crates/project_panel",
 75    "crates/project_symbols",
 76    "crates/proto",
 77    "crates/quick_action_bar",
 78    "crates/recent_projects",
 79    "crates/refineable",
 80    "crates/refineable/derive_refineable",
 81    "crates/release_channel",
 82    "crates/remote",
 83    "crates/remote_server",
 84    "crates/repl",
 85    "crates/rich_text",
 86    "crates/rope",
 87    "crates/rpc",
 88    "crates/search",
 89    "crates/semantic_index",
 90    "crates/semantic_version",
 91    "crates/settings",
 92    "crates/snippet",
 93    "crates/snippet_provider",
 94    "crates/sqlez",
 95    "crates/sqlez_macros",
 96    "crates/story",
 97    "crates/storybook",
 98    "crates/sum_tree",
 99    "crates/supermaven",
100    "crates/supermaven_api",
101    "crates/tab_switcher",
102    "crates/task",
103    "crates/tasks_ui",
104    "crates/telemetry_events",
105    "crates/terminal",
106    "crates/terminal_view",
107    "crates/text",
108    "crates/theme",
109    "crates/theme_importer",
110    "crates/theme_selector",
111    "crates/time_format",
112    "crates/title_bar",
113    "crates/ui",
114    "crates/ui_input",
115    "crates/util",
116    "crates/vcs_menu",
117    "crates/vim",
118    "crates/welcome",
119    "crates/workspace",
120    "crates/worktree",
121    "crates/zed",
122    "crates/zed_actions",
123
124    "extensions/astro",
125    "extensions/clojure",
126    "extensions/csharp",
127    "extensions/dart",
128    "extensions/deno",
129    "extensions/elixir",
130    "extensions/elm",
131    "extensions/emmet",
132    "extensions/erlang",
133    "extensions/gleam",
134    "extensions/glsl",
135    "extensions/haskell",
136    "extensions/html",
137    "extensions/lua",
138    "extensions/ocaml",
139    "extensions/php",
140    "extensions/prisma",
141    "extensions/purescript",
142    "extensions/ruby",
143    "extensions/snippets",
144    "extensions/svelte",
145    "extensions/terraform",
146    "extensions/test-extension",
147    "extensions/toml",
148    "extensions/uiua",
149    "extensions/vue",
150    "extensions/zig",
151
152    "tooling/xtask",
153]
154default-members = ["crates/zed"]
155resolver = "2"
156
157[workspace.dependencies]
158activity_indicator = { path = "crates/activity_indicator" }
159ai = { path = "crates/ai" }
160anthropic = { path = "crates/anthropic" }
161assets = { path = "crates/assets" }
162assistant = { path = "crates/assistant" }
163assistant_slash_command = { path = "crates/assistant_slash_command" }
164assistant_tooling = { path = "crates/assistant_tooling" }
165async-pipe = { git = "https://github.com/zed-industries/async-pipe-rs", rev = "82d00a04211cf4e1236029aa03e6b6ce2a74c553" }
166audio = { path = "crates/audio" }
167auto_update = { path = "crates/auto_update" }
168breadcrumbs = { path = "crates/breadcrumbs" }
169call = { path = "crates/call" }
170channel = { path = "crates/channel" }
171cli = { path = "crates/cli" }
172client = { path = "crates/client" }
173clock = { path = "crates/clock" }
174collab = { path = "crates/collab" }
175collab_ui = { path = "crates/collab_ui" }
176collections = { path = "crates/collections" }
177command_palette = { path = "crates/command_palette" }
178command_palette_hooks = { path = "crates/command_palette_hooks" }
179copilot = { path = "crates/copilot" }
180db = { path = "crates/db" }
181dev_server_projects = { path = "crates/dev_server_projects" }
182diagnostics = { path = "crates/diagnostics" }
183editor = { path = "crates/editor" }
184extension = { path = "crates/extension" }
185extensions_ui = { path = "crates/extensions_ui" }
186feature_flags = { path = "crates/feature_flags" }
187feedback = { path = "crates/feedback" }
188file_finder = { path = "crates/file_finder" }
189file_icons = { path = "crates/file_icons" }
190fs = { path = "crates/fs" }
191fsevent = { path = "crates/fsevent" }
192fuzzy = { path = "crates/fuzzy" }
193git = { path = "crates/git" }
194git_hosting_providers = { path = "crates/git_hosting_providers" }
195go_to_line = { path = "crates/go_to_line" }
196google_ai = { path = "crates/google_ai" }
197gpui = { path = "crates/gpui" }
198gpui_macros = { path = "crates/gpui_macros" }
199headless = { path = "crates/headless" }
200html_to_markdown = { path = "crates/html_to_markdown" }
201http = { path = "crates/http" }
202image_viewer = { path = "crates/image_viewer" }
203indexed_docs = { path = "crates/indexed_docs" }
204inline_completion_button = { path = "crates/inline_completion_button" }
205install_cli = { path = "crates/install_cli" }
206journal = { path = "crates/journal" }
207language = { path = "crates/language" }
208language_selector = { path = "crates/language_selector" }
209language_tools = { path = "crates/language_tools" }
210languages = { path = "crates/languages" }
211live_kit_client = { path = "crates/live_kit_client" }
212live_kit_server = { path = "crates/live_kit_server" }
213lsp = { path = "crates/lsp" }
214markdown = { path = "crates/markdown" }
215markdown_preview = { path = "crates/markdown_preview" }
216media = { path = "crates/media" }
217menu = { path = "crates/menu" }
218multi_buffer = { path = "crates/multi_buffer" }
219node_runtime = { path = "crates/node_runtime" }
220notifications = { path = "crates/notifications" }
221ollama = { path = "crates/ollama" }
222open_ai = { path = "crates/open_ai" }
223outline = { path = "crates/outline" }
224outline_panel = { path = "crates/outline_panel" }
225paths = { path = "crates/paths" }
226picker = { path = "crates/picker" }
227plugin = { path = "crates/plugin" }
228plugin_macros = { path = "crates/plugin_macros" }
229prettier = { path = "crates/prettier" }
230project = { path = "crates/project" }
231project_panel = { path = "crates/project_panel" }
232project_symbols = { path = "crates/project_symbols" }
233proto = { path = "crates/proto" }
234quick_action_bar = { path = "crates/quick_action_bar" }
235recent_projects = { path = "crates/recent_projects" }
236release_channel = { path = "crates/release_channel" }
237remote = { path = "crates/remote" }
238remote_server = { path = "crates/remote_server" }
239repl = { path = "crates/repl" }
240rich_text = { path = "crates/rich_text" }
241rope = { path = "crates/rope" }
242rpc = { path = "crates/rpc" }
243search = { path = "crates/search" }
244semantic_index = { path = "crates/semantic_index" }
245semantic_version = { path = "crates/semantic_version" }
246settings = { path = "crates/settings" }
247snippet = { path = "crates/snippet" }
248snippet_provider = { path = "crates/snippet_provider" }
249sqlez = { path = "crates/sqlez" }
250sqlez_macros = { path = "crates/sqlez_macros" }
251story = { path = "crates/story" }
252storybook = { path = "crates/storybook" }
253sum_tree = { path = "crates/sum_tree" }
254supermaven = { path = "crates/supermaven" }
255supermaven_api = { path = "crates/supermaven_api" }
256tab_switcher = { path = "crates/tab_switcher" }
257task = { path = "crates/task" }
258tasks_ui = { path = "crates/tasks_ui" }
259telemetry_events = { path = "crates/telemetry_events" }
260terminal = { path = "crates/terminal" }
261terminal_view = { path = "crates/terminal_view" }
262text = { path = "crates/text" }
263theme = { path = "crates/theme" }
264theme_importer = { path = "crates/theme_importer" }
265theme_selector = { path = "crates/theme_selector" }
266time_format = { path = "crates/time_format" }
267title_bar = { path = "crates/title_bar" }
268ui = { path = "crates/ui" }
269ui_input = { path = "crates/ui_input" }
270util = { path = "crates/util" }
271vcs_menu = { path = "crates/vcs_menu" }
272vim = { path = "crates/vim" }
273welcome = { path = "crates/welcome" }
274workspace = { path = "crates/workspace" }
275worktree = { path = "crates/worktree" }
276zed = { path = "crates/zed" }
277zed_actions = { path = "crates/zed_actions" }
278
279alacritty_terminal = "0.23"
280any_vec = "0.13"
281anyhow = "1.0.57"
282ashpd = "0.9.1"
283async-compression = { version = "0.4", features = ["gzip", "futures-io"] }
284async-dispatcher = { version = "0.1" }
285async-fs = "1.6"
286async-recursion = "1.0.0"
287async-tar = "0.4.2"
288async-trait = "0.1"
289async-watch = "0.3.1"
290async_zip = { version = "0.0.17", features = ["deflate", "deflate64"] }
291base64 = "0.13"
292bitflags = "2.6.0"
293blade-graphics = { git = "https://github.com/zed-industries/blade", rev = "a477c2008db27db0b9f745715e119b3ee7ab7818" }
294blade-macros = { git = "https://github.com/zed-industries/blade", rev = "a477c2008db27db0b9f745715e119b3ee7ab7818" }
295blade-util = { git = "https://github.com/zed-industries/blade", rev = "a477c2008db27db0b9f745715e119b3ee7ab7818" }
296cap-std = "3.0"
297cargo_toml = "0.20"
298chrono = { version = "0.4", features = ["serde"] }
299clap = { version = "4.4", features = ["derive"] }
300clickhouse = { version = "0.11.6" }
301cocoa = "0.25"
302core-foundation = { version = "0.9.3" }
303core-foundation-sys = "0.8.6"
304ctor = "0.2.6"
305dashmap = "5.5.3"
306derive_more = "0.99.17"
307dirs = "4.0"
308emojis = "0.6.1"
309env_logger = "0.9"
310exec = "0.3.1"
311fork = "0.1.23"
312futures = "0.3"
313futures-batch = "0.6.1"
314futures-lite = "1.13"
315git2 = { version = "0.19", default-features = false }
316globset = "0.4"
317heed = { version = "0.20.1", features = ["read-txn-no-tls"] }
318hex = "0.4.3"
319html5ever = "0.27.0"
320ignore = "0.4.22"
321image = "0.25.1"
322indexmap = { version = "1.6.2", features = ["serde"] }
323indoc = "1"
324# We explicitly disable http2 support in isahc.
325isahc = { version = "1.7.2", default-features = false, features = [
326    "text-decoding",
327] }
328itertools = "0.11.0"
329lazy_static = "1.4.0"
330libc = "0.2"
331linkify = "0.10.0"
332log = { version = "0.4.16", features = ["kv_unstable_serde"] }
333markup5ever_rcdom = "0.3.0"
334nanoid = "0.4"
335nix = "0.28"
336num-format = "0.4.4"
337once_cell = "1.19.0"
338ordered-float = "2.1.1"
339palette = { version = "0.7.5", default-features = false, features = ["std"] }
340parking_lot = "0.12.1"
341pathdiff = "0.2"
342profiling = "1"
343postage = { version = "0.5", features = ["futures-traits"] }
344pretty_assertions = "1.3.0"
345prost = "0.9"
346prost-build = "0.9"
347prost-types = "0.9"
348pulldown-cmark = { version = "0.10.0", default-features = false }
349rand = "0.8.5"
350refineable = { path = "./crates/refineable" }
351regex = "1.5"
352repair_json = "0.1.0"
353runtimelib = { version = "0.12", default-features = false, features = [
354    "async-dispatcher-runtime",
355] }
356rusqlite = { version = "0.29.0", features = ["blob", "array", "modern_sqlite"] }
357rust-embed = { version = "8.4", features = ["include-exclude"] }
358schemars = "0.8"
359semver = "1.0"
360serde = { version = "1.0", features = ["derive", "rc"] }
361serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
362serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
363serde_json_lenient = { version = "0.1", features = [
364    "preserve_order",
365    "raw_value",
366] }
367serde_repr = "0.1"
368sha2 = "0.10"
369shellexpand = "2.1.0"
370shlex = "1.3.0"
371signal-hook = "0.3.17"
372similar = "1.3"
373simplelog = "0.12.2"
374smallvec = { version = "1.6", features = ["union"] }
375smol = "1.2"
376strum = { version = "0.25.0", features = ["derive"] }
377subtle = "2.5.0"
378sysinfo = "0.30.7"
379tempfile = "3.9.0"
380thiserror = "1.0.29"
381tiktoken-rs = "0.5.9"
382time = { version = "0.3", features = [
383    "macros",
384    "parsing",
385    "serde",
386    "serde-well-known",
387    "formatting",
388] }
389tiny_http = "0.8"
390toml = "0.8"
391tokio = { version = "1", features = ["full"] }
392tower-http = "0.4.4"
393tree-sitter = { version = "0.20", features = ["wasm"] }
394tree-sitter-bash = "0.20.5"
395tree-sitter-c = "0.20.1"
396tree-sitter-cpp = "0.20.5"
397tree-sitter-css = "0.20"
398tree-sitter-elixir = "0.1.1"
399tree-sitter-embedded-template = "0.20.0"
400tree-sitter-go = { git = "https://github.com/tree-sitter/tree-sitter-go", rev = "b82ab803d887002a0af11f6ce63d72884580bf33" }
401tree-sitter-gomod = "1.0.1"
402tree-sitter-gowork = { git = "https://github.com/d1y/tree-sitter-go-work" }
403rustc-demangle = "0.1.23"
404tree-sitter-heex = { git = "https://github.com/phoenixframework/tree-sitter-heex", rev = "2e1348c3cf2c9323e87c2744796cf3f3868aa82a" }
405tree-sitter-html = "0.19.0"
406tree-sitter-jsdoc = { git = "https://github.com/tree-sitter/tree-sitter-jsdoc", rev = "6a6cf9e7341af32d8e2b2e24a37fbfebefc3dc55" }
407tree-sitter-json = "0.20.2"
408tree-sitter-markdown = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "330ecab87a3e3a7211ac69bbadc19eabecdb1cca" }
409tree-sitter-proto = { git = "https://github.com/rewinfrey/tree-sitter-proto", rev = "36d54f288aee112f13a67b550ad32634d0c2cb52" }
410tree-sitter-python = "0.20.2"
411tree-sitter-regex = "0.20.0"
412tree-sitter-ruby = "0.20.0"
413tree-sitter-rust = "0.20.3"
414tree-sitter-typescript = "0.20.5"
415tree-sitter-yaml = "0.0.1"
416unindent = "0.1.7"
417unicase = "2.6"
418unicode-segmentation = "1.10"
419url = "2.2"
420uuid = { version = "1.1.2", features = ["v4", "v5", "serde"] }
421wasmparser = "0.201"
422wasm-encoder = "0.201"
423wasmtime = { version = "19.0.0", default-features = false, features = [
424    "async",
425    "demangle",
426    "runtime",
427    "cranelift",
428    "component-model",
429] }
430wasmtime-wasi = "19.0.0"
431which = "6.0.0"
432wit-component = "0.201"
433sys-locale = "0.3.1"
434
435[workspace.dependencies.windows]
436version = "0.57"
437features = [
438    "implement",
439    "Foundation_Numerics",
440    "System",
441    "System_Threading",
442    "UI_ViewManagement",
443    "Wdk_System_SystemServices",
444    "Win32_Globalization",
445    "Win32_Graphics_Direct2D",
446    "Win32_Graphics_Direct2D_Common",
447    "Win32_Graphics_DirectWrite",
448    "Win32_Graphics_Dwm",
449    "Win32_Graphics_Dxgi_Common",
450    "Win32_Graphics_Gdi",
451    "Win32_Graphics_Imaging",
452    "Win32_Graphics_Imaging_D2D",
453    "Win32_Security",
454    "Win32_Security_Credentials",
455    "Win32_Storage_FileSystem",
456    "Win32_System_LibraryLoader",
457    "Win32_System_Com",
458    "Win32_System_Com_StructuredStorage",
459    "Win32_System_DataExchange",
460    "Win32_System_LibraryLoader",
461    "Win32_System_Memory",
462    "Win32_System_Ole",
463    "Win32_System_SystemInformation",
464    "Win32_System_SystemServices",
465    "Win32_System_Threading",
466    "Win32_System_WinRT",
467    "Win32_UI_Controls",
468    "Win32_UI_HiDpi",
469    "Win32_UI_Input_Ime",
470    "Win32_UI_Input_KeyboardAndMouse",
471    "Win32_UI_Shell",
472    "Win32_UI_WindowsAndMessaging",
473]
474
475[patch.crates-io]
476tree-sitter = { git = "https://github.com/tree-sitter/tree-sitter", rev = "7b4894ba2ae81b988846676f54c0988d4027ef4f" }
477# Workaround for a broken nightly build of gpui: See #7644 and revisit once 0.5.3 is released.
478pathfinder_simd = { git = "https://github.com/servo/pathfinder.git", rev = "4968e819c0d9b015437ffc694511e175801a17c7" }
479
480[profile.dev]
481split-debuginfo = "unpacked"
482debug = "limited"
483codegen-units = 16
484
485[profile.dev.package]
486taffy = { opt-level = 3 }
487cranelift-codegen = { opt-level = 3 }
488resvg = { opt-level = 3 }
489rustybuzz = { opt-level = 3 }
490ttf-parser = { opt-level = 3 }
491wasmtime-cranelift = { opt-level = 3 }
492wasmtime = { opt-level = 3 }
493
494[profile.release]
495debug = "limited"
496lto = "thin"
497codegen-units = 1
498
499[profile.release.package]
500zed = { codegen-units = 16 }
501
502[profile.release-fast]
503inherits = "release"
504lto = false
505codegen-units = 16
506
507[workspace.lints.clippy]
508dbg_macro = "deny"
509todo = "deny"
510
511# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
512# warning on this rule produces a lot of noise.
513single_range_in_vec_init = "allow"
514
515# These are all of the rules that currently have violations in the Zed
516# codebase.
517#
518# We'll want to drive this list down by either:
519# 1. fixing violations of the rule and begin enforcing it
520# 2. deciding we want to allow the rule permanently, at which point
521#    we should codify that separately above.
522#
523# This list shouldn't be added to; it should only get shorter.
524# =============================================================================
525
526# There are a bunch of rules currently failing in the `style` group, so
527# allow all of those, for now.
528style = { level = "allow", priority = -1 }
529
530# Individual rules that have violations in the codebase:
531almost_complete_range = "allow"
532arc_with_non_send_sync = "allow"
533borrowed_box = "allow"
534let_underscore_future = "allow"
535map_entry = "allow"
536non_canonical_partial_ord_impl = "allow"
537reversed_empty_ranges = "allow"
538type_complexity = "allow"
539
540[workspace.metadata.cargo-machete]
541ignored = ["bindgen", "cbindgen", "prost_build", "serde"]