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