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