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