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