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