Cargo.toml

  1[workspace]
  2members = [
  3    "crates/activity_indicator",
  4    "crates/anthropic",
  5    "crates/assets",
  6    "crates/assistant",
  7    "crates/assistant_slash_command",
  8    "crates/assistant_tooling",
  9    "crates/audio",
 10    "crates/auto_update",
 11    "crates/breadcrumbs",
 12    "crates/call",
 13    "crates/channel",
 14    "crates/cli",
 15    "crates/client",
 16    "crates/clock",
 17    "crates/collab",
 18    "crates/collab_ui",
 19    "crates/collections",
 20    "crates/command_palette",
 21    "crates/command_palette_hooks",
 22    "crates/copilot",
 23    "crates/db",
 24    "crates/dev_server_projects",
 25    "crates/diagnostics",
 26    "crates/editor",
 27    "crates/extension",
 28    "crates/extension_api",
 29    "crates/extension_cli",
 30    "crates/extensions_ui",
 31    "crates/feature_flags",
 32    "crates/feedback",
 33    "crates/file_finder",
 34    "crates/file_icons",
 35    "crates/fs",
 36    "crates/fsevent",
 37    "crates/fuzzy",
 38    "crates/git",
 39    "crates/git_hosting_providers",
 40    "crates/go_to_line",
 41    "crates/google_ai",
 42    "crates/gpui",
 43    "crates/gpui_macros",
 44    "crates/headless",
 45    "crates/html_to_markdown",
 46    "crates/http",
 47    "crates/image_viewer",
 48    "crates/indexed_docs",
 49    "crates/inline_completion_button",
 50    "crates/install_cli",
 51    "crates/journal",
 52    "crates/language",
 53    "crates/language_selector",
 54    "crates/language_tools",
 55    "crates/languages",
 56    "crates/live_kit_client",
 57    "crates/live_kit_server",
 58    "crates/lsp",
 59    "crates/markdown",
 60    "crates/markdown_preview",
 61    "crates/media",
 62    "crates/menu",
 63    "crates/multi_buffer",
 64    "crates/node_runtime",
 65    "crates/notifications",
 66    "crates/ollama",
 67    "crates/open_ai",
 68    "crates/outline",
 69    "crates/outline_panel",
 70    "crates/paths",
 71    "crates/picker",
 72    "crates/prettier",
 73    "crates/project",
 74    "crates/project_panel",
 75    "crates/project_symbols",
 76    "crates/proto",
 77    "crates/quick_action_bar",
 78    "crates/recent_projects",
 79    "crates/refineable",
 80    "crates/refineable/derive_refineable",
 81    "crates/release_channel",
 82    "crates/repl",
 83    "crates/rich_text",
 84    "crates/rope",
 85    "crates/rpc",
 86    "crates/search",
 87    "crates/semantic_index",
 88    "crates/semantic_version",
 89    "crates/settings",
 90    "crates/snippet",
 91    "crates/snippet_provider",
 92    "crates/sqlez",
 93    "crates/sqlez_macros",
 94    "crates/story",
 95    "crates/storybook",
 96    "crates/sum_tree",
 97    "crates/supermaven",
 98    "crates/supermaven_api",
 99    "crates/tab_switcher",
100    "crates/task",
101    "crates/tasks_ui",
102    "crates/telemetry_events",
103    "crates/terminal",
104    "crates/terminal_view",
105    "crates/text",
106    "crates/theme",
107    "crates/theme_importer",
108    "crates/theme_selector",
109    "crates/time_format",
110    "crates/title_bar",
111    "crates/ui",
112    "crates/ui_input",
113    "crates/util",
114    "crates/vcs_menu",
115    "crates/vim",
116    "crates/welcome",
117    "crates/workspace",
118    "crates/worktree",
119    "crates/zed",
120    "crates/zed_actions",
121
122    "extensions/astro",
123    "extensions/clojure",
124    "extensions/csharp",
125    "extensions/dart",
126    "extensions/deno",
127    "extensions/elixir",
128    "extensions/elm",
129    "extensions/emmet",
130    "extensions/erlang",
131    "extensions/gleam",
132    "extensions/glsl",
133    "extensions/haskell",
134    "extensions/html",
135    "extensions/lua",
136    "extensions/ocaml",
137    "extensions/php",
138    "extensions/prisma",
139    "extensions/purescript",
140    "extensions/ruby",
141    "extensions/snippets",
142    "extensions/svelte",
143    "extensions/terraform",
144    "extensions/test-extension",
145    "extensions/toml",
146    "extensions/uiua",
147    "extensions/vue",
148    "extensions/zig",
149
150    "tooling/xtask",
151]
152default-members = ["crates/zed"]
153resolver = "2"
154
155[workspace.dependencies]
156activity_indicator = { path = "crates/activity_indicator" }
157ai = { path = "crates/ai" }
158anthropic = { path = "crates/anthropic" }
159assets = { path = "crates/assets" }
160assistant = { path = "crates/assistant" }
161assistant_slash_command = { path = "crates/assistant_slash_command" }
162assistant_tooling = { path = "crates/assistant_tooling" }
163audio = { path = "crates/audio" }
164auto_update = { path = "crates/auto_update" }
165breadcrumbs = { path = "crates/breadcrumbs" }
166call = { path = "crates/call" }
167channel = { path = "crates/channel" }
168cli = { path = "crates/cli" }
169client = { path = "crates/client" }
170clock = { path = "crates/clock" }
171collab = { path = "crates/collab" }
172collab_ui = { path = "crates/collab_ui" }
173collections = { path = "crates/collections" }
174command_palette = { path = "crates/command_palette" }
175command_palette_hooks = { path = "crates/command_palette_hooks" }
176copilot = { path = "crates/copilot" }
177db = { path = "crates/db" }
178dev_server_projects = { path = "crates/dev_server_projects" }
179diagnostics = { path = "crates/diagnostics" }
180editor = { path = "crates/editor" }
181extension = { path = "crates/extension" }
182extensions_ui = { path = "crates/extensions_ui" }
183feature_flags = { path = "crates/feature_flags" }
184feedback = { path = "crates/feedback" }
185file_finder = { path = "crates/file_finder" }
186file_icons = { path = "crates/file_icons" }
187fs = { path = "crates/fs" }
188fsevent = { path = "crates/fsevent" }
189fuzzy = { path = "crates/fuzzy" }
190git = { path = "crates/git" }
191git_hosting_providers = { path = "crates/git_hosting_providers" }
192go_to_line = { path = "crates/go_to_line" }
193google_ai = { path = "crates/google_ai" }
194gpui = { path = "crates/gpui" }
195gpui_macros = { path = "crates/gpui_macros" }
196headless = { path = "crates/headless" }
197html_to_markdown = { path = "crates/html_to_markdown" }
198http = { path = "crates/http" }
199image_viewer = { path = "crates/image_viewer" }
200indexed_docs = { path = "crates/indexed_docs" }
201inline_completion_button = { path = "crates/inline_completion_button" }
202install_cli = { path = "crates/install_cli" }
203journal = { path = "crates/journal" }
204language = { path = "crates/language" }
205language_selector = { path = "crates/language_selector" }
206language_tools = { path = "crates/language_tools" }
207languages = { path = "crates/languages" }
208live_kit_client = { path = "crates/live_kit_client" }
209live_kit_server = { path = "crates/live_kit_server" }
210lsp = { path = "crates/lsp" }
211markdown = { path = "crates/markdown" }
212markdown_preview = { path = "crates/markdown_preview" }
213media = { path = "crates/media" }
214menu = { path = "crates/menu" }
215multi_buffer = { path = "crates/multi_buffer" }
216node_runtime = { path = "crates/node_runtime" }
217notifications = { path = "crates/notifications" }
218ollama = { path = "crates/ollama" }
219open_ai = { path = "crates/open_ai" }
220outline = { path = "crates/outline" }
221outline_panel = { path = "crates/outline_panel" }
222paths = { path = "crates/paths" }
223picker = { path = "crates/picker" }
224plugin = { path = "crates/plugin" }
225plugin_macros = { path = "crates/plugin_macros" }
226prettier = { path = "crates/prettier" }
227project = { path = "crates/project" }
228project_panel = { path = "crates/project_panel" }
229project_symbols = { path = "crates/project_symbols" }
230proto = { path = "crates/proto" }
231quick_action_bar = { path = "crates/quick_action_bar" }
232recent_projects = { path = "crates/recent_projects" }
233release_channel = { path = "crates/release_channel" }
234repl = { path = "crates/repl" }
235rich_text = { path = "crates/rich_text" }
236rope = { path = "crates/rope" }
237rpc = { path = "crates/rpc" }
238search = { path = "crates/search" }
239semantic_index = { path = "crates/semantic_index" }
240semantic_version = { path = "crates/semantic_version" }
241settings = { path = "crates/settings" }
242snippet = { path = "crates/snippet" }
243snippet_provider = { path = "crates/snippet_provider" }
244sqlez = { path = "crates/sqlez" }
245sqlez_macros = { path = "crates/sqlez_macros" }
246story = { path = "crates/story" }
247storybook = { path = "crates/storybook" }
248sum_tree = { path = "crates/sum_tree" }
249supermaven = { path = "crates/supermaven" }
250supermaven_api = { path = "crates/supermaven_api" }
251tab_switcher = { path = "crates/tab_switcher" }
252task = { path = "crates/task" }
253tasks_ui = { path = "crates/tasks_ui" }
254telemetry_events = { path = "crates/telemetry_events" }
255terminal = { path = "crates/terminal" }
256terminal_view = { path = "crates/terminal_view" }
257text = { path = "crates/text" }
258theme = { path = "crates/theme" }
259theme_importer = { path = "crates/theme_importer" }
260theme_selector = { path = "crates/theme_selector" }
261time_format = { path = "crates/time_format" }
262title_bar = { path = "crates/title_bar" }
263ui = { path = "crates/ui" }
264ui_input = { path = "crates/ui_input" }
265util = { path = "crates/util" }
266vcs_menu = { path = "crates/vcs_menu" }
267vim = { path = "crates/vim" }
268welcome = { path = "crates/welcome" }
269workspace = { path = "crates/workspace" }
270worktree = { path = "crates/worktree" }
271zed = { path = "crates/zed" }
272zed_actions = { path = "crates/zed_actions" }
273
274alacritty_terminal = "0.23"
275any_vec = "0.13"
276anyhow = "1.0.57"
277ashpd = "0.9.1"
278async-compression = { version = "0.4", features = ["gzip", "futures-io"] }
279async-dispatcher = { version = "0.1" }
280async-fs = "1.6"
281async-recursion = "1.0.0"
282async-tar = "0.4.2"
283async-trait = "0.1"
284async-watch = "0.3.1"
285async_zip = { version = "0.0.17", features = ["deflate", "deflate64"] }
286base64 = "0.13"
287bitflags = "2.6.0"
288blade-graphics = { git = "https://github.com/zed-industries/blade", rev = "a477c2008db27db0b9f745715e119b3ee7ab7818" }
289blade-macros = { git = "https://github.com/zed-industries/blade", rev = "a477c2008db27db0b9f745715e119b3ee7ab7818" }
290blade-util = { git = "https://github.com/zed-industries/blade", rev = "a477c2008db27db0b9f745715e119b3ee7ab7818" }
291cap-std = "3.0"
292cargo_toml = "0.20"
293chrono = { version = "0.4", features = ["serde"] }
294clap = { version = "4.4", features = ["derive"] }
295clickhouse = { version = "0.11.6" }
296cocoa = "0.25"
297core-foundation = { version = "0.9.3" }
298core-foundation-sys = "0.8.6"
299ctor = "0.2.6"
300dashmap = "5.5.3"
301derive_more = "0.99.17"
302dirs = "4.0"
303emojis = "0.6.1"
304env_logger = "0.9"
305exec = "0.3.1"
306fork = "0.1.23"
307futures = "0.3"
308futures-batch = "0.6.1"
309futures-lite = "1.13"
310git2 = { version = "0.19", default-features = false }
311globset = "0.4"
312heed = { version = "0.20.1", features = ["read-txn-no-tls"] }
313hex = "0.4.3"
314html5ever = "0.27.0"
315ignore = "0.4.22"
316image = "0.25.1"
317indexmap = { version = "1.6.2", features = ["serde"] }
318indoc = "1"
319# We explicitly disable http2 support in isahc.
320isahc = { version = "1.7.2", default-features = false, features = [
321    "text-decoding",
322] }
323itertools = "0.11.0"
324lazy_static = "1.4.0"
325libc = "0.2"
326linkify = "0.10.0"
327log = { version = "0.4.16", features = ["kv_unstable_serde"] }
328markup5ever_rcdom = "0.3.0"
329nanoid = "0.4"
330nix = "0.28"
331num-format = "0.4.4"
332once_cell = "1.19.0"
333ordered-float = "2.1.1"
334palette = { version = "0.7.5", default-features = false, features = ["std"] }
335parking_lot = "0.12.1"
336pathdiff = "0.2"
337profiling = "1"
338postage = { version = "0.5", features = ["futures-traits"] }
339pretty_assertions = "1.3.0"
340prost = "0.9"
341prost-build = "0.9"
342prost-types = "0.9"
343pulldown-cmark = { version = "0.10.0", default-features = false }
344rand = "0.8.5"
345refineable = { path = "./crates/refineable" }
346regex = "1.5"
347repair_json = "0.1.0"
348runtimelib = { version = "0.12", default-features = false, features = [
349    "async-dispatcher-runtime",
350] }
351rusqlite = { version = "0.29.0", features = ["blob", "array", "modern_sqlite"] }
352rust-embed = { version = "8.4", features = ["include-exclude"] }
353schemars = "0.8"
354semver = "1.0"
355serde = { version = "1.0", features = ["derive", "rc"] }
356serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
357serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
358serde_json_lenient = { version = "0.1", features = [
359    "preserve_order",
360    "raw_value",
361] }
362serde_repr = "0.1"
363sha2 = "0.10"
364shellexpand = "2.1.0"
365shlex = "1.3.0"
366signal-hook = "0.3.17"
367similar = "1.3"
368simplelog = "0.12.2"
369smallvec = { version = "1.6", features = ["union"] }
370smol = "1.2"
371strum = { version = "0.25.0", features = ["derive"] }
372subtle = "2.5.0"
373sysinfo = "0.30.7"
374tempfile = "3.9.0"
375thiserror = "1.0.29"
376tiktoken-rs = "0.5.9"
377time = { version = "0.3", features = [
378    "macros",
379    "parsing",
380    "serde",
381    "serde-well-known",
382    "formatting",
383] }
384toml = "0.8"
385tokio = { version = "1", features = ["full"] }
386tower-http = "0.4.4"
387tree-sitter = { version = "0.20", features = ["wasm"] }
388tree-sitter-bash = "0.20.5"
389tree-sitter-c = "0.20.1"
390tree-sitter-cpp = "0.20.5"
391tree-sitter-css = "0.20"
392tree-sitter-elixir = "0.1.1"
393tree-sitter-embedded-template = "0.20.0"
394tree-sitter-go = { git = "https://github.com/tree-sitter/tree-sitter-go", rev = "b82ab803d887002a0af11f6ce63d72884580bf33" }
395tree-sitter-gomod = "1.0.1"
396tree-sitter-gowork = { git = "https://github.com/d1y/tree-sitter-go-work" }
397rustc-demangle = "0.1.23"
398tree-sitter-heex = { git = "https://github.com/phoenixframework/tree-sitter-heex", rev = "2e1348c3cf2c9323e87c2744796cf3f3868aa82a" }
399tree-sitter-html = "0.19.0"
400tree-sitter-jsdoc = { git = "https://github.com/tree-sitter/tree-sitter-jsdoc", rev = "6a6cf9e7341af32d8e2b2e24a37fbfebefc3dc55" }
401tree-sitter-json = "0.20.2"
402tree-sitter-markdown = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "330ecab87a3e3a7211ac69bbadc19eabecdb1cca" }
403tree-sitter-proto = { git = "https://github.com/rewinfrey/tree-sitter-proto", rev = "36d54f288aee112f13a67b550ad32634d0c2cb52" }
404tree-sitter-python = "0.20.2"
405tree-sitter-regex = "0.20.0"
406tree-sitter-ruby = "0.20.0"
407tree-sitter-rust = "0.20.3"
408tree-sitter-typescript = "0.20.5"
409tree-sitter-yaml = "0.0.1"
410unindent = "0.1.7"
411unicase = "2.6"
412unicode-segmentation = "1.10"
413url = "2.2"
414uuid = { version = "1.1.2", features = ["v4", "v5", "serde"] }
415wasmparser = "0.201"
416wasm-encoder = "0.201"
417wasmtime = { version = "19.0.0", default-features = false, features = [
418    "async",
419    "demangle",
420    "runtime",
421    "cranelift",
422    "component-model",
423] }
424wasmtime-wasi = "19.0.0"
425which = "6.0.0"
426wit-component = "0.201"
427sys-locale = "0.3.1"
428
429[workspace.dependencies.windows]
430version = "0.57"
431features = [
432    "implement",
433    "Foundation_Numerics",
434    "System",
435    "System_Threading",
436    "UI_ViewManagement",
437    "Wdk_System_SystemServices",
438    "Win32_Globalization",
439    "Win32_Graphics_Direct2D",
440    "Win32_Graphics_Direct2D_Common",
441    "Win32_Graphics_DirectWrite",
442    "Win32_Graphics_Dwm",
443    "Win32_Graphics_Dxgi_Common",
444    "Win32_Graphics_Gdi",
445    "Win32_Graphics_Imaging",
446    "Win32_Graphics_Imaging_D2D",
447    "Win32_Security",
448    "Win32_Security_Credentials",
449    "Win32_Storage_FileSystem",
450    "Win32_System_LibraryLoader",
451    "Win32_System_Com",
452    "Win32_System_Com_StructuredStorage",
453    "Win32_System_DataExchange",
454    "Win32_System_LibraryLoader",
455    "Win32_System_Ole",
456    "Win32_System_SystemInformation",
457    "Win32_System_SystemServices",
458    "Win32_System_Threading",
459    "Win32_System_Time",
460    "Win32_System_WinRT",
461    "Win32_UI_Controls",
462    "Win32_UI_HiDpi",
463    "Win32_UI_Input_Ime",
464    "Win32_UI_Input_KeyboardAndMouse",
465    "Win32_UI_Shell",
466    "Win32_UI_WindowsAndMessaging",
467]
468
469[patch.crates-io]
470tree-sitter = { git = "https://github.com/tree-sitter/tree-sitter", rev = "7b4894ba2ae81b988846676f54c0988d4027ef4f" }
471# Workaround for a broken nightly build of gpui: See #7644 and revisit once 0.5.3 is released.
472pathfinder_simd = { git = "https://github.com/servo/pathfinder.git", rev = "4968e819c0d9b015437ffc694511e175801a17c7" }
473
474[profile.dev]
475split-debuginfo = "unpacked"
476debug = "limited"
477codegen-units = 16
478
479[profile.dev.package]
480taffy = { opt-level = 3 }
481cranelift-codegen = { opt-level = 3 }
482resvg = { opt-level = 3 }
483rustybuzz = { opt-level = 3 }
484ttf-parser = { opt-level = 3 }
485wasmtime-cranelift = { opt-level = 3 }
486wasmtime = { opt-level = 3 }
487
488[profile.release]
489debug = "limited"
490lto = "thin"
491codegen-units = 1
492
493[profile.release.package]
494zed = { codegen-units = 16 }
495
496[profile.release-fast]
497inherits = "release"
498lto = false
499codegen-units = 16
500
501[workspace.lints.clippy]
502dbg_macro = "deny"
503todo = "deny"
504
505# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
506# warning on this rule produces a lot of noise.
507single_range_in_vec_init = "allow"
508
509# These are all of the rules that currently have violations in the Zed
510# codebase.
511#
512# We'll want to drive this list down by either:
513# 1. fixing violations of the rule and begin enforcing it
514# 2. deciding we want to allow the rule permanently, at which point
515#    we should codify that separately above.
516#
517# This list shouldn't be added to; it should only get shorter.
518# =============================================================================
519
520# There are a bunch of rules currently failing in the `style` group, so
521# allow all of those, for now.
522style = "allow"
523
524# Individual rules that have violations in the codebase:
525almost_complete_range = "allow"
526arc_with_non_send_sync = "allow"
527borrowed_box = "allow"
528let_underscore_future = "allow"
529map_entry = "allow"
530non_canonical_partial_ord_impl = "allow"
531reversed_empty_ranges = "allow"
532type_complexity = "allow"
533
534[workspace.metadata.cargo-machete]
535ignored = ["bindgen", "cbindgen", "prost_build", "serde"]