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/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/headless",
 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/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/sqlez",
101    "crates/sqlez_macros",
102    "crates/story",
103    "crates/storybook",
104    "crates/sum_tree",
105    "crates/supermaven",
106    "crates/supermaven_api",
107    "crates/tab_switcher",
108    "crates/task",
109    "crates/tasks_ui",
110    "crates/telemetry_events",
111    "crates/terminal",
112    "crates/terminal_view",
113    "crates/text",
114    "crates/theme",
115    "crates/theme_importer",
116    "crates/theme_selector",
117    "crates/time_format",
118    "crates/title_bar",
119    "crates/ui",
120    "crates/ui_input",
121    "crates/util",
122    "crates/vcs_menu",
123    "crates/vim",
124    "crates/welcome",
125    "crates/workspace",
126    "crates/worktree",
127    "crates/zed",
128    "crates/zed_actions",
129
130    #
131    # Extensions
132    #
133
134    "extensions/astro",
135    "extensions/clojure",
136    "extensions/csharp",
137    "extensions/dart",
138    "extensions/deno",
139    "extensions/elixir",
140    "extensions/elm",
141    "extensions/emmet",
142    "extensions/erlang",
143    "extensions/gleam",
144    "extensions/glsl",
145    "extensions/haskell",
146    "extensions/html",
147    "extensions/lua",
148    "extensions/ocaml",
149    "extensions/php",
150    "extensions/perplexity",
151    "extensions/prisma",
152    "extensions/purescript",
153    "extensions/ruff",
154    "extensions/ruby",
155    "extensions/slash-commands-example",
156    "extensions/snippets",
157    "extensions/svelte",
158    "extensions/terraform",
159    "extensions/test-extension",
160    "extensions/toml",
161    "extensions/uiua",
162    "extensions/vue",
163    "extensions/zig",
164
165    #
166    # Tooling
167    #
168
169    "tooling/xtask",
170]
171default-members = ["crates/zed"]
172
173[workspace.dependencies]
174#
175# Workspace member crates
176#
177
178activity_indicator = { path = "crates/activity_indicator" }
179ai = { path = "crates/ai" }
180anthropic = { path = "crates/anthropic" }
181assets = { path = "crates/assets" }
182assistant = { path = "crates/assistant" }
183assistant_slash_command = { path = "crates/assistant_slash_command" }
184assistant_tool = { path = "crates/assistant_tool" }
185audio = { path = "crates/audio" }
186auto_update = { path = "crates/auto_update" }
187breadcrumbs = { path = "crates/breadcrumbs" }
188call = { path = "crates/call" }
189channel = { path = "crates/channel" }
190cli = { path = "crates/cli" }
191client = { path = "crates/client" }
192clock = { path = "crates/clock" }
193collab = { path = "crates/collab" }
194collab_ui = { path = "crates/collab_ui" }
195collections = { path = "crates/collections" }
196command_palette = { path = "crates/command_palette" }
197command_palette_hooks = { path = "crates/command_palette_hooks" }
198context_servers = { path = "crates/context_servers" }
199copilot = { path = "crates/copilot" }
200db = { path = "crates/db" }
201dev_server_projects = { path = "crates/dev_server_projects" }
202diagnostics = { path = "crates/diagnostics" }
203editor = { path = "crates/editor" }
204extension = { path = "crates/extension" }
205extensions_ui = { path = "crates/extensions_ui" }
206feature_flags = { path = "crates/feature_flags" }
207feedback = { path = "crates/feedback" }
208file_finder = { path = "crates/file_finder" }
209file_icons = { path = "crates/file_icons" }
210fs = { path = "crates/fs" }
211fsevent = { path = "crates/fsevent" }
212fuzzy = { path = "crates/fuzzy" }
213git = { path = "crates/git" }
214git_hosting_providers = { path = "crates/git_hosting_providers" }
215go_to_line = { path = "crates/go_to_line" }
216google_ai = { path = "crates/google_ai" }
217gpui = { path = "crates/gpui" }
218gpui_macros = { path = "crates/gpui_macros" }
219handlebars = "4.3"
220headless = { path = "crates/headless" }
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" }
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" }
274sqlez = { path = "crates/sqlez" }
275sqlez_macros = { path = "crates/sqlez_macros" }
276story = { path = "crates/story" }
277storybook = { path = "crates/storybook" }
278sum_tree = { path = "crates/sum_tree" }
279supermaven = { path = "crates/supermaven" }
280supermaven_api = { path = "crates/supermaven_api" }
281tab_switcher = { path = "crates/tab_switcher" }
282task = { path = "crates/task" }
283tasks_ui = { path = "crates/tasks_ui" }
284telemetry_events = { path = "crates/telemetry_events" }
285terminal = { path = "crates/terminal" }
286terminal_view = { path = "crates/terminal_view" }
287text = { path = "crates/text" }
288theme = { path = "crates/theme" }
289theme_importer = { path = "crates/theme_importer" }
290theme_selector = { path = "crates/theme_selector" }
291time_format = { path = "crates/time_format" }
292title_bar = { path = "crates/title_bar" }
293ui = { path = "crates/ui" }
294ui_input = { path = "crates/ui_input" }
295util = { path = "crates/util" }
296vcs_menu = { path = "crates/vcs_menu" }
297vim = { path = "crates/vim" }
298welcome = { path = "crates/welcome" }
299workspace = { path = "crates/workspace" }
300worktree = { path = "crates/worktree" }
301zed = { path = "crates/zed" }
302zed_actions = { path = "crates/zed_actions" }
303
304#
305# External crates
306#
307
308aho-corasick = "1.1"
309alacritty_terminal = { git = "https://github.com/alacritty/alacritty", rev = "91d034ff8b53867143c005acfaa14609147c9a2c" }
310any_vec = "0.14"
311anyhow = "1.0.86"
312arrayvec = { version = "0.7.4", features = ["serde"] }
313ashpd = "0.9.1"
314async-compression = { version = "0.4", features = ["gzip", "futures-io"] }
315async-dispatcher = "0.1"
316async-fs = "1.6"
317async-pipe = { git = "https://github.com/zed-industries/async-pipe-rs", rev = "82d00a04211cf4e1236029aa03e6b6ce2a74c553" }
318async-recursion = "1.0.0"
319async-tar = "0.5.0"
320async-trait = "0.1"
321async-tungstenite = "0.23"
322async-watch = "0.3.1"
323async_zip = { version = "0.0.17", features = ["deflate", "deflate64"] }
324base64 = "0.22"
325bitflags = "2.6.0"
326blade-graphics = { git = "https://github.com/kvark/blade", rev = "e142a3a5e678eb6a13e642ad8401b1f3aa38e969" }
327blade-macros = { git = "https://github.com/kvark/blade", rev = "e142a3a5e678eb6a13e642ad8401b1f3aa38e969" }
328blade-util = { git = "https://github.com/kvark/blade", rev = "e142a3a5e678eb6a13e642ad8401b1f3aa38e969" }
329blake3 = "1.5.3"
330cargo_metadata = "0.18"
331cargo_toml = "0.20"
332chrono = { version = "0.4", features = ["serde"] }
333clap = { version = "4.4", features = ["derive"] }
334clickhouse = "0.11.6"
335cocoa = "0.26"
336core-foundation = "0.9.3"
337core-foundation-sys = "0.8.6"
338ctor = "0.2.6"
339dashmap = "6.0"
340derive_more = "0.99.17"
341dirs = "4.0"
342emojis = "0.6.1"
343env_logger = "0.11"
344exec = "0.3.1"
345fork = "0.2.0"
346futures = "0.3"
347futures-batch = "0.6.1"
348futures-lite = "1.13"
349git2 = { version = "0.19", default-features = false }
350globset = "0.4"
351heed = { version = "0.20.1", features = ["read-txn-no-tls"] }
352hex = "0.4.3"
353hyper = "0.14"
354html5ever = "0.27.0"
355ignore = "0.4.22"
356image = "0.25.1"
357indexmap = { version = "1.6.2", features = ["serde"] }
358indoc = "2"
359# We explicitly disable http2 support in isahc.
360isahc = { version = "1.7.2", default-features = false, features = [
361    "text-decoding",
362] }
363itertools = "0.13.0"
364jsonwebtoken = "9.3"
365libc = "0.2"
366linkify = "0.10.0"
367log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
368markup5ever_rcdom = "0.3.0"
369nanoid = "0.4"
370nix = "0.29"
371num-format = "0.4.4"
372once_cell = "1.19.0"
373ordered-float = "2.1.1"
374palette = { version = "0.7.5", default-features = false, features = ["std"] }
375parking_lot = "0.12.1"
376pathdiff = "0.2"
377profiling = "1"
378postage = { version = "0.5", features = ["futures-traits"] }
379pretty_assertions = "1.3.0"
380prost = "0.9"
381prost-build = "0.9"
382prost-types = "0.9"
383pulldown-cmark = { version = "0.12.0", default-features = false }
384rand = "0.8.5"
385regex = "1.5"
386repair_json = "0.1.0"
387rsa = "0.9.6"
388runtimelib = { version = "0.15", default-features = false, features = [
389    "async-dispatcher-runtime",
390] }
391rustc-demangle = "0.1.23"
392rust-embed = { version = "8.4", features = ["include-exclude"] }
393schemars = { version = "0.8", features = ["impl_json_schema"] }
394semver = "1.0"
395serde = { version = "1.0", features = ["derive", "rc"] }
396serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
397serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
398serde_json_lenient = { version = "0.2", features = [
399    "preserve_order",
400    "raw_value",
401] }
402serde_repr = "0.1"
403sha2 = "0.10"
404shellexpand = "2.1.0"
405shlex = "1.3.0"
406signal-hook = "0.3.17"
407similar = "1.3"
408simplelog = "0.12.2"
409smallvec = { version = "1.6", features = ["union"] }
410smol = "1.2"
411strsim = "0.11"
412strum = { version = "0.25.0", features = ["derive"] }
413subtle = "2.5.0"
414sys-locale = "0.3.1"
415sysinfo = "0.30.7"
416tempfile = "3.9.0"
417thiserror = "1.0.29"
418tiktoken-rs = "0.5.9"
419time = { version = "0.3", features = [
420    "macros",
421    "parsing",
422    "serde",
423    "serde-well-known",
424    "formatting",
425] }
426tiny_http = "0.8"
427toml = "0.8"
428tokio = { version = "1", features = ["full"] }
429tower-http = "0.4.4"
430tree-sitter = { version = "0.22", features = ["wasm"] }
431tree-sitter-bash = "0.21"
432tree-sitter-c = "0.21"
433tree-sitter-cpp = "0.22"
434tree-sitter-css = "0.21"
435tree-sitter-elixir = "0.2"
436tree-sitter-embedded-template = "0.20.0"
437tree-sitter-go = "0.21"
438tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "1f55029bacd0a6a11f6eb894c4312d429dcf735c", package = "tree-sitter-gomod" }
439tree-sitter-gowork = { git = "https://github.com/d1y/tree-sitter-go-work", rev = "dcbabff454703c3a4bc98a23cf8778d4be46fd22" }
440tree-sitter-heex = { git = "https://github.com/phoenixframework/tree-sitter-heex", rev = "6dd0303acf7138dd2b9b432a229e16539581c701" }
441tree-sitter-html = "0.20"
442tree-sitter-jsdoc = "0.21"
443tree-sitter-json = "0.21"
444tree-sitter-md = { git = "https://github.com/zed-industries/tree-sitter-markdown", rev = "e3855e37f8f2c71aa7513c18a9c95fb7461b1b10" }
445protols-tree-sitter-proto = "0.2"
446tree-sitter-python = "0.21"
447tree-sitter-regex = "0.21"
448tree-sitter-ruby = "0.21"
449tree-sitter-rust = "0.21"
450tree-sitter-typescript = "0.21"
451tree-sitter-yaml = "0.6"
452unindent = "0.1.7"
453unicase = "2.6"
454unicode-segmentation = "1.10"
455url = "2.2"
456uuid = { version = "1.1.2", features = ["v4", "v5", "serde"] }
457wasmparser = "0.201"
458wasm-encoder = "0.201"
459wasmtime = { version = "21.0.1", default-features = false, features = [
460    "async",
461    "demangle",
462    "runtime",
463    "cranelift",
464    "component-model",
465] }
466wasmtime-wasi = "21.0.1"
467which = "6.0.0"
468wit-component = "0.201"
469
470[workspace.dependencies.async-stripe]
471version = "0.39"
472default-features = false
473features = [
474    "runtime-tokio-hyper-rustls",
475    "billing",
476    "checkout",
477    "events",
478    # The features below are only enabled to get the `events` feature to build.
479    "chrono",
480    "connect",
481]
482
483[workspace.dependencies.windows]
484version = "0.58"
485features = [
486    "implement",
487    "Foundation_Numerics",
488    "Storage",
489    "System",
490    "System_Threading",
491    "UI_ViewManagement",
492    "Wdk_System_SystemServices",
493    "Win32_Globalization",
494    "Win32_Graphics_Direct2D",
495    "Win32_Graphics_Direct2D_Common",
496    "Win32_Graphics_DirectWrite",
497    "Win32_Graphics_Dwm",
498    "Win32_Graphics_Dxgi_Common",
499    "Win32_Graphics_Gdi",
500    "Win32_Graphics_Imaging",
501    "Win32_Graphics_Imaging_D2D",
502    "Win32_Security",
503    "Win32_Security_Credentials",
504    "Win32_Storage_FileSystem",
505    "Win32_System_Com",
506    "Win32_System_Com_StructuredStorage",
507    "Win32_System_DataExchange",
508    "Win32_System_LibraryLoader",
509    "Win32_System_Memory",
510    "Win32_System_Ole",
511    "Win32_System_SystemInformation",
512    "Win32_System_SystemServices",
513    "Win32_System_Threading",
514    "Win32_System_WinRT",
515    "Win32_UI_Controls",
516    "Win32_UI_HiDpi",
517    "Win32_UI_Input_Ime",
518    "Win32_UI_Input_KeyboardAndMouse",
519    "Win32_UI_Shell",
520    "Win32_UI_WindowsAndMessaging",
521]
522
523[patch.crates-io]
524# Patch Tree-sitter for updated wasmtime.
525tree-sitter = { git = "https://github.com/tree-sitter/tree-sitter", rev = "7f4a57817d58a2f134fe863674acad6bbf007228" }
526
527[profile.dev]
528split-debuginfo = "unpacked"
529debug = "limited"
530codegen-units = 16
531
532[profile.dev.package]
533taffy = { opt-level = 3 }
534cranelift-codegen = { opt-level = 3 }
535resvg = { opt-level = 3 }
536rustybuzz = { opt-level = 3 }
537ttf-parser = { opt-level = 3 }
538wasmtime-cranelift = { opt-level = 3 }
539wasmtime = { opt-level = 3 }
540
541[profile.release]
542debug = "limited"
543lto = "thin"
544codegen-units = 1
545
546[profile.release.package]
547zed = { codegen-units = 16 }
548
549[profile.release-fast]
550inherits = "release"
551debug = "full"
552lto = false
553codegen-units = 16
554
555[workspace.lints.clippy]
556dbg_macro = "deny"
557todo = "deny"
558
559# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
560# warning on this rule produces a lot of noise.
561single_range_in_vec_init = "allow"
562
563# These are all of the rules that currently have violations in the Zed
564# codebase.
565#
566# We'll want to drive this list down by either:
567# 1. fixing violations of the rule and begin enforcing it
568# 2. deciding we want to allow the rule permanently, at which point
569#    we should codify that separately above.
570#
571# This list shouldn't be added to; it should only get shorter.
572# =============================================================================
573
574# There are a bunch of rules currently failing in the `style` group, so
575# allow all of those, for now.
576style = { level = "allow", priority = -1 }
577
578# Temporary list of style lints that we've fixed so far.
579module_inception = { level = "deny" }
580question_mark = { level = "deny" }
581redundant_closure = { level = "deny" }
582# Individual rules that have violations in the codebase:
583type_complexity = "allow"
584# We often return trait objects from `new` functions.
585new_ret_no_self = { level = "allow" }
586# We have a few `next` functions that differ in lifetimes
587# compared to Iterator::next. Yet, clippy complains about those.
588should_implement_trait = { level = "allow" }
589
590[workspace.metadata.cargo-machete]
591ignored = ["bindgen", "cbindgen", "prost_build", "serde"]