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