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