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/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/ui",
122    "crates/ui_input",
123    "crates/ui_macros",
124    "crates/util",
125    "crates/vcs_menu",
126    "crates/vim",
127    "crates/welcome",
128    "crates/workspace",
129    "crates/worktree",
130    "crates/zed",
131    "crates/zed_actions",
132
133    #
134    # Extensions
135    #
136
137    "extensions/astro",
138    "extensions/clojure",
139    "extensions/csharp",
140    "extensions/dart",
141    "extensions/deno",
142    "extensions/elixir",
143    "extensions/elm",
144    "extensions/emmet",
145    "extensions/erlang",
146    "extensions/gleam",
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/purescript",
156    "extensions/ruff",
157    "extensions/ruby",
158    "extensions/slash-commands-example",
159    "extensions/snippets",
160    "extensions/svelte",
161    "extensions/terraform",
162    "extensions/test-extension",
163    "extensions/toml",
164    "extensions/uiua",
165    "extensions/vue",
166    "extensions/zig",
167
168    #
169    # Tooling
170    #
171
172    "tooling/xtask",
173]
174default-members = ["crates/zed"]
175
176[workspace.dependencies]
177
178
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" }
219isahc_http_client = { path = "crates/isahc_http_client" }
220git = { path = "crates/git" }
221git_hosting_providers = { path = "crates/git_hosting_providers" }
222go_to_line = { path = "crates/go_to_line" }
223google_ai = { path = "crates/google_ai" }
224gpui = { path = "crates/gpui" }
225gpui_macros = { path = "crates/gpui_macros" }
226handlebars = "4.3"
227headless = { path = "crates/headless" }
228html_to_markdown = { path = "crates/html_to_markdown" }
229http_client = { path = "crates/http_client" }
230image_viewer = { path = "crates/image_viewer" }
231indexed_docs = { path = "crates/indexed_docs" }
232inline_completion_button = { path = "crates/inline_completion_button" }
233install_cli = { path = "crates/install_cli" }
234journal = { path = "crates/journal" }
235language = { path = "crates/language" }
236language_model = { path = "crates/language_model" }
237language_selector = { path = "crates/language_selector" }
238language_tools = { path = "crates/language_tools" }
239languages = { path = "crates/languages" }
240live_kit_client = { path = "crates/live_kit_client" }
241live_kit_server = { path = "crates/live_kit_server" }
242lsp = { path = "crates/lsp" }
243markdown = { path = "crates/markdown" }
244markdown_preview = { path = "crates/markdown_preview" }
245media = { path = "crates/media" }
246menu = { path = "crates/menu" }
247multi_buffer = { path = "crates/multi_buffer" }
248node_runtime = { path = "crates/node_runtime" }
249notifications = { path = "crates/notifications" }
250ollama = { path = "crates/ollama" }
251open_ai = { path = "crates/open_ai" }
252outline = { path = "crates/outline" }
253outline_panel = { path = "crates/outline_panel" }
254paths = { path = "crates/paths" }
255picker = { path = "crates/picker" }
256plugin = { path = "crates/plugin" }
257plugin_macros = { path = "crates/plugin_macros" }
258prettier = { path = "crates/prettier" }
259project = { path = "crates/project" }
260project_panel = { path = "crates/project_panel" }
261project_symbols = { path = "crates/project_symbols" }
262proto = { path = "crates/proto" }
263quick_action_bar = { path = "crates/quick_action_bar" }
264recent_projects = { path = "crates/recent_projects" }
265refineable = { path = "crates/refineable" }
266release_channel = { path = "crates/release_channel" }
267remote = { path = "crates/remote" }
268remote_server = { path = "crates/remote_server" }
269repl = { path = "crates/repl" }
270rich_text = { path = "crates/rich_text" }
271rope = { path = "crates/rope" }
272rpc = { path = "crates/rpc" }
273search = { path = "crates/search" }
274semantic_index = { path = "crates/semantic_index" }
275semantic_version = { path = "crates/semantic_version" }
276session = { path = "crates/session" }
277settings = { path = "crates/settings" }
278settings_ui = { path = "crates/settings_ui" }
279snippet = { path = "crates/snippet" }
280snippet_provider = { path = "crates/snippet_provider" }
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-compression = { version = "0.4", features = ["gzip", "futures-io"] }
323async-dispatcher = "0.1"
324async-fs = "1.6"
325async-pipe = { git = "https://github.com/zed-industries/async-pipe-rs", rev = "82d00a04211cf4e1236029aa03e6b6ce2a74c553" }
326async-recursion = "1.0.0"
327async-tar = "0.5.0"
328async-trait = "0.1"
329async-tungstenite = "0.23"
330async-watch = "0.3.1"
331async_zip = { version = "0.0.17", features = ["deflate", "deflate64"] }
332base64 = "0.22"
333bitflags = "2.6.0"
334blade-graphics = { git = "https://github.com/kvark/blade", rev = "e142a3a5e678eb6a13e642ad8401b1f3aa38e969" }
335blade-macros = { git = "https://github.com/kvark/blade", rev = "e142a3a5e678eb6a13e642ad8401b1f3aa38e969" }
336blade-util = { git = "https://github.com/kvark/blade", rev = "e142a3a5e678eb6a13e642ad8401b1f3aa38e969" }
337blake3 = "1.5.3"
338cargo_metadata = "0.18"
339cargo_toml = "0.20"
340chrono = { version = "0.4", features = ["serde"] }
341clap = { version = "4.4", features = ["derive"] }
342clickhouse = "0.11.6"
343cocoa = "0.26"
344convert_case = "0.6.0"
345core-foundation = "0.9.3"
346core-foundation-sys = "0.8.6"
347ctor = "0.2.6"
348dashmap = "6.0"
349derive_more = "0.99.17"
350dirs = "4.0"
351emojis = "0.6.1"
352env_logger = "0.11"
353exec = "0.3.1"
354fork = "0.2.0"
355futures = "0.3"
356futures-batch = "0.6.1"
357futures-lite = "1.13"
358git2 = { version = "0.19", default-features = false }
359globset = "0.4"
360heed = { version = "0.20.1", features = ["read-txn-no-tls"] }
361hex = "0.4.3"
362hyper = "0.14"
363html5ever = "0.27.0"
364ignore = "0.4.22"
365image = "0.25.1"
366indexmap = { version = "1.6.2", features = ["serde"] }
367indoc = "2"
368# We explicitly disable http2 support in isahc.
369isahc = { version = "1.7.2", default-features = false, features = [
370    "text-decoding",
371] }
372itertools = "0.13.0"
373jsonwebtoken = "9.3"
374libc = "0.2"
375linkify = "0.10.0"
376log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
377markup5ever_rcdom = "0.3.0"
378nanoid = "0.4"
379nix = "0.29"
380num-format = "0.4.4"
381once_cell = "1.19.0"
382ordered-float = "2.1.1"
383palette = { version = "0.7.5", default-features = false, features = ["std"] }
384parking_lot = "0.12.1"
385pathdiff = "0.2"
386profiling = "1"
387postage = { version = "0.5", features = ["futures-traits"] }
388pretty_assertions = "1.3.0"
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"
396rsa = "0.9.6"
397runtimelib = { version = "0.15", default-features = false, features = [
398    "async-dispatcher-runtime",
399] }
400rustc-demangle = "0.1.23"
401rust-embed = { version = "8.4", features = ["include-exclude"] }
402rustls = "0.20.3"
403rustls-native-certs = "0.8.0"
404schemars = { version = "0.8", features = ["impl_json_schema"] }
405semver = "1.0"
406serde = { version = "1.0", features = ["derive", "rc"] }
407serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
408serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
409serde_json_lenient = { version = "0.2", features = [
410    "preserve_order",
411    "raw_value",
412] }
413serde_repr = "0.1"
414sha2 = "0.10"
415shellexpand = "2.1.0"
416shlex = "1.3.0"
417signal-hook = "0.3.17"
418similar = "1.3"
419simplelog = "0.12.2"
420smallvec = { version = "1.6", features = ["union"] }
421smol = "1.2"
422strsim = "0.11"
423strum = { version = "0.25.0", features = ["derive"] }
424subtle = "2.5.0"
425sys-locale = "0.3.1"
426sysinfo = "0.31.0"
427tempfile = "3.9.0"
428thiserror = "1.0.29"
429tiktoken-rs = "0.5.9"
430time = { version = "0.3", features = [
431    "macros",
432    "parsing",
433    "serde",
434    "serde-well-known",
435    "formatting",
436] }
437tiny_http = "0.8"
438toml = "0.8"
439tokio = { version = "1", features = ["full"] }
440tower-http = "0.4.4"
441tree-sitter = { version = "0.23", features = ["wasm"] }
442tree-sitter-bash = "0.23"
443tree-sitter-c = "0.23"
444tree-sitter-cpp = "0.23"
445tree-sitter-css = "0.23"
446tree-sitter-elixir = "0.3"
447tree-sitter-embedded-template = "0.23.0"
448tree-sitter-go = "0.23"
449tree-sitter-go-mod = { git = "https://github.com/zed-industries/tree-sitter-go-mod", rev = "a9aea5e358cde4d0f8ff20b7bc4fa311e359c7ca", package = "tree-sitter-gomod" }
450tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
451tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
452tree-sitter-html = "0.20"
453tree-sitter-jsdoc = "0.23"
454tree-sitter-json = "0.23"
455tree-sitter-md = { git = "https://github.com/zed-industries/tree-sitter-markdown", rev = "4cfa6aad6b75052a5077c80fd934757d9267d81b" }
456protols-tree-sitter-proto = { git = "https://github.com/zed-industries/tree-sitter-proto", rev = "0848bd30a64be48772e15fbb9d5ba8c0cc5772ad" }
457tree-sitter-python = "0.23"
458tree-sitter-regex = "0.23"
459tree-sitter-ruby = "0.23"
460tree-sitter-rust = "0.23"
461tree-sitter-typescript = "0.23"
462tree-sitter-yaml =  { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
463unindent = "0.1.7"
464unicase = "2.6"
465unicode-segmentation = "1.10"
466url = "2.2"
467uuid = { version = "1.1.2", features = ["v4", "v5", "serde"] }
468wasmparser = "0.215"
469wasm-encoder = "0.215"
470wasmtime = { version = "24", default-features = false, features = [
471    "async",
472    "demangle",
473    "runtime",
474    "cranelift",
475    "component-model",
476] }
477wasmtime-wasi = "24"
478which = "6.0.0"
479wit-component = "0.201"
480
481[workspace.dependencies.async-stripe]
482version = "0.39"
483default-features = false
484features = [
485    "runtime-tokio-hyper-rustls",
486    "billing",
487    "checkout",
488    "events",
489    # The features below are only enabled to get the `events` feature to build.
490    "chrono",
491    "connect",
492]
493
494[workspace.dependencies.windows]
495version = "0.58"
496features = [
497    "implement",
498    "Foundation_Numerics",
499    "Storage",
500    "System_Threading",
501    "UI_ViewManagement",
502    "Wdk_System_SystemServices",
503    "Win32_Globalization",
504    "Win32_Graphics_Direct2D",
505    "Win32_Graphics_Direct2D_Common",
506    "Win32_Graphics_DirectWrite",
507    "Win32_Graphics_Dwm",
508    "Win32_Graphics_Dxgi_Common",
509    "Win32_Graphics_Gdi",
510    "Win32_Graphics_Imaging",
511    "Win32_Graphics_Imaging_D2D",
512    "Win32_Security",
513    "Win32_Security_Credentials",
514    "Win32_Storage_FileSystem",
515    "Win32_System_Com",
516    "Win32_System_Com_StructuredStorage",
517    "Win32_System_DataExchange",
518    "Win32_System_LibraryLoader",
519    "Win32_System_Memory",
520    "Win32_System_Ole",
521    "Win32_System_SystemInformation",
522    "Win32_System_SystemServices",
523    "Win32_System_Threading",
524    "Win32_System_WinRT",
525    "Win32_UI_Controls",
526    "Win32_UI_HiDpi",
527    "Win32_UI_Input_Ime",
528    "Win32_UI_Input_KeyboardAndMouse",
529    "Win32_UI_Shell",
530    "Win32_UI_Shell_Common",
531    "Win32_UI_WindowsAndMessaging",
532]
533
534[profile.dev]
535split-debuginfo = "unpacked"
536debug = "limited"
537codegen-units = 16
538
539[profile.dev.package]
540taffy = { opt-level = 3 }
541cranelift-codegen = { opt-level = 3 }
542resvg = { opt-level = 3 }
543rustybuzz = { opt-level = 3 }
544ttf-parser = { opt-level = 3 }
545wasmtime-cranelift = { opt-level = 3 }
546wasmtime = { opt-level = 3 }
547
548[profile.release]
549debug = "limited"
550lto = "thin"
551codegen-units = 1
552
553[profile.release.package]
554zed = { codegen-units = 16 }
555
556[profile.release-fast]
557inherits = "release"
558debug = "full"
559lto = false
560codegen-units = 16
561
562[workspace.lints.clippy]
563dbg_macro = "deny"
564todo = "deny"
565
566# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
567# warning on this rule produces a lot of noise.
568single_range_in_vec_init = "allow"
569
570# These are all of the rules that currently have violations in the Zed
571# codebase.
572#
573# We'll want to drive this list down by either:
574# 1. fixing violations of the rule and begin enforcing it
575# 2. deciding we want to allow the rule permanently, at which point
576#    we should codify that separately above.
577#
578# This list shouldn't be added to; it should only get shorter.
579# =============================================================================
580
581# There are a bunch of rules currently failing in the `style` group, so
582# allow all of those, for now.
583style = { level = "allow", priority = -1 }
584
585# Temporary list of style lints that we've fixed so far.
586module_inception = { level = "deny" }
587question_mark = { level = "deny" }
588redundant_closure = { level = "deny" }
589# Individual rules that have violations in the codebase:
590type_complexity = "allow"
591# We often return trait objects from `new` functions.
592new_ret_no_self = { level = "allow" }
593# We have a few `next` functions that differ in lifetimes
594# compared to Iterator::next. Yet, clippy complains about those.
595should_implement_trait = { level = "allow" }
596
597[workspace.metadata.cargo-machete]
598ignored = ["bindgen", "cbindgen", "prost_build", "serde"]