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