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