Cargo.toml

  1[workspace]
  2resolver = "2"
  3members = [
  4    "crates/activity_indicator",
  5    "crates/anthropic",
  6    "crates/assets",
  7    "crates/assistant",
  8    "crates/assistant_slash_command",
  9    "crates/assistant_tool",
 10    "crates/audio",
 11    "crates/auto_update",
 12    "crates/breadcrumbs",
 13    "crates/call",
 14    "crates/channel",
 15    "crates/cli",
 16    "crates/client",
 17    "crates/clock",
 18    "crates/collab",
 19    "crates/collab_ui",
 20    "crates/collections",
 21    "crates/command_palette",
 22    "crates/command_palette_hooks",
 23    "crates/context_servers",
 24    "crates/copilot",
 25    "crates/db",
 26    "crates/diagnostics",
 27    "crates/docs_preprocessor",
 28    "crates/editor",
 29    "crates/evals",
 30    "crates/extension",
 31    "crates/extension_api",
 32    "crates/extension_cli",
 33    "crates/extensions_ui",
 34    "crates/feature_flags",
 35    "crates/feedback",
 36    "crates/file_finder",
 37    "crates/file_icons",
 38    "crates/fs",
 39    "crates/fsevent",
 40    "crates/fuzzy",
 41    "crates/git",
 42    "crates/git_hosting_providers",
 43    "crates/go_to_line",
 44    "crates/google_ai",
 45    "crates/gpui",
 46    "crates/gpui_macros",
 47    "crates/html_to_markdown",
 48    "crates/http_client",
 49    "crates/image_viewer",
 50    "crates/indexed_docs",
 51    "crates/inline_completion_button",
 52    "crates/install_cli",
 53    "crates/journal",
 54    "crates/language",
 55    "crates/language_model",
 56    "crates/language_selector",
 57    "crates/language_tools",
 58    "crates/languages",
 59    "crates/live_kit_client",
 60    "crates/live_kit_server",
 61    "crates/lsp",
 62    "crates/markdown",
 63    "crates/markdown_preview",
 64    "crates/media",
 65    "crates/menu",
 66    "crates/multi_buffer",
 67    "crates/node_runtime",
 68    "crates/notifications",
 69    "crates/ollama",
 70    "crates/open_ai",
 71    "crates/outline",
 72    "crates/outline_panel",
 73    "crates/paths",
 74    "crates/picker",
 75    "crates/prettier",
 76    "crates/project",
 77    "crates/project_panel",
 78    "crates/project_symbols",
 79    "crates/proto",
 80    "crates/quick_action_bar",
 81    "crates/recent_projects",
 82    "crates/refineable",
 83    "crates/refineable/derive_refineable",
 84    "crates/release_channel",
 85    "crates/remote",
 86    "crates/remote_server",
 87    "crates/repl",
 88    "crates/reqwest_client",
 89    "crates/rich_text",
 90    "crates/rope",
 91    "crates/rpc",
 92    "crates/search",
 93    "crates/semantic_index",
 94    "crates/semantic_version",
 95    "crates/session",
 96    "crates/settings",
 97    "crates/settings_ui",
 98    "crates/snippet",
 99    "crates/snippet_provider",
100    "crates/snippets_ui",
101    "crates/sqlez",
102    "crates/sqlez_macros",
103    "crates/story",
104    "crates/storybook",
105    "crates/sum_tree",
106    "crates/supermaven",
107    "crates/supermaven_api",
108    "crates/tab_switcher",
109    "crates/task",
110    "crates/tasks_ui",
111    "crates/telemetry_events",
112    "crates/terminal",
113    "crates/terminal_view",
114    "crates/text",
115    "crates/theme",
116    "crates/theme_importer",
117    "crates/theme_selector",
118    "crates/time_format",
119    "crates/title_bar",
120    "crates/toolchain_selector",
121    "crates/ui",
122    "crates/ui_input",
123    "crates/ui_macros",
124    "crates/reqwest_client",
125    "crates/util",
126    "crates/vcs_menu",
127    "crates/vim",
128    "crates/welcome",
129    "crates/workspace",
130    "crates/worktree",
131    "crates/zed",
132    "crates/zed_actions",
133
134    #
135    # Extensions
136    #
137
138    "extensions/astro",
139    "extensions/clojure",
140    "extensions/csharp",
141    "extensions/dart",
142    "extensions/deno",
143    "extensions/elixir",
144    "extensions/elm",
145    "extensions/emmet",
146    "extensions/erlang",
147    "extensions/glsl",
148    "extensions/haskell",
149    "extensions/html",
150    "extensions/lua",
151    "extensions/ocaml",
152    "extensions/php",
153    "extensions/perplexity",
154    "extensions/prisma",
155    "extensions/proto",
156    "extensions/purescript",
157    "extensions/ruff",
158    "extensions/slash-commands-example",
159    "extensions/snippets",
160    "extensions/terraform",
161    "extensions/test-extension",
162    "extensions/toml",
163    "extensions/uiua",
164    "extensions/zig",
165
166    #
167    # Tooling
168    #
169
170    "tooling/xtask",
171]
172default-members = ["crates/zed"]
173
174[workspace.dependencies]
175
176#
177# Workspace member crates
178#
179
180activity_indicator = { path = "crates/activity_indicator" }
181ai = { path = "crates/ai" }
182anthropic = { path = "crates/anthropic" }
183assets = { path = "crates/assets" }
184assistant = { path = "crates/assistant" }
185assistant_slash_command = { path = "crates/assistant_slash_command" }
186assistant_tool = { path = "crates/assistant_tool" }
187audio = { path = "crates/audio" }
188auto_update = { path = "crates/auto_update" }
189breadcrumbs = { path = "crates/breadcrumbs" }
190call = { path = "crates/call" }
191channel = { path = "crates/channel" }
192cli = { path = "crates/cli" }
193client = { path = "crates/client" }
194clock = { path = "crates/clock" }
195collab = { path = "crates/collab" }
196collab_ui = { path = "crates/collab_ui" }
197collections = { path = "crates/collections" }
198command_palette = { path = "crates/command_palette" }
199command_palette_hooks = { path = "crates/command_palette_hooks" }
200context_servers = { path = "crates/context_servers" }
201copilot = { path = "crates/copilot" }
202db = { path = "crates/db" }
203diagnostics = { path = "crates/diagnostics" }
204editor = { path = "crates/editor" }
205extension = { path = "crates/extension" }
206extensions_ui = { path = "crates/extensions_ui" }
207feature_flags = { path = "crates/feature_flags" }
208feedback = { path = "crates/feedback" }
209file_finder = { path = "crates/file_finder" }
210file_icons = { path = "crates/file_icons" }
211fs = { path = "crates/fs" }
212fsevent = { path = "crates/fsevent" }
213fuzzy = { path = "crates/fuzzy" }
214git = { path = "crates/git" }
215git_hosting_providers = { path = "crates/git_hosting_providers" }
216go_to_line = { path = "crates/go_to_line" }
217google_ai = { path = "crates/google_ai" }
218gpui = { path = "crates/gpui", default-features = false, features = ["http_client"]}
219gpui_macros = { path = "crates/gpui_macros" }
220html_to_markdown = { path = "crates/html_to_markdown" }
221http_client = { path = "crates/http_client" }
222image_viewer = { path = "crates/image_viewer" }
223indexed_docs = { path = "crates/indexed_docs" }
224inline_completion_button = { path = "crates/inline_completion_button" }
225install_cli = { path = "crates/install_cli" }
226journal = { path = "crates/journal" }
227language = { path = "crates/language" }
228language_model = { path = "crates/language_model" }
229language_selector = { path = "crates/language_selector" }
230language_tools = { path = "crates/language_tools" }
231languages = { path = "crates/languages" }
232live_kit_client = { path = "crates/live_kit_client" }
233live_kit_server = { path = "crates/live_kit_server" }
234lsp = { path = "crates/lsp" }
235markdown = { path = "crates/markdown" }
236markdown_preview = { path = "crates/markdown_preview" }
237media = { path = "crates/media" }
238menu = { path = "crates/menu" }
239multi_buffer = { path = "crates/multi_buffer" }
240node_runtime = { path = "crates/node_runtime" }
241notifications = { path = "crates/notifications" }
242ollama = { path = "crates/ollama" }
243open_ai = { path = "crates/open_ai" }
244outline = { path = "crates/outline" }
245outline_panel = { path = "crates/outline_panel" }
246paths = { path = "crates/paths" }
247picker = { path = "crates/picker" }
248plugin = { path = "crates/plugin" }
249plugin_macros = { path = "crates/plugin_macros" }
250prettier = { path = "crates/prettier" }
251project = { path = "crates/project" }
252project_panel = { path = "crates/project_panel" }
253project_symbols = { path = "crates/project_symbols" }
254proto = { path = "crates/proto" }
255quick_action_bar = { path = "crates/quick_action_bar" }
256recent_projects = { path = "crates/recent_projects" }
257refineable = { path = "crates/refineable" }
258release_channel = { path = "crates/release_channel" }
259remote = { path = "crates/remote" }
260remote_server = { path = "crates/remote_server" }
261repl = { path = "crates/repl" }
262reqwest_client = { path = "crates/reqwest_client" }
263rich_text = { path = "crates/rich_text" }
264rope = { path = "crates/rope" }
265rpc = { path = "crates/rpc" }
266search = { path = "crates/search" }
267semantic_index = { path = "crates/semantic_index" }
268semantic_version = { path = "crates/semantic_version" }
269session = { path = "crates/session" }
270settings = { path = "crates/settings" }
271settings_ui = { path = "crates/settings_ui" }
272snippet = { path = "crates/snippet" }
273snippet_provider = { path = "crates/snippet_provider" }
274snippets_ui = { path = "crates/snippets_ui" }
275sqlez = { path = "crates/sqlez" }
276sqlez_macros = { path = "crates/sqlez_macros" }
277story = { path = "crates/story" }
278storybook = { path = "crates/storybook" }
279sum_tree = { path = "crates/sum_tree" }
280supermaven = { path = "crates/supermaven" }
281supermaven_api = { path = "crates/supermaven_api" }
282tab_switcher = { path = "crates/tab_switcher" }
283task = { path = "crates/task" }
284tasks_ui = { path = "crates/tasks_ui" }
285telemetry_events = { path = "crates/telemetry_events" }
286terminal = { path = "crates/terminal" }
287terminal_view = { path = "crates/terminal_view" }
288text = { path = "crates/text" }
289theme = { path = "crates/theme" }
290theme_importer = { path = "crates/theme_importer" }
291theme_selector = { path = "crates/theme_selector" }
292time_format = { path = "crates/time_format" }
293title_bar = { path = "crates/title_bar" }
294toolchain_selector = { path = "crates/toolchain_selector" }
295ui = { path = "crates/ui" }
296ui_input = { path = "crates/ui_input" }
297ui_macros = { path = "crates/ui_macros" }
298util = { path = "crates/util" }
299vcs_menu = { path = "crates/vcs_menu" }
300vim = { path = "crates/vim" }
301welcome = { path = "crates/welcome" }
302workspace = { path = "crates/workspace" }
303worktree = { path = "crates/worktree" }
304zed = { path = "crates/zed" }
305zed_actions = { path = "crates/zed_actions" }
306
307#
308# External crates
309#
310
311aho-corasick = "1.1"
312alacritty_terminal = { git = "https://github.com/alacritty/alacritty", rev = "91d034ff8b53867143c005acfaa14609147c9a2c" }
313any_vec = "0.14"
314anyhow = "1.0.86"
315arrayvec = { version = "0.7.4", features = ["serde"] }
316ashpd = "0.9.1"
317async-compat = "0.2.1"
318async-compression = { version = "0.4", features = ["gzip", "futures-io"] }
319async-dispatcher = "0.1"
320async-fs = "1.6"
321async-pipe = { git = "https://github.com/zed-industries/async-pipe-rs", rev = "82d00a04211cf4e1236029aa03e6b6ce2a74c553" }
322async-recursion = "1.0.0"
323async-tar = "0.5.0"
324async-trait = "0.1"
325async-tungstenite = "0.24"
326async-watch = "0.3.1"
327async_zip = { version = "0.0.17", features = ["deflate", "deflate64"] }
328base64 = "0.22"
329bitflags = "2.6.0"
330blade-graphics = { git = "https://github.com/kvark/blade", rev = "e142a3a5e678eb6a13e642ad8401b1f3aa38e969" }
331blade-macros = { git = "https://github.com/kvark/blade", rev = "e142a3a5e678eb6a13e642ad8401b1f3aa38e969" }
332blade-util = { git = "https://github.com/kvark/blade", rev = "e142a3a5e678eb6a13e642ad8401b1f3aa38e969" }
333blake3 = "1.5.3"
334bytes = "1.0"
335cargo_metadata = "0.18"
336cargo_toml = "0.20"
337chrono = { version = "0.4", features = ["serde"] }
338clap = { version = "4.4", features = ["derive"] }
339clickhouse = "0.11.6"
340cocoa = "0.26"
341convert_case = "0.6.0"
342core-foundation = "0.9.3"
343core-foundation-sys = "0.8.6"
344ctor = "0.2.6"
345dashmap = "6.0"
346derive_more = "0.99.17"
347dirs = "4.0"
348ec4rs = "1.1"
349emojis = "0.6.1"
350env_logger = "0.11"
351exec = "0.3.1"
352fork = "0.2.0"
353futures = "0.3"
354futures-batch = "0.6.1"
355futures-lite = "1.13"
356git2 = { version = "0.19", default-features = false }
357globset = "0.4"
358handlebars = "4.3"
359heed = { version = "0.20.1", features = ["read-txn-no-tls"] }
360hex = "0.4.3"
361html5ever = "0.27.0"
362hyper = "0.14"
363ignore = "0.4.22"
364image = "0.25.1"
365indexmap = { version = "1.6.2", features = ["serde"] }
366indoc = "2"
367itertools = "0.13.0"
368jsonwebtoken = "9.3"
369libc = "0.2"
370linkify = "0.10.0"
371log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
372markup5ever_rcdom = "0.3.0"
373nanoid = "0.4"
374nbformat = "0.3.1"
375nix = "0.29"
376num-format = "0.4.4"
377once_cell = "1.19.0"
378ordered-float = "2.1.1"
379palette = { version = "0.7.5", default-features = false, features = ["std"] }
380parking_lot = "0.12.1"
381pathdiff = "0.2"
382pet = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c" }
383pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c"  }
384pet-core = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c"  }
385pet-poetry = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c"  }
386pet-reporter = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c"  }
387postage = { version = "0.5", features = ["futures-traits"] }
388pretty_assertions = "1.3.0"
389profiling = "1"
390prost = "0.9"
391prost-build = "0.9"
392prost-types = "0.9"
393pulldown-cmark = { version = "0.12.0", default-features = false }
394rand = "0.8.5"
395rayon = "1.8"
396regex = "1.5"
397repair_json = "0.1.0"
398reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "fd110f6998da16bbca97b6dddda9be7827c50e29", default-features = false, features = [
399    "charset",
400    "http2",
401    "macos-system-configuration",
402    "rustls-tls-native-roots",
403    "socks",
404    "stream",
405] }
406rsa = "0.9.6"
407runtimelib = { version = "0.16.0", default-features = false, features = [
408    "async-dispatcher-runtime",
409] }
410rustc-demangle = "0.1.23"
411rust-embed = { version = "8.4", features = ["include-exclude"] }
412rustls = "0.20.3"
413rustls-native-certs = "0.8.0"
414schemars = { version = "0.8", features = ["impl_json_schema"] }
415semver = "1.0"
416serde = { version = "1.0", features = ["derive", "rc"] }
417serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
418serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
419serde_json_lenient = { version = "0.2", features = [
420    "preserve_order",
421    "raw_value",
422] }
423serde_repr = "0.1"
424sha2 = "0.10"
425shellexpand = "2.1.0"
426shlex = "1.3.0"
427signal-hook = "0.3.17"
428similar = "1.3"
429simplelog = "0.12.2"
430smallvec = { version = "1.6", features = ["union"] }
431smol = "1.2"
432sqlformat = "0.2"
433strsim = "0.11"
434strum = { version = "0.25.0", features = ["derive"] }
435subtle = "2.5.0"
436sys-locale = "0.3.1"
437sysinfo = "0.31.0"
438tempfile = "3.9.0"
439thiserror = "1.0.29"
440tiktoken-rs = "0.5.9"
441time = { version = "0.3", features = [
442    "macros",
443    "parsing",
444    "serde",
445    "serde-well-known",
446    "formatting",
447] }
448tiny_http = "0.8"
449toml = "0.8"
450tokio = { version = "1" }
451tower-http = "0.4.4"
452tree-sitter = { version = "0.23", features = ["wasm"] }
453tree-sitter-bash = "0.23"
454tree-sitter-c = "0.23"
455tree-sitter-cpp = "0.23"
456tree-sitter-css = "0.23"
457tree-sitter-elixir = "0.3"
458tree-sitter-embedded-template = "0.23.0"
459tree-sitter-go = "0.23"
460tree-sitter-go-mod = { git = "https://github.com/zed-industries/tree-sitter-go-mod", rev = "a9aea5e358cde4d0f8ff20b7bc4fa311e359c7ca", package = "tree-sitter-gomod" }
461tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
462tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
463tree-sitter-diff = "0.1.0"
464tree-sitter-html = "0.20"
465tree-sitter-jsdoc = "0.23"
466tree-sitter-json = "0.23"
467tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
468tree-sitter-python = "0.23"
469tree-sitter-regex = "0.23"
470tree-sitter-ruby = "0.23"
471tree-sitter-rust = "0.23"
472tree-sitter-typescript = "0.23"
473tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
474unicase = "2.6"
475unindent = "0.1.7"
476unicode-segmentation = "1.10"
477url = "2.2"
478uuid = { version = "1.1.2", features = ["v4", "v5", "serde"] }
479wasmparser = "0.215"
480wasm-encoder = "0.215"
481wasmtime = { version = "24", default-features = false, features = [
482    "async",
483    "demangle",
484    "runtime",
485    "cranelift",
486    "component-model",
487] }
488wasmtime-wasi = "24"
489which = "6.0.0"
490wit-component = "0.201"
491zstd = "0.11"
492
493[workspace.dependencies.async-stripe]
494git = "https://github.com/zed-industries/async-stripe"
495rev = "3672dd4efb7181aa597bf580bf5a2f5d23db6735"
496default-features = false
497features = [
498    "runtime-tokio-hyper-rustls",
499    "billing",
500    "checkout",
501    "events",
502    # The features below are only enabled to get the `events` feature to build.
503    "chrono",
504    "connect",
505]
506
507[workspace.dependencies.windows]
508version = "0.58"
509features = [
510    "implement",
511    "Foundation_Numerics",
512    "Storage",
513    "System_Threading",
514    "UI_ViewManagement",
515    "Wdk_System_SystemServices",
516    "Win32_Globalization",
517    "Win32_Graphics_Direct2D",
518    "Win32_Graphics_Direct2D_Common",
519    "Win32_Graphics_DirectWrite",
520    "Win32_Graphics_Dwm",
521    "Win32_Graphics_Dxgi_Common",
522    "Win32_Graphics_Gdi",
523    "Win32_Graphics_Imaging",
524    "Win32_Graphics_Imaging_D2D",
525    "Win32_Security",
526    "Win32_Security_Credentials",
527    "Win32_Storage_FileSystem",
528    "Win32_System_Com",
529    "Win32_System_Com_StructuredStorage",
530    "Win32_System_DataExchange",
531    "Win32_System_LibraryLoader",
532    "Win32_System_Memory",
533    "Win32_System_Ole",
534    "Win32_System_SystemInformation",
535    "Win32_System_SystemServices",
536    "Win32_System_Threading",
537    "Win32_System_WinRT",
538    "Win32_UI_Controls",
539    "Win32_UI_HiDpi",
540    "Win32_UI_Input_Ime",
541    "Win32_UI_Input_KeyboardAndMouse",
542    "Win32_UI_Shell",
543    "Win32_UI_Shell_Common",
544    "Win32_UI_WindowsAndMessaging",
545]
546
547[profile.dev]
548split-debuginfo = "unpacked"
549debug = "limited"
550codegen-units = 16
551
552[profile.dev.package]
553taffy = { opt-level = 3 }
554cranelift-codegen = { opt-level = 3 }
555resvg = { opt-level = 3 }
556rustybuzz = { opt-level = 3 }
557ttf-parser = { opt-level = 3 }
558wasmtime-cranelift = { opt-level = 3 }
559wasmtime = { opt-level = 3 }
560
561[profile.release]
562debug = "limited"
563lto = "thin"
564codegen-units = 1
565
566[profile.release.package]
567zed = { codegen-units = 16 }
568
569[profile.release-fast]
570inherits = "release"
571debug = "full"
572lto = false
573codegen-units = 16
574
575[workspace.lints.clippy]
576dbg_macro = "deny"
577todo = "deny"
578
579# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
580# warning on this rule produces a lot of noise.
581single_range_in_vec_init = "allow"
582
583# These are all of the rules that currently have violations in the Zed
584# codebase.
585#
586# We'll want to drive this list down by either:
587# 1. fixing violations of the rule and begin enforcing it
588# 2. deciding we want to allow the rule permanently, at which point
589#    we should codify that separately above.
590#
591# This list shouldn't be added to; it should only get shorter.
592# =============================================================================
593
594# There are a bunch of rules currently failing in the `style` group, so
595# allow all of those, for now.
596style = { level = "allow", priority = -1 }
597
598# Temporary list of style lints that we've fixed so far.
599module_inception = { level = "deny" }
600question_mark = { level = "deny" }
601redundant_closure = { level = "deny" }
602# Individual rules that have violations in the codebase:
603type_complexity = "allow"
604# We often return trait objects from `new` functions.
605new_ret_no_self = { level = "allow" }
606# We have a few `next` functions that differ in lifetimes
607# compared to Iterator::next. Yet, clippy complains about those.
608should_implement_trait = { level = "allow" }
609
610[workspace.metadata.cargo-machete]
611ignored = ["bindgen", "cbindgen", "prost_build", "serde"]