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