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