1[workspace]
2members = [
3 "crates/activity_indicator",
4 "crates/anthropic",
5 "crates/assets",
6 "crates/assistant",
7 "crates/assistant2",
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" }
150assistant2 = { path = "crates/assistant2" }
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 = "e35b2d41f221a48b75f7cf2e78a81e7ecb7a383c" }
266blade-macros = { git = "https://github.com/kvark/blade", rev = "e35b2d41f221a48b75f7cf2e78a81e7ecb7a383c" }
267cap-std = "3.0"
268cargo_toml = "0.20"
269chrono = { version = "0.4", features = ["serde"] }
270clap = { version = "4.4", features = ["derive"] }
271clickhouse = { version = "0.11.6" }
272ctor = "0.2.6"
273signal-hook = "0.3.17"
274core-foundation = { version = "0.9.3" }
275core-foundation-sys = "0.8.6"
276derive_more = "0.99.17"
277emojis = "0.6.1"
278env_logger = "0.9"
279exec = "0.3.1"
280fork = "0.1.23"
281futures = "0.3"
282futures-batch = "0.6.1"
283futures-lite = "1.13"
284git2 = { version = "0.18", default-features = false }
285globset = "0.4"
286heed = { git = "https://github.com/meilisearch/heed", rev = "036ac23f73a021894974b9adc815bc95b3e0482a", features = [
287 "read-txn-no-tls",
288] }
289hex = "0.4.3"
290ignore = "0.4.22"
291indoc = "1"
292# We explicitly disable http2 support in isahc.
293isahc = { version = "1.7.2", default-features = false, features = [
294 "static-curl",
295 "text-decoding",
296] }
297itertools = "0.11.0"
298lazy_static = "1.4.0"
299libc = "0.2"
300linkify = "0.10.0"
301log = { version = "0.4.16", features = ["kv_unstable_serde"] }
302nanoid = "0.4"
303nix = "0.28"
304once_cell = "1.19.0"
305ordered-float = "2.1.1"
306palette = { version = "0.7.5", default-features = false, features = ["std"] }
307parking_lot = "0.12.1"
308profiling = "1"
309postage = { version = "0.5", features = ["futures-traits"] }
310pretty_assertions = "1.3.0"
311prost = "0.9"
312prost-build = "0.9"
313prost-types = "0.9"
314pulldown-cmark = { version = "0.10.0", default-features = false }
315rand = "0.8.5"
316refineable = { path = "./crates/refineable" }
317regex = "1.5"
318repair_json = "0.1.0"
319rusqlite = { version = "0.29.0", features = ["blob", "array", "modern_sqlite"] }
320rust-embed = { version = "8.4", features = ["include-exclude"] }
321schemars = "0.8"
322semver = "1.0"
323serde = { version = "1.0", features = ["derive", "rc"] }
324serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
325serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
326serde_json_lenient = { version = "0.1", features = [
327 "preserve_order",
328 "raw_value",
329] }
330serde_repr = "0.1"
331sha2 = "0.10"
332shellexpand = "2.1.0"
333smallvec = { version = "1.6", features = ["union"] }
334smol = "1.2"
335strum = { version = "0.25.0", features = ["derive"] }
336subtle = "2.5.0"
337sysinfo = "0.30.7"
338tempfile = "3.9.0"
339thiserror = "1.0.29"
340tiktoken-rs = "0.5.9"
341time = { version = "0.3", features = [
342 "macros",
343 "parsing",
344 "serde",
345 "serde-well-known",
346 "formatting",
347] }
348toml = "0.8"
349tokio = { version = "1", features = ["full"] }
350tower-http = "0.4.4"
351tree-sitter = { version = "0.20", features = ["wasm"] }
352tree-sitter-bash = { git = "https://github.com/tree-sitter/tree-sitter-bash", rev = "7331995b19b8f8aba2d5e26deb51d2195c18bc94" }
353tree-sitter-c = "0.20.1"
354tree-sitter-cpp = { git = "https://github.com/tree-sitter/tree-sitter-cpp", rev = "f44509141e7e483323d2ec178f2d2e6c0fc041c1" }
355tree-sitter-css = { git = "https://github.com/tree-sitter/tree-sitter-css", rev = "769203d0f9abe1a9a691ac2b9fe4bb4397a73c51" }
356tree-sitter-elixir = { git = "https://github.com/elixir-lang/tree-sitter-elixir", rev = "a2861e88a730287a60c11ea9299c033c7d076e30" }
357tree-sitter-embedded-template = "0.20.0"
358tree-sitter-go = { git = "https://github.com/tree-sitter/tree-sitter-go", rev = "aeb2f33b366fd78d5789ff104956ce23508b85db" }
359tree-sitter-gomod = { git = "https://github.com/camdencheek/tree-sitter-go-mod" }
360tree-sitter-gowork = { git = "https://github.com/d1y/tree-sitter-go-work" }
361rustc-demangle = "0.1.23"
362tree-sitter-heex = { git = "https://github.com/phoenixframework/tree-sitter-heex", rev = "2e1348c3cf2c9323e87c2744796cf3f3868aa82a" }
363tree-sitter-html = "0.19.0"
364tree-sitter-jsdoc = { git = "https://github.com/tree-sitter/tree-sitter-jsdoc", rev = "6a6cf9e7341af32d8e2b2e24a37fbfebefc3dc55" }
365tree-sitter-json = { git = "https://github.com/tree-sitter/tree-sitter-json", rev = "40a81c01a40ac48744e0c8ccabbaba1920441199" }
366tree-sitter-markdown = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "330ecab87a3e3a7211ac69bbadc19eabecdb1cca" }
367tree-sitter-proto = { git = "https://github.com/rewinfrey/tree-sitter-proto", rev = "36d54f288aee112f13a67b550ad32634d0c2cb52" }
368tree-sitter-python = "0.20.2"
369tree-sitter-regex = "0.20.0"
370tree-sitter-ruby = "0.20.0"
371tree-sitter-rust = "0.20.3"
372tree-sitter-typescript = { git = "https://github.com/tree-sitter/tree-sitter-typescript", rev = "5d20856f34315b068c41edaee2ac8a100081d259" }
373tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "f545a41f57502e1b5ddf2a6668896c1b0620f930" }
374unindent = "0.1.7"
375unicase = "2.6"
376unicode-segmentation = "1.10"
377url = "2.2"
378uuid = { version = "1.1.2", features = ["v4", "v5"] }
379wasmparser = "0.201"
380wasm-encoder = "0.201"
381wasmtime = { version = "19.0.0", default-features = false, features = [
382 "async",
383 "demangle",
384 "runtime",
385 "cranelift",
386 "component-model",
387] }
388wasmtime-wasi = "19.0.0"
389which = "6.0.0"
390wit-component = "0.201"
391sys-locale = "0.3.1"
392
393[workspace.dependencies.windows]
394version = "0.56.0"
395features = [
396 "implement",
397 "Foundation_Numerics",
398 "System",
399 "System_Threading",
400 "Wdk_System_SystemServices",
401 "Win32_Globalization",
402 "Win32_Graphics_Direct2D",
403 "Win32_Graphics_Direct2D_Common",
404 "Win32_Graphics_DirectWrite",
405 "Win32_Graphics_Dwm",
406 "Win32_Graphics_Dxgi_Common",
407 "Win32_Graphics_Gdi",
408 "Win32_Graphics_Imaging",
409 "Win32_Graphics_Imaging_D2D",
410 "Win32_Security",
411 "Win32_Security_Credentials",
412 "Win32_Storage_FileSystem",
413 "Win32_System_LibraryLoader",
414 "Win32_System_Com",
415 "Win32_System_Com_StructuredStorage",
416 "Win32_System_DataExchange",
417 "Win32_System_LibraryLoader",
418 "Win32_System_Ole",
419 "Win32_System_SystemInformation",
420 "Win32_System_SystemServices",
421 "Win32_System_Threading",
422 "Win32_System_Time",
423 "Win32_System_WinRT",
424 "Win32_UI_Controls",
425 "Win32_UI_HiDpi",
426 "Win32_UI_Input_Ime",
427 "Win32_UI_Input_KeyboardAndMouse",
428 "Win32_UI_Shell",
429 "Win32_UI_WindowsAndMessaging",
430]
431
432[patch.crates-io]
433tree-sitter = { git = "https://github.com/tree-sitter/tree-sitter", rev = "7b4894ba2ae81b988846676f54c0988d4027ef4f" }
434# Workaround for a broken nightly build of gpui: See #7644 and revisit once 0.5.3 is released.
435pathfinder_simd = { git = "https://github.com/servo/pathfinder.git", rev = "30419d07660dc11a21e42ef4a7fa329600cff152" }
436
437[profile.dev]
438split-debuginfo = "unpacked"
439debug = "limited"
440
441[profile.dev.package]
442taffy = { opt-level = 3 }
443cranelift-codegen = { opt-level = 3 }
444resvg = { opt-level = 3 }
445rustybuzz = { opt-level = 3 }
446ttf-parser = { opt-level = 3 }
447wasmtime-cranelift = { opt-level = 3 }
448wasmtime = { opt-level = 3 }
449
450[profile.release]
451debug = "limited"
452lto = "thin"
453codegen-units = 1
454
455[profile.release.package]
456zed = { codegen-units = 16 }
457
458[workspace.lints.clippy]
459dbg_macro = "deny"
460todo = "deny"
461
462# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
463# warning on this rule produces a lot of noise.
464single_range_in_vec_init = "allow"
465
466# These are all of the rules that currently have violations in the Zed
467# codebase.
468#
469# We'll want to drive this list down by either:
470# 1. fixing violations of the rule and begin enforcing it
471# 2. deciding we want to allow the rule permanently, at which point
472# we should codify that separately above.
473#
474# This list shouldn't be added to; it should only get shorter.
475# =============================================================================
476
477# There are a bunch of rules currently failing in the `style` group, so
478# allow all of those, for now.
479style = "allow"
480
481# Individual rules that have violations in the codebase:
482almost_complete_range = "allow"
483arc_with_non_send_sync = "allow"
484borrowed_box = "allow"
485let_underscore_future = "allow"
486map_entry = "allow"
487non_canonical_partial_ord_impl = "allow"
488reversed_empty_ranges = "allow"
489type_complexity = "allow"
490
491[workspace.metadata.cargo-machete]
492ignored = ["bindgen", "cbindgen", "prost_build", "serde"]