Cargo.toml

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