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