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