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