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