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