Cargo.toml

  1[workspace]
  2members = [
  3    "crates/activity_indicator",
  4    "crates/ai",
  5    "crates/assets",
  6    "crates/assistant",
  7    "crates/audio",
  8    "crates/auto_update",
  9    "crates/breadcrumbs",
 10    "crates/call",
 11    "crates/channel",
 12    "crates/cli",
 13    "crates/client",
 14    "crates/clock",
 15    "crates/collab",
 16    "crates/collab_ui",
 17    "crates/collections",
 18    "crates/command_palette",
 19    "crates/command_palette_hooks",
 20    "crates/copilot",
 21    "crates/copilot_ui",
 22    "crates/db",
 23    "crates/diagnostics",
 24    "crates/editor",
 25    "crates/extension",
 26    "crates/extension_api",
 27    "crates/extension_cli",
 28    "crates/extensions_ui",
 29    "crates/feature_flags",
 30    "crates/feedback",
 31    "crates/file_finder",
 32    "crates/fs",
 33    "crates/fsevent",
 34    "crates/fuzzy",
 35    "crates/git",
 36    "crates/go_to_line",
 37    "crates/gpui",
 38    "crates/gpui_macros",
 39    "crates/image_viewer",
 40    "crates/install_cli",
 41    "crates/journal",
 42    "crates/language",
 43    "crates/language_selector",
 44    "crates/language_tools",
 45    "crates/languages",
 46    "crates/live_kit_client",
 47    "crates/live_kit_server",
 48    "crates/lsp",
 49    "crates/markdown_preview",
 50    "crates/media",
 51    "crates/menu",
 52    "crates/multi_buffer",
 53    "crates/node_runtime",
 54    "crates/notifications",
 55    "crates/outline",
 56    "crates/picker",
 57    "crates/prettier",
 58    "crates/project",
 59    "crates/project_panel",
 60    "crates/project_symbols",
 61    "crates/quick_action_bar",
 62    "crates/recent_projects",
 63    "crates/refineable",
 64    "crates/refineable/derive_refineable",
 65    "crates/release_channel",
 66    "crates/rich_text",
 67    "crates/rope",
 68    "crates/rpc",
 69    "crates/task",
 70    "crates/tasks_ui",
 71    "crates/search",
 72    "crates/semantic_index",
 73    "crates/settings",
 74    "crates/snippet",
 75    "crates/sqlez",
 76    "crates/sqlez_macros",
 77    "crates/story",
 78    "crates/storybook",
 79    "crates/sum_tree",
 80    "crates/terminal",
 81    "crates/terminal_view",
 82    "crates/text",
 83    "crates/theme",
 84    "crates/theme_importer",
 85    "crates/theme_selector",
 86    "crates/telemetry_events",
 87    "crates/time_format",
 88    "crates/ui",
 89    "crates/util",
 90    "crates/vcs_menu",
 91    "crates/vim",
 92    "crates/welcome",
 93    "crates/workspace",
 94    "crates/worktree",
 95    "crates/zed",
 96    "crates/zed_actions",
 97
 98    "extensions/gleam",
 99    "extensions/uiua",
100
101    "tooling/xtask",
102]
103default-members = ["crates/zed"]
104resolver = "2"
105
106[workspace.dependencies]
107activity_indicator = { path = "crates/activity_indicator" }
108ai = { path = "crates/ai" }
109assets = { path = "crates/assets" }
110assistant = { path = "crates/assistant" }
111audio = { path = "crates/audio" }
112auto_update = { path = "crates/auto_update" }
113base64 = "0.13"
114breadcrumbs = { path = "crates/breadcrumbs" }
115call = { path = "crates/call" }
116channel = { path = "crates/channel" }
117cli = { path = "crates/cli" }
118client = { path = "crates/client" }
119clock = { path = "crates/clock" }
120collab = { path = "crates/collab" }
121collab_ui = { path = "crates/collab_ui" }
122collections = { path = "crates/collections" }
123color = { path = "crates/color" }
124command_palette = { path = "crates/command_palette" }
125command_palette_hooks = { path = "crates/command_palette_hooks" }
126copilot = { path = "crates/copilot" }
127copilot_ui = { path = "crates/copilot_ui" }
128db = { path = "crates/db" }
129diagnostics = { path = "crates/diagnostics" }
130editor = { path = "crates/editor" }
131extension = { path = "crates/extension" }
132extensions_ui = { path = "crates/extensions_ui" }
133feature_flags = { path = "crates/feature_flags" }
134feedback = { path = "crates/feedback" }
135file_finder = { path = "crates/file_finder" }
136fs = { path = "crates/fs" }
137fsevent = { path = "crates/fsevent" }
138fuzzy = { path = "crates/fuzzy" }
139git = { path = "crates/git" }
140go_to_line = { path = "crates/go_to_line" }
141gpui = { path = "crates/gpui" }
142gpui_macros = { path = "crates/gpui_macros" }
143install_cli = { path = "crates/install_cli" }
144image_viewer = { path = "crates/image_viewer" }
145journal = { path = "crates/journal" }
146language = { path = "crates/language" }
147language_selector = { path = "crates/language_selector" }
148language_tools = { path = "crates/language_tools" }
149languages = { path = "crates/languages" }
150live_kit_client = { path = "crates/live_kit_client" }
151live_kit_server = { path = "crates/live_kit_server" }
152lsp = { path = "crates/lsp" }
153markdown_preview = { path = "crates/markdown_preview" }
154media = { path = "crates/media" }
155menu = { path = "crates/menu" }
156multi_buffer = { path = "crates/multi_buffer" }
157node_runtime = { path = "crates/node_runtime" }
158notifications = { path = "crates/notifications" }
159outline = { path = "crates/outline" }
160picker = { path = "crates/picker" }
161plugin = { path = "crates/plugin" }
162plugin_macros = { path = "crates/plugin_macros" }
163prettier = { path = "crates/prettier" }
164project = { path = "crates/project" }
165worktree = { path = "crates/worktree" }
166project_panel = { path = "crates/project_panel" }
167project_symbols = { path = "crates/project_symbols" }
168quick_action_bar = { path = "crates/quick_action_bar" }
169recent_projects = { path = "crates/recent_projects" }
170release_channel = { path = "crates/release_channel" }
171rich_text = { path = "crates/rich_text" }
172rope = { path = "crates/rope" }
173rpc = { path = "crates/rpc" }
174task = { path = "crates/task" }
175tasks_ui = { path = "crates/tasks_ui" }
176search = { path = "crates/search" }
177semantic_index = { path = "crates/semantic_index" }
178settings = { path = "crates/settings" }
179snippet = { path = "crates/snippet" }
180sqlez = { path = "crates/sqlez" }
181sqlez_macros = { path = "crates/sqlez_macros" }
182story = { path = "crates/story" }
183storybook = { path = "crates/storybook" }
184sum_tree = { path = "crates/sum_tree" }
185terminal = { path = "crates/terminal" }
186terminal_view = { path = "crates/terminal_view" }
187text = { path = "crates/text" }
188theme = { path = "crates/theme" }
189theme_importer = { path = "crates/theme_importer" }
190theme_selector = { path = "crates/theme_selector" }
191telemetry_events = { path = "crates/telemetry_events" }
192time_format = { path = "crates/time_format" }
193ui = { path = "crates/ui" }
194util = { path = "crates/util" }
195vcs_menu = { path = "crates/vcs_menu" }
196vim = { path = "crates/vim" }
197welcome = { path = "crates/welcome" }
198workspace = { path = "crates/workspace" }
199zed = { path = "crates/zed" }
200zed_actions = { path = "crates/zed_actions" }
201
202anyhow = "1.0.57"
203async-compression = { version = "0.4", features = ["gzip", "futures-io"] }
204async-fs = "1.6"
205async-recursion = "1.0.0"
206async-tar = "0.4.2"
207async-trait = "0.1"
208bitflags = "2.4.2"
209blade-graphics = { git = "https://github.com/kvark/blade", rev = "61cbd6b2c224791d52b150fe535cee665cc91bb2" }
210blade-macros = { git = "https://github.com/kvark/blade", rev = "61cbd6b2c224791d52b150fe535cee665cc91bb2" }
211blade-rwh = { package = "raw-window-handle", version = "0.5" }
212cap-std = "2.0"
213chrono = { version = "0.4", features = ["serde"] }
214clap = { version = "4.4", features = ["derive"] }
215clickhouse = { version = "0.11.6" }
216ctor = "0.2.6"
217core-foundation = { version = "0.9.3" }
218core-foundation-sys = "0.8.6"
219derive_more = "0.99.17"
220emojis = "0.6.1"
221env_logger = "0.9"
222futures = "0.3"
223futures-lite = "1.13"
224git2 = { version = "0.15", default-features = false }
225globset = "0.4"
226hex = "0.4.3"
227ignore = "0.4.22"
228indoc = "1"
229# We explicitly disable http2 support in isahc.
230isahc = { version = "1.7.2", default-features = false, features = [
231    "static-curl",
232    "text-decoding",
233] }
234itertools = "0.11.0"
235lazy_static = "1.4.0"
236linkify = "0.10.0"
237log = { version = "0.4.16", features = ["kv_unstable_serde"] }
238ordered-float = "2.1.1"
239palette = { version = "0.7.5", default-features = false, features = ["std"] }
240parking_lot = "0.12.1"
241profiling = "1"
242postage = { version = "0.5", features = ["futures-traits"] }
243pretty_assertions = "1.3.0"
244prost = "0.9"
245prost-build = "0.9"
246prost-types = "0.9"
247pulldown-cmark = { version = "0.10.0", default-features = false }
248rand = "0.8.5"
249refineable = { path = "./crates/refineable" }
250regex = "1.5"
251rusqlite = { version = "0.29.0", features = ["blob", "array", "modern_sqlite"] }
252rust-embed = { version = "8.0", features = ["include-exclude"] }
253schemars = "0.8"
254semver = "1.0"
255serde = { version = "1.0", features = ["derive", "rc"] }
256serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
257serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
258serde_json_lenient = { version = "0.1", features = [
259    "preserve_order",
260    "raw_value",
261] }
262serde_repr = "0.1"
263sha2 = "0.10"
264shellexpand = "2.1.0"
265smallvec = { version = "1.6", features = ["union"] }
266smol = "1.2"
267strum = { version = "0.25.0", features = ["derive"] }
268subtle = "2.5.0"
269sysinfo = "0.30.7"
270tempfile = "3.9.0"
271thiserror = "1.0.29"
272tiktoken-rs = "0.5.7"
273time = { version = "0.3", features = [
274    "serde",
275    "serde-well-known",
276    "formatting",
277] }
278toml = "0.8"
279tokio = { version = "1", features = ["full"] }
280tower-http = "0.4.4"
281tree-sitter = { version = "0.20", features = ["wasm"] }
282tree-sitter-astro = { git = "https://github.com/virchau13/tree-sitter-astro.git", rev = "e924787e12e8a03194f36a113290ac11d6dc10f3" }
283tree-sitter-bash = { git = "https://github.com/tree-sitter/tree-sitter-bash", rev = "7331995b19b8f8aba2d5e26deb51d2195c18bc94" }
284tree-sitter-c = "0.20.1"
285tree-sitter-clojure = { git = "https://github.com/prcastro/tree-sitter-clojure", branch = "update-ts" }
286tree-sitter-c-sharp = { git = "https://github.com/tree-sitter/tree-sitter-c-sharp", rev = "dd5e59721a5f8dae34604060833902b882023aaf" }
287tree-sitter-cpp = { git = "https://github.com/tree-sitter/tree-sitter-cpp", rev = "f44509141e7e483323d2ec178f2d2e6c0fc041c1" }
288tree-sitter-css = { git = "https://github.com/tree-sitter/tree-sitter-css", rev = "769203d0f9abe1a9a691ac2b9fe4bb4397a73c51" }
289tree-sitter-dockerfile = { git = "https://github.com/camdencheek/tree-sitter-dockerfile", rev = "33e22c33bcdbfc33d42806ee84cfd0b1248cc392" }
290tree-sitter-dart = { git = "https://github.com/agent3bood/tree-sitter-dart", rev = "48934e3bf757a9b78f17bdfaa3e2b4284656fdc7" }
291tree-sitter-elixir = { git = "https://github.com/elixir-lang/tree-sitter-elixir", rev = "a2861e88a730287a60c11ea9299c033c7d076e30" }
292tree-sitter-elm = { git = "https://github.com/elm-tooling/tree-sitter-elm", rev = "692c50c0b961364c40299e73c1306aecb5d20f40" }
293tree-sitter-embedded-template = "0.20.0"
294tree-sitter-erlang = "0.4.0"
295tree-sitter-gleam = { git = "https://github.com/gleam-lang/tree-sitter-gleam", rev = "58b7cac8fc14c92b0677c542610d8738c373fa81" }
296tree-sitter-glsl = { git = "https://github.com/theHamsta/tree-sitter-glsl", rev = "2a56fb7bc8bb03a1892b4741279dd0a8758b7fb3" }
297tree-sitter-go = { git = "https://github.com/tree-sitter/tree-sitter-go", rev = "aeb2f33b366fd78d5789ff104956ce23508b85db" }
298tree-sitter-gomod = { git = "https://github.com/camdencheek/tree-sitter-go-mod" }
299tree-sitter-gowork = { git = "https://github.com/d1y/tree-sitter-go-work" }
300tree-sitter-haskell = { git = "https://github.com/tree-sitter/tree-sitter-haskell", rev = "8a99848fc734f9c4ea523b3f2a07df133cbbcec2" }
301tree-sitter-hcl = { git = "https://github.com/MichaHoffmann/tree-sitter-hcl", rev = "v1.1.0" }
302rustc-demangle = "0.1.23"
303tree-sitter-heex = { git = "https://github.com/phoenixframework/tree-sitter-heex", rev = "2e1348c3cf2c9323e87c2744796cf3f3868aa82a" }
304tree-sitter-html = "0.19.0"
305tree-sitter-jsdoc = { git = "https://github.com/tree-sitter/tree-sitter-jsdoc", ref = "6a6cf9e7341af32d8e2b2e24a37fbfebefc3dc55" }
306tree-sitter-json = { git = "https://github.com/tree-sitter/tree-sitter-json", rev = "40a81c01a40ac48744e0c8ccabbaba1920441199" }
307tree-sitter-lua = "0.0.14"
308tree-sitter-markdown = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "330ecab87a3e3a7211ac69bbadc19eabecdb1cca" }
309tree-sitter-nix = { git = "https://github.com/nix-community/tree-sitter-nix", rev = "66e3e9ce9180ae08fc57372061006ef83f0abde7" }
310tree-sitter-nu = { git = "https://github.com/nushell/tree-sitter-nu", rev = "7dd29f9616822e5fc259f5b4ae6c4ded9a71a132" }
311tree-sitter-ocaml = { git = "https://github.com/tree-sitter/tree-sitter-ocaml", rev = "4abfdc1c7af2c6c77a370aee974627be1c285b3b" }
312tree-sitter-php = "0.21.1"
313tree-sitter-prisma-io = { git = "https://github.com/victorhqc/tree-sitter-prisma" }
314tree-sitter-proto = { git = "https://github.com/rewinfrey/tree-sitter-proto", rev = "36d54f288aee112f13a67b550ad32634d0c2cb52" }
315tree-sitter-purescript = { git = "https://github.com/postsolar/tree-sitter-purescript", rev = "v0.1.0" }
316tree-sitter-python = "0.20.2"
317tree-sitter-racket = { git = "https://github.com/zed-industries/tree-sitter-racket", rev = "eb010cf2c674c6fd9a6316a84e28ef90190fe51a" }
318tree-sitter-regex = "0.20.0"
319tree-sitter-ruby = "0.20.0"
320tree-sitter-rust = "0.20.3"
321tree-sitter-scheme = { git = "https://github.com/6cdh/tree-sitter-scheme", rev = "af0fd1fa452cb2562dc7b5c8a8c55551c39273b9" }
322tree-sitter-svelte = { git = "https://github.com/Himujjal/tree-sitter-svelte", rev = "bd60db7d3d06f89b6ec3b287c9a6e9190b5564bd" }
323tree-sitter-toml = { git = "https://github.com/tree-sitter/tree-sitter-toml", rev = "342d9be207c2dba869b9967124c679b5e6fd0ebe" }
324tree-sitter-typescript = { git = "https://github.com/tree-sitter/tree-sitter-typescript", rev = "5d20856f34315b068c41edaee2ac8a100081d259" }
325tree-sitter-vue = { git = "https://github.com/zed-industries/tree-sitter-vue", rev = "6608d9d60c386f19d80af7d8132322fa11199c42" }
326tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "f545a41f57502e1b5ddf2a6668896c1b0620f930" }
327tree-sitter-zig = { git = "https://github.com/maxxnino/tree-sitter-zig", rev = "0d08703e4c3f426ec61695d7617415fff97029bd" }
328unindent = "0.1.7"
329unicase = "2.6"
330url = "2.2"
331uuid = { version = "1.1.2", features = ["v4"] }
332wasmparser = "0.121"
333wasm-encoder = "0.41"
334wasmtime = { version = "18.0", default-features = false, features = [
335    "async",
336    "demangle",
337    "runtime",
338    "cranelift",
339    "component-model",
340] }
341wasmtime-wasi = "18.0"
342which = "6.0.0"
343wit-component = "0.20"
344sys-locale = "0.3.1"
345
346[workspace.dependencies.windows]
347version = "0.53.0"
348features = [
349    "implement",
350    "Wdk_System_SystemServices",
351    "Win32_Globalization",
352    "Win32_Graphics_DirectWrite",
353    "Win32_Graphics_Gdi",
354    "Win32_Media",
355    "Win32_Security",
356    "Win32_Security_Credentials",
357    "Win32_Storage_FileSystem",
358    "Win32_System_Com",
359    "Win32_System_Com_StructuredStorage",
360    "Win32_System_DataExchange",
361    "Win32_System_LibraryLoader",
362    "Win32_System_Ole",
363    "Win32_System_SystemInformation",
364    "Win32_System_SystemServices",
365    "Win32_System_Threading",
366    "Win32_System_Time",
367    "Win32_UI_Controls",
368    "Win32_UI_HiDpi",
369    "Win32_UI_Input_Ime",
370    "Win32_UI_Input_KeyboardAndMouse",
371    "Win32_UI_Shell",
372    "Win32_UI_WindowsAndMessaging",
373]
374
375[patch.crates-io]
376tree-sitter = { git = "https://github.com/tree-sitter/tree-sitter", rev = "4294e59279205f503eb14348dd5128bd5910c8fb" }
377# Workaround for a broken nightly build of gpui: See #7644 and revisit once 0.5.3 is released.
378pathfinder_simd = { git = "https://github.com/servo/pathfinder.git", rev = "30419d07660dc11a21e42ef4a7fa329600cff152" }
379
380[profile.dev]
381split-debuginfo = "unpacked"
382debug = "limited"
383
384[profile.dev.package]
385taffy = { opt-level = 3 }
386cranelift-codegen = { opt-level = 3 }
387rustybuzz = { opt-level = 3 }
388ttf-parser = { opt-level = 3 }
389wasmtime-cranelift = { opt-level = 3 }
390
391[profile.release]
392debug = "limited"
393lto = "thin"
394codegen-units = 1
395
396[profile.release.package]
397zed = { codegen-units = 16 }
398
399[workspace.lints.clippy]
400dbg_macro = "deny"
401todo = "deny"
402
403# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
404# warning on this rule produces a lot of noise.
405single_range_in_vec_init = "allow"
406
407# These are all of the rules that currently have violations in the Zed
408# codebase.
409#
410# We'll want to drive this list down by either:
411# 1. fixing violations of the rule and begin enforcing it
412# 2. deciding we want to allow the rule permanently, at which point
413#    we should codify that separately above.
414#
415# This list shouldn't be added to; it should only get shorter.
416# =============================================================================
417
418# There are a bunch of rules currently failing in the `style` group, so
419# allow all of those, for now.
420style = "allow"
421
422# Individual rules that have violations in the codebase:
423almost_complete_range = "allow"
424arc_with_non_send_sync = "allow"
425borrowed_box = "allow"
426let_underscore_future = "allow"
427map_entry = "allow"
428non_canonical_partial_ord_impl = "allow"
429reversed_empty_ranges = "allow"
430type_complexity = "allow"
431
432[workspace.metadata.cargo-machete]
433ignored = ["bindgen", "cbindgen", "prost_build", "serde"]