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/diagnostics",
 27    "crates/docs_preprocessor",
 28    "crates/editor",
 29    "crates/evals",
 30    "crates/extension",
 31    "crates/extension_api",
 32    "crates/extension_cli",
 33    "crates/extension_host",
 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/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/reqwest_client",
 90    "crates/rich_text",
 91    "crates/rope",
 92    "crates/rpc",
 93    "crates/search",
 94    "crates/semantic_index",
 95    "crates/semantic_version",
 96    "crates/session",
 97    "crates/settings",
 98    "crates/settings_ui",
 99    "crates/snippet",
100    "crates/snippet_provider",
101    "crates/snippets_ui",
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/toolchain_selector",
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/deno",
143    "extensions/elixir",
144    "extensions/elm",
145    "extensions/emmet",
146    "extensions/erlang",
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/proto",
156    "extensions/purescript",
157    "extensions/ruff",
158    "extensions/slash-commands-example",
159    "extensions/snippets",
160    "extensions/terraform",
161    "extensions/test-extension",
162    "extensions/toml",
163    "extensions/uiua",
164    "extensions/zig",
165
166    #
167    # Tooling
168    #
169
170    "tooling/xtask",
171]
172default-members = ["crates/zed"]
173
174[workspace.dependencies]
175
176#
177# Workspace member crates
178#
179
180activity_indicator = { path = "crates/activity_indicator" }
181ai = { path = "crates/ai" }
182anthropic = { path = "crates/anthropic" }
183assets = { path = "crates/assets" }
184assistant = { path = "crates/assistant" }
185assistant_slash_command = { path = "crates/assistant_slash_command" }
186assistant_tool = { path = "crates/assistant_tool" }
187audio = { path = "crates/audio" }
188auto_update = { path = "crates/auto_update" }
189breadcrumbs = { path = "crates/breadcrumbs" }
190call = { path = "crates/call" }
191channel = { path = "crates/channel" }
192cli = { path = "crates/cli" }
193client = { path = "crates/client" }
194clock = { path = "crates/clock" }
195collab = { path = "crates/collab" }
196collab_ui = { path = "crates/collab_ui" }
197collections = { path = "crates/collections" }
198command_palette = { path = "crates/command_palette" }
199command_palette_hooks = { path = "crates/command_palette_hooks" }
200context_servers = { path = "crates/context_servers" }
201copilot = { path = "crates/copilot" }
202db = { path = "crates/db" }
203diagnostics = { path = "crates/diagnostics" }
204editor = { path = "crates/editor" }
205extension = { path = "crates/extension" }
206extension_host = { path = "crates/extension_host" }
207extensions_ui = { path = "crates/extensions_ui" }
208feature_flags = { path = "crates/feature_flags" }
209feedback = { path = "crates/feedback" }
210file_finder = { path = "crates/file_finder" }
211file_icons = { path = "crates/file_icons" }
212fs = { path = "crates/fs" }
213fsevent = { path = "crates/fsevent" }
214fuzzy = { path = "crates/fuzzy" }
215git = { path = "crates/git" }
216git_hosting_providers = { path = "crates/git_hosting_providers" }
217go_to_line = { path = "crates/go_to_line" }
218google_ai = { path = "crates/google_ai" }
219gpui = { path = "crates/gpui", default-features = false, features = ["http_client"]}
220gpui_macros = { path = "crates/gpui_macros" }
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" }
263reqwest_client = { path = "crates/reqwest_client" }
264rich_text = { path = "crates/rich_text" }
265rope = { path = "crates/rope" }
266rpc = { path = "crates/rpc" }
267search = { path = "crates/search" }
268semantic_index = { path = "crates/semantic_index" }
269semantic_version = { path = "crates/semantic_version" }
270session = { path = "crates/session" }
271settings = { path = "crates/settings" }
272settings_ui = { path = "crates/settings_ui" }
273snippet = { path = "crates/snippet" }
274snippet_provider = { path = "crates/snippet_provider" }
275snippets_ui = { path = "crates/snippets_ui" }
276sqlez = { path = "crates/sqlez" }
277sqlez_macros = { path = "crates/sqlez_macros" }
278story = { path = "crates/story" }
279storybook = { path = "crates/storybook" }
280sum_tree = { path = "crates/sum_tree" }
281supermaven = { path = "crates/supermaven" }
282supermaven_api = { path = "crates/supermaven_api" }
283tab_switcher = { path = "crates/tab_switcher" }
284task = { path = "crates/task" }
285tasks_ui = { path = "crates/tasks_ui" }
286telemetry_events = { path = "crates/telemetry_events" }
287terminal = { path = "crates/terminal" }
288terminal_view = { path = "crates/terminal_view" }
289text = { path = "crates/text" }
290theme = { path = "crates/theme" }
291theme_importer = { path = "crates/theme_importer" }
292theme_selector = { path = "crates/theme_selector" }
293time_format = { path = "crates/time_format" }
294title_bar = { path = "crates/title_bar" }
295toolchain_selector = { path = "crates/toolchain_selector" }
296ui = { path = "crates/ui" }
297ui_input = { path = "crates/ui_input" }
298ui_macros = { path = "crates/ui_macros" }
299util = { path = "crates/util" }
300vcs_menu = { path = "crates/vcs_menu" }
301vim = { path = "crates/vim" }
302welcome = { path = "crates/welcome" }
303workspace = { path = "crates/workspace" }
304worktree = { path = "crates/worktree" }
305zed = { path = "crates/zed" }
306zed_actions = { path = "crates/zed_actions" }
307
308#
309# External crates
310#
311
312aho-corasick = "1.1"
313alacritty_terminal = { git = "https://github.com/alacritty/alacritty", rev = "91d034ff8b53867143c005acfaa14609147c9a2c" }
314any_vec = "0.14"
315anyhow = "1.0.86"
316arrayvec = { version = "0.7.4", features = ["serde"] }
317ashpd = "0.9.1"
318async-compat = "0.2.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.24"
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"
335bytes = "1.0"
336cargo_metadata = "0.18"
337cargo_toml = "0.20"
338chrono = { version = "0.4", features = ["serde"] }
339clap = { version = "4.4", features = ["derive"] }
340clickhouse = "0.11.6"
341cocoa = "0.26"
342convert_case = "0.6.0"
343core-foundation = "0.9.3"
344core-foundation-sys = "0.8.6"
345ctor = "0.2.6"
346dashmap = "6.0"
347derive_more = "0.99.17"
348dirs = "4.0"
349ec4rs = "1.1"
350emojis = "0.6.1"
351env_logger = "0.11"
352exec = "0.3.1"
353fork = "0.2.0"
354futures = "0.3"
355futures-batch = "0.6.1"
356futures-lite = "1.13"
357git2 = { version = "0.19", default-features = false }
358globset = "0.4"
359handlebars = "4.3"
360heed = { version = "0.20.1", features = ["read-txn-no-tls"] }
361hex = "0.4.3"
362html5ever = "0.27.0"
363hyper = "0.14"
364ignore = "0.4.22"
365image = "0.25.1"
366indexmap = { version = "1.6.2", features = ["serde"] }
367indoc = "2"
368itertools = "0.13.0"
369jsonwebtoken = "9.3"
370libc = "0.2"
371linkify = "0.10.0"
372log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
373markup5ever_rcdom = "0.3.0"
374nanoid = "0.4"
375nbformat = "0.5.0"
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"
383pet = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c" }
384pet-fs = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c" }
385pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c"  }
386pet-core = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c"  }
387pet-poetry = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c"  }
388pet-reporter = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c"  }
389postage = { version = "0.5", features = ["futures-traits"] }
390pretty_assertions = "1.3.0"
391profiling = "1"
392prost = "0.9"
393prost-build = "0.9"
394prost-types = "0.9"
395pulldown-cmark = { version = "0.12.0", default-features = false }
396rand = "0.8.5"
397rayon = "1.8"
398regex = "1.5"
399repair_json = "0.1.0"
400reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "fd110f6998da16bbca97b6dddda9be7827c50e29", default-features = false, features = [
401    "charset",
402    "http2",
403    "macos-system-configuration",
404    "rustls-tls-native-roots",
405    "socks",
406    "stream",
407] }
408rsa = "0.9.6"
409runtimelib = { version = "0.19.0", default-features = false, features = [
410    "async-dispatcher-runtime",
411] }
412rustc-demangle = "0.1.23"
413rust-embed = { version = "8.4", features = ["include-exclude"] }
414rustls = "0.20.3"
415rustls-native-certs = "0.8.0"
416schemars = { version = "0.8", features = ["impl_json_schema"] }
417semver = "1.0"
418serde = { version = "1.0", features = ["derive", "rc"] }
419serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
420serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
421serde_json_lenient = { version = "0.2", features = [
422    "preserve_order",
423    "raw_value",
424] }
425serde_repr = "0.1"
426sha2 = "0.10"
427shellexpand = "2.1.0"
428shlex = "1.3.0"
429signal-hook = "0.3.17"
430similar = "1.3"
431simplelog = "0.12.2"
432smallvec = { version = "1.6", features = ["union"] }
433smol = "1.2"
434sqlformat = "0.2"
435strsim = "0.11"
436strum = { version = "0.25.0", features = ["derive"] }
437subtle = "2.5.0"
438sys-locale = "0.3.1"
439sysinfo = "0.31.0"
440tempfile = "3.9.0"
441thiserror = "1.0.29"
442tiktoken-rs = "0.5.9"
443time = { version = "0.3", features = [
444    "macros",
445    "parsing",
446    "serde",
447    "serde-well-known",
448    "formatting",
449] }
450tiny_http = "0.8"
451toml = "0.8"
452tokio = { version = "1" }
453tower-http = "0.4.4"
454tree-sitter = { version = "0.23", features = ["wasm"] }
455tree-sitter-bash = "0.23"
456tree-sitter-c = "0.23"
457tree-sitter-cpp = "0.23"
458tree-sitter-css = "0.23"
459tree-sitter-elixir = "0.3"
460tree-sitter-embedded-template = "0.23.0"
461tree-sitter-go = "0.23"
462tree-sitter-go-mod = { git = "https://github.com/zed-industries/tree-sitter-go-mod", rev = "a9aea5e358cde4d0f8ff20b7bc4fa311e359c7ca", package = "tree-sitter-gomod" }
463tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
464tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
465tree-sitter-diff = "0.1.0"
466tree-sitter-html = "0.20"
467tree-sitter-jsdoc = "0.23"
468tree-sitter-json = "0.23"
469tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
470tree-sitter-python = "0.23"
471tree-sitter-regex = "0.23"
472tree-sitter-ruby = "0.23"
473tree-sitter-rust = "0.23"
474tree-sitter-typescript = "0.23"
475tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
476unicase = "2.6"
477unindent = "0.1.7"
478unicode-segmentation = "1.10"
479unicode-script = "0.5.7"
480url = "2.2"
481uuid = { version = "1.1.2", features = ["v4", "v5", "serde"] }
482wasmparser = "0.215"
483wasm-encoder = "0.215"
484wasmtime = { version = "24", default-features = false, features = [
485    "async",
486    "demangle",
487    "runtime",
488    "cranelift",
489    "component-model",
490] }
491wasmtime-wasi = "24"
492which = "6.0.0"
493wit-component = "0.201"
494zstd = "0.11"
495
496[workspace.dependencies.async-stripe]
497git = "https://github.com/zed-industries/async-stripe"
498rev = "3672dd4efb7181aa597bf580bf5a2f5d23db6735"
499default-features = false
500features = [
501    "runtime-tokio-hyper-rustls",
502    "billing",
503    "checkout",
504    "events",
505    # The features below are only enabled to get the `events` feature to build.
506    "chrono",
507    "connect",
508]
509
510[workspace.dependencies.windows]
511version = "0.58"
512features = [
513    "implement",
514    "Foundation_Numerics",
515    "Storage",
516    "System_Threading",
517    "UI_ViewManagement",
518    "Wdk_System_SystemServices",
519    "Win32_Globalization",
520    "Win32_Graphics_Direct2D",
521    "Win32_Graphics_Direct2D_Common",
522    "Win32_Graphics_DirectWrite",
523    "Win32_Graphics_Dwm",
524    "Win32_Graphics_Dxgi_Common",
525    "Win32_Graphics_Gdi",
526    "Win32_Graphics_Imaging",
527    "Win32_Graphics_Imaging_D2D",
528    "Win32_Security",
529    "Win32_Security_Credentials",
530    "Win32_Storage_FileSystem",
531    "Win32_System_Com",
532    "Win32_System_Com_StructuredStorage",
533    "Win32_System_DataExchange",
534    "Win32_System_LibraryLoader",
535    "Win32_System_Memory",
536    "Win32_System_Ole",
537    "Win32_System_SystemInformation",
538    "Win32_System_SystemServices",
539    "Win32_System_Threading",
540    "Win32_System_WinRT",
541    "Win32_UI_Controls",
542    "Win32_UI_HiDpi",
543    "Win32_UI_Input_Ime",
544    "Win32_UI_Input_KeyboardAndMouse",
545    "Win32_UI_Shell",
546    "Win32_UI_Shell_Common",
547    "Win32_UI_WindowsAndMessaging",
548]
549
550[profile.dev]
551split-debuginfo = "unpacked"
552debug = "limited"
553codegen-units = 16
554
555[profile.dev.package]
556taffy = { opt-level = 3 }
557cranelift-codegen = { opt-level = 3 }
558resvg = { opt-level = 3 }
559rustybuzz = { opt-level = 3 }
560ttf-parser = { opt-level = 3 }
561wasmtime-cranelift = { opt-level = 3 }
562wasmtime = { opt-level = 3 }
563
564[profile.release]
565debug = "limited"
566lto = "thin"
567codegen-units = 1
568
569[profile.release.package]
570zed = { codegen-units = 16 }
571
572[profile.release-fast]
573inherits = "release"
574debug = "full"
575lto = false
576codegen-units = 16
577
578[workspace.lints.clippy]
579dbg_macro = "deny"
580todo = "deny"
581
582# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
583# warning on this rule produces a lot of noise.
584single_range_in_vec_init = "allow"
585
586# These are all of the rules that currently have violations in the Zed
587# codebase.
588#
589# We'll want to drive this list down by either:
590# 1. fixing violations of the rule and begin enforcing it
591# 2. deciding we want to allow the rule permanently, at which point
592#    we should codify that separately above.
593#
594# This list shouldn't be added to; it should only get shorter.
595# =============================================================================
596
597# There are a bunch of rules currently failing in the `style` group, so
598# allow all of those, for now.
599style = { level = "allow", priority = -1 }
600
601# Temporary list of style lints that we've fixed so far.
602module_inception = { level = "deny" }
603question_mark = { level = "deny" }
604redundant_closure = { level = "deny" }
605# Individual rules that have violations in the codebase:
606type_complexity = "allow"
607# We often return trait objects from `new` functions.
608new_ret_no_self = { level = "allow" }
609# We have a few `next` functions that differ in lifetimes
610# compared to Iterator::next. Yet, clippy complains about those.
611should_implement_trait = { level = "allow" }
612
613[workspace.metadata.cargo-machete]
614ignored = ["bindgen", "cbindgen", "prost_build", "serde"]