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