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