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