Cargo.toml

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