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/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/astro",
 99    "extensions/gleam",
100    "extensions/haskell",
101    "extensions/prisma",
102    "extensions/purescript",
103    "extensions/svelte",
104    "extensions/uiua",
105
106    "tooling/xtask",
107]
108default-members = ["crates/zed"]
109resolver = "2"
110
111[workspace.dependencies]
112activity_indicator = { path = "crates/activity_indicator" }
113ai = { path = "crates/ai" }
114assets = { path = "crates/assets" }
115assistant = { path = "crates/assistant" }
116audio = { path = "crates/audio" }
117auto_update = { path = "crates/auto_update" }
118base64 = "0.13"
119breadcrumbs = { path = "crates/breadcrumbs" }
120call = { path = "crates/call" }
121channel = { path = "crates/channel" }
122cli = { path = "crates/cli" }
123client = { path = "crates/client" }
124clock = { path = "crates/clock" }
125collab = { path = "crates/collab" }
126collab_ui = { path = "crates/collab_ui" }
127collections = { path = "crates/collections" }
128color = { path = "crates/color" }
129command_palette = { path = "crates/command_palette" }
130command_palette_hooks = { path = "crates/command_palette_hooks" }
131copilot = { path = "crates/copilot" }
132copilot_ui = { path = "crates/copilot_ui" }
133db = { path = "crates/db" }
134diagnostics = { path = "crates/diagnostics" }
135editor = { path = "crates/editor" }
136extension = { path = "crates/extension" }
137extensions_ui = { path = "crates/extensions_ui" }
138feature_flags = { path = "crates/feature_flags" }
139feedback = { path = "crates/feedback" }
140file_finder = { path = "crates/file_finder" }
141fs = { path = "crates/fs" }
142fsevent = { path = "crates/fsevent" }
143fuzzy = { path = "crates/fuzzy" }
144git = { path = "crates/git" }
145go_to_line = { path = "crates/go_to_line" }
146google_ai = { path = "crates/google_ai" }
147gpui = { path = "crates/gpui" }
148gpui_macros = { path = "crates/gpui_macros" }
149install_cli = { path = "crates/install_cli" }
150image_viewer = { path = "crates/image_viewer" }
151journal = { path = "crates/journal" }
152language = { path = "crates/language" }
153language_selector = { path = "crates/language_selector" }
154language_tools = { path = "crates/language_tools" }
155languages = { path = "crates/languages" }
156live_kit_client = { path = "crates/live_kit_client" }
157live_kit_server = { path = "crates/live_kit_server" }
158lsp = { path = "crates/lsp" }
159markdown_preview = { path = "crates/markdown_preview" }
160media = { path = "crates/media" }
161menu = { path = "crates/menu" }
162multi_buffer = { path = "crates/multi_buffer" }
163node_runtime = { path = "crates/node_runtime" }
164notifications = { path = "crates/notifications" }
165open_ai = { path = "crates/open_ai" }
166outline = { path = "crates/outline" }
167picker = { path = "crates/picker" }
168plugin = { path = "crates/plugin" }
169plugin_macros = { path = "crates/plugin_macros" }
170prettier = { path = "crates/prettier" }
171project = { path = "crates/project" }
172worktree = { path = "crates/worktree" }
173project_panel = { path = "crates/project_panel" }
174project_symbols = { path = "crates/project_symbols" }
175quick_action_bar = { path = "crates/quick_action_bar" }
176recent_projects = { path = "crates/recent_projects" }
177release_channel = { path = "crates/release_channel" }
178rich_text = { path = "crates/rich_text" }
179rope = { path = "crates/rope" }
180rpc = { path = "crates/rpc" }
181task = { path = "crates/task" }
182tasks_ui = { path = "crates/tasks_ui" }
183search = { path = "crates/search" }
184settings = { path = "crates/settings" }
185snippet = { path = "crates/snippet" }
186sqlez = { path = "crates/sqlez" }
187sqlez_macros = { path = "crates/sqlez_macros" }
188story = { path = "crates/story" }
189storybook = { path = "crates/storybook" }
190sum_tree = { path = "crates/sum_tree" }
191terminal = { path = "crates/terminal" }
192terminal_view = { path = "crates/terminal_view" }
193text = { path = "crates/text" }
194theme = { path = "crates/theme" }
195theme_importer = { path = "crates/theme_importer" }
196theme_selector = { path = "crates/theme_selector" }
197telemetry_events = { path = "crates/telemetry_events" }
198time_format = { path = "crates/time_format" }
199ui = { path = "crates/ui" }
200util = { path = "crates/util" }
201vcs_menu = { path = "crates/vcs_menu" }
202vim = { path = "crates/vim" }
203welcome = { path = "crates/welcome" }
204workspace = { path = "crates/workspace" }
205zed = { path = "crates/zed" }
206zed_actions = { path = "crates/zed_actions" }
207
208anyhow = "1.0.57"
209async-compression = { version = "0.4", features = ["gzip", "futures-io"] }
210async-fs = "1.6"
211async-recursion = "1.0.0"
212async-tar = "0.4.2"
213async-trait = "0.1"
214bitflags = "2.4.2"
215blade-graphics = { git = "https://github.com/kvark/blade", rev = "61cbd6b2c224791d52b150fe535cee665cc91bb2" }
216blade-macros = { git = "https://github.com/kvark/blade", rev = "61cbd6b2c224791d52b150fe535cee665cc91bb2" }
217blade-rwh = { package = "raw-window-handle", version = "0.5" }
218cap-std = "3.0"
219chrono = { version = "0.4", features = ["serde"] }
220clap = { version = "4.4", features = ["derive"] }
221clickhouse = { version = "0.11.6" }
222ctor = "0.2.6"
223core-foundation = { version = "0.9.3" }
224core-foundation-sys = "0.8.6"
225derive_more = "0.99.17"
226emojis = "0.6.1"
227env_logger = "0.9"
228futures = "0.3"
229futures-lite = "1.13"
230git2 = { version = "0.15", default-features = false }
231globset = "0.4"
232hex = "0.4.3"
233ignore = "0.4.22"
234indoc = "1"
235# We explicitly disable http2 support in isahc.
236isahc = { version = "1.7.2", default-features = false, features = [
237    "static-curl",
238    "text-decoding",
239] }
240itertools = "0.11.0"
241lazy_static = "1.4.0"
242linkify = "0.10.0"
243log = { version = "0.4.16", features = ["kv_unstable_serde"] }
244ordered-float = "2.1.1"
245palette = { version = "0.7.5", default-features = false, features = ["std"] }
246parking_lot = "0.12.1"
247profiling = "1"
248postage = { version = "0.5", features = ["futures-traits"] }
249pretty_assertions = "1.3.0"
250prost = "0.9"
251prost-build = "0.9"
252prost-types = "0.9"
253pulldown-cmark = { version = "0.10.0", default-features = false }
254rand = "0.8.5"
255refineable = { path = "./crates/refineable" }
256regex = "1.5"
257rusqlite = { version = "0.29.0", features = ["blob", "array", "modern_sqlite"] }
258rust-embed = { version = "8.0", features = ["include-exclude"] }
259schemars = "0.8"
260semver = "1.0"
261serde = { version = "1.0", features = ["derive", "rc"] }
262serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
263serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
264serde_json_lenient = { version = "0.1", features = [
265    "preserve_order",
266    "raw_value",
267] }
268serde_repr = "0.1"
269sha2 = "0.10"
270shellexpand = "2.1.0"
271smallvec = { version = "1.6", features = ["union"] }
272smol = "1.2"
273strum = { version = "0.25.0", features = ["derive"] }
274subtle = "2.5.0"
275sysinfo = "0.30.7"
276tempfile = "3.9.0"
277thiserror = "1.0.29"
278tiktoken-rs = "0.5.7"
279time = { version = "0.3", features = [
280    "serde",
281    "serde-well-known",
282    "formatting",
283] }
284toml = "0.8"
285tokio = { version = "1", features = ["full"] }
286tower-http = "0.4.4"
287tree-sitter = { version = "0.20", features = ["wasm"] }
288tree-sitter-bash = { git = "https://github.com/tree-sitter/tree-sitter-bash", rev = "7331995b19b8f8aba2d5e26deb51d2195c18bc94" }
289tree-sitter-c = "0.20.1"
290tree-sitter-clojure = { git = "https://github.com/prcastro/tree-sitter-clojure", branch = "update-ts" }
291tree-sitter-c-sharp = { git = "https://github.com/tree-sitter/tree-sitter-c-sharp", rev = "dd5e59721a5f8dae34604060833902b882023aaf" }
292tree-sitter-cpp = { git = "https://github.com/tree-sitter/tree-sitter-cpp", rev = "f44509141e7e483323d2ec178f2d2e6c0fc041c1" }
293tree-sitter-css = { git = "https://github.com/tree-sitter/tree-sitter-css", rev = "769203d0f9abe1a9a691ac2b9fe4bb4397a73c51" }
294tree-sitter-dart = { git = "https://github.com/agent3bood/tree-sitter-dart", rev = "48934e3bf757a9b78f17bdfaa3e2b4284656fdc7" }
295tree-sitter-elixir = { git = "https://github.com/elixir-lang/tree-sitter-elixir", rev = "a2861e88a730287a60c11ea9299c033c7d076e30" }
296tree-sitter-elm = { git = "https://github.com/elm-tooling/tree-sitter-elm", rev = "692c50c0b961364c40299e73c1306aecb5d20f40" }
297tree-sitter-embedded-template = "0.20.0"
298tree-sitter-erlang = "0.4.0"
299tree-sitter-glsl = { git = "https://github.com/theHamsta/tree-sitter-glsl", rev = "2a56fb7bc8bb03a1892b4741279dd0a8758b7fb3" }
300tree-sitter-go = { git = "https://github.com/tree-sitter/tree-sitter-go", rev = "aeb2f33b366fd78d5789ff104956ce23508b85db" }
301tree-sitter-gomod = { git = "https://github.com/camdencheek/tree-sitter-go-mod" }
302tree-sitter-gowork = { git = "https://github.com/d1y/tree-sitter-go-work" }
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-proto = { git = "https://github.com/rewinfrey/tree-sitter-proto", rev = "36d54f288aee112f13a67b550ad32634d0c2cb52" }
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-toml = { git = "https://github.com/tree-sitter/tree-sitter-toml", rev = "342d9be207c2dba869b9967124c679b5e6fd0ebe" }
323tree-sitter-typescript = { git = "https://github.com/tree-sitter/tree-sitter-typescript", rev = "5d20856f34315b068c41edaee2ac8a100081d259" }
324tree-sitter-vue = { git = "https://github.com/zed-industries/tree-sitter-vue", rev = "6608d9d60c386f19d80af7d8132322fa11199c42" }
325tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "f545a41f57502e1b5ddf2a6668896c1b0620f930" }
326tree-sitter-zig = { git = "https://github.com/maxxnino/tree-sitter-zig", rev = "0d08703e4c3f426ec61695d7617415fff97029bd" }
327unindent = "0.1.7"
328unicase = "2.6"
329url = "2.2"
330uuid = { version = "1.1.2", features = ["v4"] }
331wasmparser = "0.201"
332wasm-encoder = "0.201"
333wasmtime = { version = "19.0.0", default-features = false, features = [
334    "async",
335    "demangle",
336    "runtime",
337    "cranelift",
338    "component-model",
339] }
340wasmtime-wasi = "19.0.0"
341which = "6.0.0"
342wit-component = "0.201"
343sys-locale = "0.3.1"
344
345[workspace.dependencies.windows]
346version = "0.53.0"
347features = [
348    "implement",
349    "Wdk_System_SystemServices",
350    "Win32_Globalization",
351    "Win32_Graphics_DirectWrite",
352    "Win32_Graphics_Gdi",
353    "Win32_Media",
354    "Win32_Security",
355    "Win32_Security_Credentials",
356    "Win32_Storage_FileSystem",
357    "Win32_System_LibraryLoader",
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 = "7f21c3b98c0749ac192da67a0d65dfe3eabc4a63" }
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 }
390wasmtime = { opt-level = 3 }
391
392[profile.release]
393debug = "limited"
394lto = "thin"
395codegen-units = 1
396
397[profile.release.package]
398zed = { codegen-units = 16 }
399
400[workspace.lints.clippy]
401dbg_macro = "deny"
402todo = "deny"
403
404# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
405# warning on this rule produces a lot of noise.
406single_range_in_vec_init = "allow"
407
408# These are all of the rules that currently have violations in the Zed
409# codebase.
410#
411# We'll want to drive this list down by either:
412# 1. fixing violations of the rule and begin enforcing it
413# 2. deciding we want to allow the rule permanently, at which point
414#    we should codify that separately above.
415#
416# This list shouldn't be added to; it should only get shorter.
417# =============================================================================
418
419# There are a bunch of rules currently failing in the `style` group, so
420# allow all of those, for now.
421style = "allow"
422
423# Individual rules that have violations in the codebase:
424almost_complete_range = "allow"
425arc_with_non_send_sync = "allow"
426borrowed_box = "allow"
427let_underscore_future = "allow"
428map_entry = "allow"
429non_canonical_partial_ord_impl = "allow"
430reversed_empty_ranges = "allow"
431type_complexity = "allow"
432
433[workspace.metadata.cargo-machete]
434ignored = ["bindgen", "cbindgen", "prost_build", "serde"]