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