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"
374nix = "0.29"
375num-format = "0.4.4"
376once_cell = "1.19.0"
377ordered-float = "2.1.1"
378palette = { version = "0.7.5", default-features = false, features = ["std"] }
379parking_lot = "0.12.1"
380pathdiff = "0.2"
381pet = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c" }
382pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c"  }
383pet-core = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c"  }
384pet-poetry = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c"  }
385pet-reporter = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c"  }
386postage = { version = "0.5", features = ["futures-traits"] }
387pretty_assertions = "1.3.0"
388profiling = "1"
389prost = "0.9"
390prost-build = "0.9"
391prost-types = "0.9"
392pulldown-cmark = { version = "0.12.0", default-features = false }
393rand = "0.8.5"
394regex = "1.5"
395repair_json = "0.1.0"
396reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "fd110f6998da16bbca97b6dddda9be7827c50e29", default-features = false, features = [
397    "charset",
398    "http2",
399    "macos-system-configuration",
400    "rustls-tls-native-roots",
401    "socks",
402    "stream",
403] }
404rsa = "0.9.6"
405runtimelib = { version = "0.15", default-features = false, features = [
406    "async-dispatcher-runtime",
407] }
408rustc-demangle = "0.1.23"
409rust-embed = { version = "8.4", features = ["include-exclude"] }
410rustls = "0.20.3"
411rustls-native-certs = "0.8.0"
412schemars = { version = "0.8", features = ["impl_json_schema"] }
413semver = "1.0"
414serde = { version = "1.0", features = ["derive", "rc"] }
415serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
416serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
417serde_json_lenient = { version = "0.2", features = [
418    "preserve_order",
419    "raw_value",
420] }
421serde_repr = "0.1"
422sha2 = "0.10"
423shellexpand = "2.1.0"
424shlex = "1.3.0"
425signal-hook = "0.3.17"
426similar = "1.3"
427simplelog = "0.12.2"
428smallvec = { version = "1.6", features = ["union"] }
429smol = "1.2"
430sqlformat = "0.2"
431strsim = "0.11"
432strum = { version = "0.25.0", features = ["derive"] }
433subtle = "2.5.0"
434sys-locale = "0.3.1"
435sysinfo = "0.31.0"
436tempfile = "3.9.0"
437thiserror = "1.0.29"
438tiktoken-rs = "0.5.9"
439time = { version = "0.3", features = [
440    "macros",
441    "parsing",
442    "serde",
443    "serde-well-known",
444    "formatting",
445] }
446tiny_http = "0.8"
447toml = "0.8"
448tokio = { version = "1" }
449tower-http = "0.4.4"
450tree-sitter = { version = "0.23", features = ["wasm"] }
451tree-sitter-bash = "0.23"
452tree-sitter-c = "0.23"
453tree-sitter-cpp = "0.23"
454tree-sitter-css = "0.23"
455tree-sitter-elixir = "0.3"
456tree-sitter-embedded-template = "0.23.0"
457tree-sitter-go = "0.23"
458tree-sitter-go-mod = { git = "https://github.com/zed-industries/tree-sitter-go-mod", rev = "a9aea5e358cde4d0f8ff20b7bc4fa311e359c7ca", package = "tree-sitter-gomod" }
459tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
460tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
461tree-sitter-diff = "0.1.0"
462tree-sitter-html = "0.20"
463tree-sitter-jsdoc = "0.23"
464tree-sitter-json = "0.23"
465tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
466tree-sitter-python = "0.23"
467tree-sitter-regex = "0.23"
468tree-sitter-ruby = "0.23"
469tree-sitter-rust = "0.23"
470tree-sitter-typescript = "0.23"
471tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
472unicase = "2.6"
473unindent = "0.1.7"
474unicode-segmentation = "1.10"
475url = "2.2"
476uuid = { version = "1.1.2", features = ["v4", "v5", "serde"] }
477wasmparser = "0.215"
478wasm-encoder = "0.215"
479wasmtime = { version = "24", default-features = false, features = [
480    "async",
481    "demangle",
482    "runtime",
483    "cranelift",
484    "component-model",
485] }
486wasmtime-wasi = "24"
487which = "6.0.0"
488wit-component = "0.201"
489zstd = "0.11"
490
491[workspace.dependencies.async-stripe]
492git = "https://github.com/zed-industries/async-stripe"
493rev = "3672dd4efb7181aa597bf580bf5a2f5d23db6735"
494default-features = false
495features = [
496    "runtime-tokio-hyper-rustls",
497    "billing",
498    "checkout",
499    "events",
500    # The features below are only enabled to get the `events` feature to build.
501    "chrono",
502    "connect",
503]
504
505[workspace.dependencies.windows]
506version = "0.58"
507features = [
508    "implement",
509    "Foundation_Numerics",
510    "Storage",
511    "System_Threading",
512    "UI_ViewManagement",
513    "Wdk_System_SystemServices",
514    "Win32_Globalization",
515    "Win32_Graphics_Direct2D",
516    "Win32_Graphics_Direct2D_Common",
517    "Win32_Graphics_DirectWrite",
518    "Win32_Graphics_Dwm",
519    "Win32_Graphics_Dxgi_Common",
520    "Win32_Graphics_Gdi",
521    "Win32_Graphics_Imaging",
522    "Win32_Graphics_Imaging_D2D",
523    "Win32_Security",
524    "Win32_Security_Credentials",
525    "Win32_Storage_FileSystem",
526    "Win32_System_Com",
527    "Win32_System_Com_StructuredStorage",
528    "Win32_System_DataExchange",
529    "Win32_System_LibraryLoader",
530    "Win32_System_Memory",
531    "Win32_System_Ole",
532    "Win32_System_SystemInformation",
533    "Win32_System_SystemServices",
534    "Win32_System_Threading",
535    "Win32_System_WinRT",
536    "Win32_UI_Controls",
537    "Win32_UI_HiDpi",
538    "Win32_UI_Input_Ime",
539    "Win32_UI_Input_KeyboardAndMouse",
540    "Win32_UI_Shell",
541    "Win32_UI_Shell_Common",
542    "Win32_UI_WindowsAndMessaging",
543]
544
545[profile.dev]
546split-debuginfo = "unpacked"
547debug = "limited"
548codegen-units = 16
549
550[profile.dev.package]
551taffy = { opt-level = 3 }
552cranelift-codegen = { opt-level = 3 }
553resvg = { opt-level = 3 }
554rustybuzz = { opt-level = 3 }
555ttf-parser = { opt-level = 3 }
556wasmtime-cranelift = { opt-level = 3 }
557wasmtime = { opt-level = 3 }
558
559[profile.release]
560debug = "limited"
561lto = "thin"
562codegen-units = 1
563
564[profile.release.package]
565zed = { codegen-units = 16 }
566
567[profile.release-fast]
568inherits = "release"
569debug = "full"
570lto = false
571codegen-units = 16
572
573[workspace.lints.clippy]
574dbg_macro = "deny"
575todo = "deny"
576
577# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
578# warning on this rule produces a lot of noise.
579single_range_in_vec_init = "allow"
580
581# These are all of the rules that currently have violations in the Zed
582# codebase.
583#
584# We'll want to drive this list down by either:
585# 1. fixing violations of the rule and begin enforcing it
586# 2. deciding we want to allow the rule permanently, at which point
587#    we should codify that separately above.
588#
589# This list shouldn't be added to; it should only get shorter.
590# =============================================================================
591
592# There are a bunch of rules currently failing in the `style` group, so
593# allow all of those, for now.
594style = { level = "allow", priority = -1 }
595
596# Temporary list of style lints that we've fixed so far.
597module_inception = { level = "deny" }
598question_mark = { level = "deny" }
599redundant_closure = { level = "deny" }
600# Individual rules that have violations in the codebase:
601type_complexity = "allow"
602# We often return trait objects from `new` functions.
603new_ret_no_self = { level = "allow" }
604# We have a few `next` functions that differ in lifetimes
605# compared to Iterator::next. Yet, clippy complains about those.
606should_implement_trait = { level = "allow" }
607
608[workspace.metadata.cargo-machete]
609ignored = ["bindgen", "cbindgen", "prost_build", "serde"]