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/paths",
69 "crates/picker",
70 "crates/prettier",
71 "crates/project",
72 "crates/project_panel",
73 "crates/project_symbols",
74 "crates/proto",
75 "crates/quick_action_bar",
76 "crates/recent_projects",
77 "crates/refineable",
78 "crates/refineable/derive_refineable",
79 "crates/release_channel",
80 "crates/dev_server_projects",
81 "crates/repl",
82 "crates/rich_text",
83 "crates/rope",
84 "crates/rpc",
85 "crates/rustdoc",
86 "crates/task",
87 "crates/tasks_ui",
88 "crates/search",
89 "crates/semantic_index",
90 "crates/semantic_version",
91 "crates/settings",
92 "crates/snippet",
93 "crates/sqlez",
94 "crates/sqlez_macros",
95 "crates/story",
96 "crates/storybook",
97 "crates/sum_tree",
98 "crates/tab_switcher",
99 "crates/supermaven",
100 "crates/supermaven_api",
101 "crates/terminal",
102 "crates/terminal_view",
103 "crates/text",
104 "crates/theme",
105 "crates/theme_importer",
106 "crates/theme_selector",
107 "crates/telemetry_events",
108 "crates/time_format",
109 "crates/ui",
110 "crates/ui_text_field",
111 "crates/util",
112 "crates/vcs_menu",
113 "crates/vim",
114 "crates/welcome",
115 "crates/workspace",
116 "crates/worktree",
117 "crates/zed",
118 "crates/zed_actions",
119
120 "extensions/astro",
121 "extensions/clojure",
122 "extensions/csharp",
123 "extensions/dart",
124 "extensions/deno",
125 "extensions/elixir",
126 "extensions/elm",
127 "extensions/emmet",
128 "extensions/erlang",
129 "extensions/gleam",
130 "extensions/glsl",
131 "extensions/haskell",
132 "extensions/html",
133 "extensions/lua",
134 "extensions/ocaml",
135 "extensions/php",
136 "extensions/prisma",
137 "extensions/purescript",
138 "extensions/ruby",
139 "extensions/svelte",
140 "extensions/terraform",
141 "extensions/toml",
142 "extensions/uiua",
143 "extensions/vue",
144 "extensions/zig",
145
146 "tooling/xtask",
147]
148default-members = ["crates/zed"]
149resolver = "2"
150
151[workspace.dependencies]
152activity_indicator = { path = "crates/activity_indicator" }
153ai = { path = "crates/ai" }
154anthropic = { path = "crates/anthropic" }
155assets = { path = "crates/assets" }
156assistant = { path = "crates/assistant" }
157assistant_slash_command = { path = "crates/assistant_slash_command" }
158assistant_tooling = { path = "crates/assistant_tooling" }
159async-watch = "0.3.1"
160audio = { path = "crates/audio" }
161auto_update = { path = "crates/auto_update" }
162base64 = "0.13"
163breadcrumbs = { path = "crates/breadcrumbs" }
164call = { path = "crates/call" }
165channel = { path = "crates/channel" }
166cli = { path = "crates/cli" }
167client = { path = "crates/client" }
168clock = { path = "crates/clock" }
169collab = { path = "crates/collab" }
170collab_ui = { path = "crates/collab_ui" }
171collections = { path = "crates/collections" }
172command_palette = { path = "crates/command_palette" }
173command_palette_hooks = { path = "crates/command_palette_hooks" }
174copilot = { path = "crates/copilot" }
175dashmap = "5.5.3"
176db = { path = "crates/db" }
177diagnostics = { path = "crates/diagnostics" }
178editor = { path = "crates/editor" }
179extension = { path = "crates/extension" }
180extensions_ui = { path = "crates/extensions_ui" }
181feature_flags = { path = "crates/feature_flags" }
182feedback = { path = "crates/feedback" }
183file_finder = { path = "crates/file_finder" }
184file_icons = { path = "crates/file_icons" }
185fs = { path = "crates/fs" }
186fsevent = { path = "crates/fsevent" }
187fuzzy = { path = "crates/fuzzy" }
188git = { path = "crates/git" }
189git_hosting_providers = { path = "crates/git_hosting_providers" }
190go_to_line = { path = "crates/go_to_line" }
191google_ai = { path = "crates/google_ai" }
192gpui = { path = "crates/gpui" }
193gpui_macros = { path = "crates/gpui_macros" }
194headless = { path = "crates/headless" }
195html_to_markdown = { path = "crates/html_to_markdown" }
196http = { path = "crates/http" }
197install_cli = { path = "crates/install_cli" }
198image_viewer = { path = "crates/image_viewer" }
199inline_completion_button = { path = "crates/inline_completion_button" }
200journal = { path = "crates/journal" }
201language = { path = "crates/language" }
202language_selector = { path = "crates/language_selector" }
203language_tools = { path = "crates/language_tools" }
204languages = { path = "crates/languages" }
205live_kit_client = { path = "crates/live_kit_client" }
206live_kit_server = { path = "crates/live_kit_server" }
207lsp = { path = "crates/lsp" }
208markdown = { path = "crates/markdown" }
209markdown_preview = { path = "crates/markdown_preview" }
210media = { path = "crates/media" }
211menu = { path = "crates/menu" }
212multi_buffer = { path = "crates/multi_buffer" }
213node_runtime = { path = "crates/node_runtime" }
214notifications = { path = "crates/notifications" }
215ollama = { path = "crates/ollama" }
216open_ai = { path = "crates/open_ai" }
217outline = { path = "crates/outline" }
218outline_panel = { path = "crates/outline_panel" }
219paths = { path = "crates/paths" }
220picker = { path = "crates/picker" }
221plugin = { path = "crates/plugin" }
222plugin_macros = { path = "crates/plugin_macros" }
223prettier = { path = "crates/prettier" }
224project = { path = "crates/project" }
225proto = { path = "crates/proto" }
226worktree = { path = "crates/worktree" }
227project_panel = { path = "crates/project_panel" }
228project_symbols = { path = "crates/project_symbols" }
229quick_action_bar = { path = "crates/quick_action_bar" }
230recent_projects = { path = "crates/recent_projects" }
231release_channel = { path = "crates/release_channel" }
232dev_server_projects = { path = "crates/dev_server_projects" }
233repl = { path = "crates/repl" }
234rich_text = { path = "crates/rich_text" }
235rope = { path = "crates/rope" }
236rpc = { path = "crates/rpc" }
237rustdoc = { path = "crates/rustdoc" }
238task = { path = "crates/task" }
239tasks_ui = { path = "crates/tasks_ui" }
240search = { path = "crates/search" }
241semantic_index = { path = "crates/semantic_index" }
242semantic_version = { path = "crates/semantic_version" }
243settings = { path = "crates/settings" }
244snippet = { path = "crates/snippet" }
245sqlez = { path = "crates/sqlez" }
246sqlez_macros = { path = "crates/sqlez_macros" }
247supermaven = { path = "crates/supermaven" }
248supermaven_api = { path = "crates/supermaven_api" }
249story = { path = "crates/story" }
250storybook = { path = "crates/storybook" }
251sum_tree = { path = "crates/sum_tree" }
252tab_switcher = { path = "crates/tab_switcher" }
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" }
259telemetry_events = { path = "crates/telemetry_events" }
260time_format = { path = "crates/time_format" }
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" }
268zed = { path = "crates/zed" }
269zed_actions = { path = "crates/zed_actions" }
270
271alacritty_terminal = "0.23"
272anyhow = "1.0.57"
273any_vec = "0.13"
274ashpd = "0.8.0"
275async-compression = { version = "0.4", features = ["gzip", "futures-io"] }
276async-dispatcher = { version = "0.1"}
277async-fs = "1.6"
278async-recursion = "1.0.0"
279async-tar = "0.4.2"
280async-trait = "0.1"
281async_zip = { version = "0.0.17", features = ["deflate", "deflate64"] }
282bitflags = "2.4.2"
283blade-graphics = { git = "https://github.com/zed-industries/blade", rev = "33fd51359d113c03b785e28f4a6cf75bacb0b26d" }
284blade-macros = { git = "https://github.com/zed-industries/blade", rev = "33fd51359d113c03b785e28f4a6cf75bacb0b26d" }
285blade-util = { git = "https://github.com/zed-industries/blade", rev = "33fd51359d113c03b785e28f4a6cf75bacb0b26d" }
286cap-std = "3.0"
287cargo_toml = "0.20"
288chrono = { version = "0.4", features = ["serde"] }
289clap = { version = "4.4", features = ["derive"] }
290clickhouse = { version = "0.11.6" }
291cocoa = "0.25"
292ctor = "0.2.6"
293core-foundation = { version = "0.9.3" }
294core-foundation-sys = "0.8.6"
295derive_more = "0.99.17"
296dirs = "4.0"
297emojis = "0.6.1"
298env_logger = "0.9"
299exec = "0.3.1"
300fork = "0.1.23"
301futures = "0.3"
302futures-batch = "0.6.1"
303futures-lite = "1.13"
304git2 = { version = "0.19", default-features = false }
305globset = "0.4"
306heed = { version = "0.20.1", features = ["read-txn-no-tls"] }
307hex = "0.4.3"
308html5ever = "0.27.0"
309ignore = "0.4.22"
310image = "0.23"
311indexmap = { version = "1.6.2", features = ["serde"] }
312indoc = "1"
313# We explicitly disable http2 support in isahc.
314isahc = { version = "1.7.2", default-features = false, features = [
315 "static-curl",
316 "text-decoding",
317] }
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 = "30419d07660dc11a21e42ef4a7fa329600cff152" }
465
466[profile.dev]
467split-debuginfo = "unpacked"
468debug = "limited"
469
470[profile.dev.package]
471taffy = { opt-level = 3 }
472cranelift-codegen = { opt-level = 3 }
473resvg = { opt-level = 3 }
474rustybuzz = { opt-level = 3 }
475ttf-parser = { opt-level = 3 }
476wasmtime-cranelift = { opt-level = 3 }
477wasmtime = { opt-level = 3 }
478
479[profile.release]
480debug = "limited"
481lto = "thin"
482codegen-units = 1
483
484[profile.release.package]
485zed = { codegen-units = 16 }
486
487[workspace.lints.clippy]
488dbg_macro = "deny"
489todo = "deny"
490
491# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
492# warning on this rule produces a lot of noise.
493single_range_in_vec_init = "allow"
494
495# These are all of the rules that currently have violations in the Zed
496# codebase.
497#
498# We'll want to drive this list down by either:
499# 1. fixing violations of the rule and begin enforcing it
500# 2. deciding we want to allow the rule permanently, at which point
501# we should codify that separately above.
502#
503# This list shouldn't be added to; it should only get shorter.
504# =============================================================================
505
506# There are a bunch of rules currently failing in the `style` group, so
507# allow all of those, for now.
508style = "allow"
509
510# Individual rules that have violations in the codebase:
511almost_complete_range = "allow"
512arc_with_non_send_sync = "allow"
513borrowed_box = "allow"
514let_underscore_future = "allow"
515map_entry = "allow"
516non_canonical_partial_ord_impl = "allow"
517reversed_empty_ranges = "allow"
518type_complexity = "allow"
519
520[workspace.metadata.cargo-machete]
521ignored = ["bindgen", "cbindgen", "prost_build", "serde"]