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