1[workspace]
2resolver = "2"
3members = [
4 "crates/activity_indicator",
5 "crates/anthropic",
6 "crates/askpass",
7 "crates/assets",
8 "crates/assistant",
9 "crates/assistant2",
10 "crates/assistant_context_editor",
11 "crates/assistant_eval",
12 "crates/assistant_settings",
13 "crates/assistant_slash_command",
14 "crates/assistant_slash_commands",
15 "crates/assistant_tool",
16 "crates/assistant_tools",
17 "crates/audio",
18 "crates/auto_update",
19 "crates/auto_update_ui",
20 "crates/aws_http_client",
21 "crates/bedrock",
22 "crates/breadcrumbs",
23 "crates/buffer_diff",
24 "crates/call",
25 "crates/channel",
26 "crates/cli",
27 "crates/client",
28 "crates/clock",
29 "crates/collab",
30 "crates/collab_ui",
31 "crates/collections",
32 "crates/command_palette",
33 "crates/command_palette_hooks",
34 "crates/component",
35 "crates/component_preview",
36 "crates/context_server",
37 "crates/context_server_settings",
38 "crates/copilot",
39 "crates/credentials_provider",
40 "crates/dap",
41 "crates/dap_adapters",
42 "crates/debugger_tools",
43 "crates/debugger_ui",
44 "crates/db",
45 "crates/deepseek",
46 "crates/diagnostics",
47 "crates/docs_preprocessor",
48 "crates/editor",
49 "crates/evals",
50 "crates/extension",
51 "crates/extension_api",
52 "crates/extension_cli",
53 "crates/extension_host",
54 "crates/extensions_ui",
55 "crates/feature_flags",
56 "crates/feedback",
57 "crates/file_finder",
58 "crates/file_icons",
59 "crates/fs",
60 "crates/fsevent",
61 "crates/fuzzy",
62 "crates/git",
63 "crates/git_hosting_providers",
64 "crates/git_ui",
65 "crates/go_to_line",
66 "crates/google_ai",
67 "crates/gpui",
68 "crates/gpui_macros",
69 "crates/gpui_tokio",
70 "crates/html_to_markdown",
71 "crates/http_client",
72 "crates/http_client_tls",
73 "crates/image_viewer",
74 "crates/indexed_docs",
75 "crates/inline_completion",
76 "crates/inline_completion_button",
77 "crates/install_cli",
78 "crates/journal",
79 "crates/language",
80 "crates/language_extension",
81 "crates/language_model",
82 "crates/language_model_selector",
83 "crates/language_models",
84 "crates/language_selector",
85 "crates/language_tools",
86 "crates/languages",
87 "crates/livekit_api",
88 "crates/livekit_client",
89 "crates/livekit_client_macos",
90 "crates/lmstudio",
91 "crates/lsp",
92 "crates/markdown",
93 "crates/markdown_preview",
94 "crates/media",
95 "crates/menu",
96 "crates/migrator",
97 "crates/mistral",
98 "crates/multi_buffer",
99 "crates/node_runtime",
100 "crates/notifications",
101 "crates/ollama",
102 "crates/open_ai",
103 "crates/outline",
104 "crates/outline_panel",
105 "crates/panel",
106 "crates/paths",
107 "crates/picker",
108 "crates/prettier",
109 "crates/project",
110 "crates/project_panel",
111 "crates/project_symbols",
112 "crates/prompt_library",
113 "crates/prompt_store",
114 "crates/proto",
115 "crates/recent_projects",
116 "crates/refineable",
117 "crates/refineable/derive_refineable",
118 "crates/release_channel",
119 "crates/remote",
120 "crates/remote_server",
121 "crates/repl",
122 "crates/reqwest_client",
123 "crates/rich_text",
124 "crates/rope",
125 "crates/rpc",
126 "crates/schema_generator",
127 "crates/scripting_tool",
128 "crates/search",
129 "crates/semantic_index",
130 "crates/semantic_version",
131 "crates/session",
132 "crates/settings",
133 "crates/settings_ui",
134 "crates/snippet",
135 "crates/snippet_provider",
136 "crates/snippets_ui",
137 "crates/sqlez",
138 "crates/sqlez_macros",
139 "crates/story",
140 "crates/storybook",
141 "crates/streaming_diff",
142 "crates/sum_tree",
143 "crates/supermaven",
144 "crates/supermaven_api",
145 "crates/tab_switcher",
146 "crates/task",
147 "crates/tasks_ui",
148 "crates/telemetry",
149 "crates/telemetry_events",
150 "crates/terminal",
151 "crates/terminal_view",
152 "crates/text",
153 "crates/theme",
154 "crates/theme_extension",
155 "crates/theme_importer",
156 "crates/theme_selector",
157 "crates/time_format",
158 "crates/title_bar",
159 "crates/toolchain_selector",
160 "crates/ui",
161 "crates/ui_input",
162 "crates/ui_macros",
163 "crates/ui_prompt",
164 "crates/util",
165 "crates/util_macros",
166 "crates/vim",
167 "crates/vim_mode_setting",
168 "crates/welcome",
169 "crates/workspace",
170 "crates/worktree",
171 "crates/zed",
172 "crates/zed_actions",
173 "crates/zeta",
174 "crates/zlog",
175 "crates/zlog_settings",
176
177 #
178 # Extensions
179 #
180
181 "extensions/emmet",
182 "extensions/glsl",
183 "extensions/html",
184 "extensions/perplexity",
185 "extensions/proto",
186 "extensions/ruff",
187 "extensions/slash-commands-example",
188 "extensions/snippets",
189 "extensions/test-extension",
190 "extensions/toml",
191
192 #
193 # Tooling
194 #
195
196 "tooling/xtask",
197]
198default-members = ["crates/zed"]
199
200[workspace.package]
201publish = false
202edition = "2021"
203
204[workspace.dependencies]
205
206#
207# Workspace member crates
208#
209
210activity_indicator = { path = "crates/activity_indicator" }
211ai = { path = "crates/ai" }
212anthropic = { path = "crates/anthropic" }
213askpass = { path = "crates/askpass" }
214assets = { path = "crates/assets" }
215assistant = { path = "crates/assistant" }
216assistant2 = { path = "crates/assistant2" }
217assistant_context_editor = { path = "crates/assistant_context_editor" }
218assistant_eval = { path = "crates/assistant_eval" }
219assistant_settings = { path = "crates/assistant_settings" }
220assistant_slash_command = { path = "crates/assistant_slash_command" }
221assistant_slash_commands = { path = "crates/assistant_slash_commands" }
222assistant_tool = { path = "crates/assistant_tool" }
223assistant_tools = { path = "crates/assistant_tools" }
224audio = { path = "crates/audio" }
225auto_update = { path = "crates/auto_update" }
226auto_update_ui = { path = "crates/auto_update_ui" }
227aws_http_client = { path = "crates/aws_http_client" }
228bedrock = { path = "crates/bedrock" }
229breadcrumbs = { path = "crates/breadcrumbs" }
230call = { path = "crates/call" }
231channel = { path = "crates/channel" }
232cli = { path = "crates/cli" }
233client = { path = "crates/client" }
234clock = { path = "crates/clock" }
235collab = { path = "crates/collab" }
236collab_ui = { path = "crates/collab_ui" }
237collections = { path = "crates/collections" }
238command_palette = { path = "crates/command_palette" }
239command_palette_hooks = { path = "crates/command_palette_hooks" }
240component = { path = "crates/component" }
241component_preview = { path = "crates/component_preview" }
242context_server = { path = "crates/context_server" }
243context_server_settings = { path = "crates/context_server_settings" }
244copilot = { path = "crates/copilot" }
245credentials_provider = { path = "crates/credentials_provider" }
246dap = { path = "crates/dap" }
247dap_adapters = { path = "crates/dap_adapters" }
248db = { path = "crates/db" }
249debugger_ui = { path = "crates/debugger_ui" }
250debugger_tools = { path = "crates/debugger_tools" }
251deepseek = { path = "crates/deepseek" }
252diagnostics = { path = "crates/diagnostics" }
253buffer_diff = { path = "crates/buffer_diff" }
254editor = { path = "crates/editor" }
255extension = { path = "crates/extension" }
256extension_host = { path = "crates/extension_host" }
257extensions_ui = { path = "crates/extensions_ui" }
258feature_flags = { path = "crates/feature_flags" }
259feedback = { path = "crates/feedback" }
260file_finder = { path = "crates/file_finder" }
261file_icons = { path = "crates/file_icons" }
262fs = { path = "crates/fs" }
263fsevent = { path = "crates/fsevent" }
264fuzzy = { path = "crates/fuzzy" }
265git = { path = "crates/git" }
266git_hosting_providers = { path = "crates/git_hosting_providers" }
267git_ui = { path = "crates/git_ui" }
268go_to_line = { path = "crates/go_to_line" }
269google_ai = { path = "crates/google_ai" }
270gpui = { path = "crates/gpui", default-features = false, features = [
271 "http_client",
272] }
273gpui_macros = { path = "crates/gpui_macros" }
274gpui_tokio = { path = "crates/gpui_tokio" }
275html_to_markdown = { path = "crates/html_to_markdown" }
276http_client = { path = "crates/http_client" }
277http_client_tls = { path = "crates/http_client_tls" }
278image_viewer = { path = "crates/image_viewer" }
279indexed_docs = { path = "crates/indexed_docs" }
280inline_completion = { path = "crates/inline_completion" }
281inline_completion_button = { path = "crates/inline_completion_button" }
282install_cli = { path = "crates/install_cli" }
283journal = { path = "crates/journal" }
284language = { path = "crates/language" }
285language_extension = { path = "crates/language_extension" }
286language_model = { path = "crates/language_model" }
287language_model_selector = { path = "crates/language_model_selector" }
288language_models = { path = "crates/language_models" }
289language_selector = { path = "crates/language_selector" }
290language_tools = { path = "crates/language_tools" }
291languages = { path = "crates/languages" }
292livekit_api = { path = "crates/livekit_api" }
293livekit_client = { path = "crates/livekit_client" }
294livekit_client_macos = { path = "crates/livekit_client_macos" }
295lmstudio = { path = "crates/lmstudio" }
296lsp = { path = "crates/lsp" }
297markdown = { path = "crates/markdown" }
298markdown_preview = { path = "crates/markdown_preview" }
299media = { path = "crates/media" }
300menu = { path = "crates/menu" }
301migrator = { path = "crates/migrator" }
302mistral = { path = "crates/mistral" }
303multi_buffer = { path = "crates/multi_buffer" }
304node_runtime = { path = "crates/node_runtime" }
305notifications = { path = "crates/notifications" }
306ollama = { path = "crates/ollama" }
307open_ai = { path = "crates/open_ai" }
308outline = { path = "crates/outline" }
309outline_panel = { path = "crates/outline_panel" }
310paths = { path = "crates/paths" }
311panel = { path = "crates/panel" }
312picker = { path = "crates/picker" }
313plugin = { path = "crates/plugin" }
314plugin_macros = { path = "crates/plugin_macros" }
315prettier = { path = "crates/prettier" }
316project = { path = "crates/project" }
317project_panel = { path = "crates/project_panel" }
318project_symbols = { path = "crates/project_symbols" }
319prompt_library = { path = "crates/prompt_library" }
320prompt_store = { path = "crates/prompt_store" }
321proto = { path = "crates/proto" }
322recent_projects = { path = "crates/recent_projects" }
323refineable = { path = "crates/refineable" }
324release_channel = { path = "crates/release_channel" }
325remote = { path = "crates/remote" }
326remote_server = { path = "crates/remote_server" }
327repl = { path = "crates/repl" }
328reqwest_client = { path = "crates/reqwest_client" }
329rich_text = { path = "crates/rich_text" }
330rope = { path = "crates/rope" }
331rpc = { path = "crates/rpc" }
332scripting_tool = { path = "crates/scripting_tool" }
333search = { path = "crates/search" }
334semantic_index = { path = "crates/semantic_index" }
335semantic_version = { path = "crates/semantic_version" }
336session = { path = "crates/session" }
337settings = { path = "crates/settings" }
338settings_ui = { path = "crates/settings_ui" }
339snippet = { path = "crates/snippet" }
340snippet_provider = { path = "crates/snippet_provider" }
341snippets_ui = { path = "crates/snippets_ui" }
342sqlez = { path = "crates/sqlez" }
343sqlez_macros = { path = "crates/sqlez_macros" }
344story = { path = "crates/story" }
345storybook = { path = "crates/storybook" }
346streaming_diff = { path = "crates/streaming_diff" }
347sum_tree = { path = "crates/sum_tree" }
348supermaven = { path = "crates/supermaven" }
349supermaven_api = { path = "crates/supermaven_api" }
350tab_switcher = { path = "crates/tab_switcher" }
351task = { path = "crates/task" }
352tasks_ui = { path = "crates/tasks_ui" }
353telemetry = { path = "crates/telemetry" }
354telemetry_events = { path = "crates/telemetry_events" }
355terminal = { path = "crates/terminal" }
356terminal_view = { path = "crates/terminal_view" }
357text = { path = "crates/text" }
358theme = { path = "crates/theme" }
359theme_extension = { path = "crates/theme_extension" }
360theme_importer = { path = "crates/theme_importer" }
361theme_selector = { path = "crates/theme_selector" }
362time_format = { path = "crates/time_format" }
363title_bar = { path = "crates/title_bar" }
364toolchain_selector = { path = "crates/toolchain_selector" }
365ui = { path = "crates/ui" }
366ui_input = { path = "crates/ui_input" }
367ui_macros = { path = "crates/ui_macros" }
368ui_prompt = { path = "crates/ui_prompt" }
369util = { path = "crates/util" }
370util_macros = { path = "crates/util_macros" }
371vim = { path = "crates/vim" }
372vim_mode_setting = { path = "crates/vim_mode_setting" }
373welcome = { path = "crates/welcome" }
374workspace = { path = "crates/workspace" }
375worktree = { path = "crates/worktree" }
376zed = { path = "crates/zed" }
377zed_actions = { path = "crates/zed_actions" }
378zeta = { path = "crates/zeta" }
379zlog = { path = "crates/zlog" }
380zlog_settings = { path = "crates/zlog_settings" }
381
382#
383# External crates
384#
385
386aho-corasick = "1.1"
387alacritty_terminal = { git = "https://github.com/zed-industries/alacritty.git", branch = "add-hush-login-flag" }
388any_vec = "0.14"
389anyhow = "1.0.86"
390arrayvec = { version = "0.7.4", features = ["serde"] }
391ashpd = { version = "0.11", default-features = false, features = ["async-std"] }
392async-compat = "0.2.1"
393async-compression = { version = "0.4", features = ["gzip", "futures-io"] }
394async-dispatcher = "0.1"
395async-fs = "2.1"
396async-pipe = { git = "https://github.com/zed-industries/async-pipe-rs", rev = "82d00a04211cf4e1236029aa03e6b6ce2a74c553" }
397async-recursion = "1.0.0"
398async-tar = "0.5.0"
399async-trait = "0.1"
400async-tungstenite = "0.28"
401async-watch = "0.3.1"
402async_zip = { version = "0.0.17", features = ["deflate", "deflate64"] }
403aws-config = { version = "1.5.16", features = ["behavior-version-latest"] }
404aws-credential-types = { version = "1.2.1", features = ["hardcoded-credentials"] }
405aws-sdk-bedrockruntime = { version = "1.73.0", features = ["behavior-version-latest"] }
406aws-smithy-runtime-api = { version = "1.7.3", features = ["http-1x", "client"] }
407aws-smithy-types = { version = "1.2.13", features = ["http-body-1-x"] }
408base64 = "0.22"
409bitflags = "2.6.0"
410blade-graphics = { git = "https://github.com/kvark/blade", rev = "b16f5c7bd873c7126f48c82c39e7ae64602ae74f" }
411blade-macros = { git = "https://github.com/kvark/blade", rev = "b16f5c7bd873c7126f48c82c39e7ae64602ae74f" }
412blade-util = { git = "https://github.com/kvark/blade", rev = "b16f5c7bd873c7126f48c82c39e7ae64602ae74f" }
413naga = { version = "23.1.0", features = ["wgsl-in"] }
414blake3 = "1.5.3"
415bytes = "1.0"
416cargo_metadata = "0.19"
417cargo_toml = "0.21"
418chrono = { version = "0.4", features = ["serde"] }
419circular-buffer = "1.0"
420clap = { version = "4.4", features = ["derive"] }
421cocoa = "0.26"
422cocoa-foundation = "0.2.0"
423convert_case = "0.8.0"
424core-foundation = "0.9.3"
425core-foundation-sys = "0.8.6"
426ctor = "0.4.0"
427dashmap = "6.0"
428dap-types = { git = "https://github.com/zed-industries/dap-types", rev = "bfd4af0" }
429derive_more = "0.99.17"
430dirs = "4.0"
431ec4rs = "1.1"
432emojis = "0.6.1"
433env_logger = "0.11"
434exec = "0.3.1"
435fancy-regex = "0.14.0"
436fork = "0.2.0"
437futures = "0.3"
438futures-batch = "0.6.1"
439futures-lite = "1.13"
440git2 = { version = "0.20.1", default-features = false }
441globset = "0.4"
442handlebars = "4.3"
443heed = { version = "0.21.0", features = ["read-txn-no-tls"] }
444hex = "0.4.3"
445html5ever = "0.27.0"
446hyper = "0.14"
447http = "1.1"
448ignore = "0.4.22"
449image = "0.25.1"
450imara-diff = "0.1.8"
451indexmap = { version = "2.7.0", features = ["serde"] }
452indoc = "2"
453inventory = "0.3.19"
454itertools = "0.14.0"
455jsonwebtoken = "9.3"
456jupyter-protocol = { version = "0.6.0" }
457jupyter-websocket-client = { version = "0.9.0" }
458libc = "0.2"
459libsqlite3-sys = { version = "0.30.1", features = ["bundled"] }
460linkify = "0.10.0"
461linkme = "0.3.31"
462livekit = { git = "https://github.com/zed-industries/livekit-rust-sdks", rev = "811ceae29fabee455f110c56cd66b3f49a7e5003", features = [
463 "dispatcher",
464 "services-dispatcher",
465 "rustls-tls-native-roots",
466], default-features = false }
467log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
468markup5ever_rcdom = "0.3.0"
469mlua = { version = "0.10", features = ["lua54", "vendored", "async", "send"] }
470nanoid = "0.4"
471nbformat = { version = "0.10.0" }
472nix = "0.29"
473num-format = "0.4.4"
474ordered-float = "2.1.1"
475palette = { version = "0.7.5", default-features = false, features = ["std"] }
476parking_lot = "0.12.1"
477pathdiff = "0.2"
478pet = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
479pet-fs = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
480pet-pixi = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
481pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
482pet-core = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
483pet-poetry = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
484pet-reporter = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
485postage = { version = "0.5", features = ["futures-traits"] }
486pretty_assertions = { version = "1.3.0", features = ["unstable"] }
487proc-macro2 = "1.0.93"
488profiling = "1"
489prost = "0.9"
490prost-build = "0.9"
491prost-types = "0.9"
492pulldown-cmark = { version = "0.12.0", default-features = false }
493quote = "1.0.9"
494rand = "0.8.5"
495rayon = "1.8"
496regex = "1.5"
497repair_json = "0.1.0"
498reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "fd110f6998da16bbca97b6dddda9be7827c50e29", default-features = false, features = [
499 "charset",
500 "http2",
501 "macos-system-configuration",
502 "rustls-tls-native-roots",
503 "socks",
504 "stream",
505] }
506rsa = "0.9.6"
507runtimelib = { version = "0.25.0", default-features = false, features = [
508 "async-dispatcher-runtime",
509] }
510rustc-demangle = "0.1.23"
511rust-embed = { version = "8.4", features = ["include-exclude"] }
512rustc-hash = "2.1.0"
513rustls = { version = "0.23.22" }
514rustls-platform-verifier = "0.5.0"
515schemars = { version = "0.8", features = ["impl_json_schema", "indexmap2"] }
516semver = "1.0"
517serde = { version = "1.0", features = ["derive", "rc"] }
518serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
519serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
520serde_json_lenient = { version = "0.2", features = [
521 "preserve_order",
522 "raw_value",
523] }
524serde_repr = "0.1"
525sha2 = "0.10"
526shellexpand = "2.1.0"
527shlex = "1.3.0"
528signal-hook = "0.3.17"
529simplelog = "0.12.2"
530smallvec = { version = "1.6", features = ["union"] }
531smol = "2.0"
532sqlformat = "0.2"
533streaming-iterator = "0.1"
534strsim = "0.11"
535strum = { version = "0.26.0", features = ["derive"] }
536subtle = "2.5.0"
537syn = { version = "1.0.72", features = ["full", "extra-traits"] }
538sys-locale = "0.3.1"
539sysinfo = "0.31.0"
540take-until = "0.2.0"
541tempfile = "3.9.0"
542thiserror = "2.0.12"
543tiktoken-rs = "0.6.0"
544time = { version = "0.3", features = [
545 "macros",
546 "parsing",
547 "serde",
548 "serde-well-known",
549 "formatting",
550] }
551tiny_http = "0.8"
552toml = "0.8"
553tokio = { version = "1" }
554tower-http = "0.4.4"
555tree-sitter = { version = "0.25.3", features = ["wasm"] }
556tree-sitter-bash = "0.23"
557tree-sitter-c = "0.23"
558tree-sitter-cpp = "0.23"
559tree-sitter-css = "0.23"
560tree-sitter-elixir = "0.3"
561tree-sitter-embedded-template = "0.23.0"
562tree-sitter-gitcommit = { git = "https://github.com/zed-industries/tree-sitter-git-commit", rev = "88309716a69dd13ab83443721ba6e0b491d37ee9" }
563tree-sitter-go = "0.23"
564tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c", package = "tree-sitter-gomod" }
565tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
566tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
567tree-sitter-diff = "0.1.0"
568tree-sitter-html = "0.23"
569tree-sitter-jsdoc = "0.23"
570tree-sitter-json = "0.24"
571tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
572tree-sitter-python = "0.23"
573tree-sitter-regex = "0.24"
574tree-sitter-ruby = "0.23"
575tree-sitter-rust = "0.23"
576tree-sitter-typescript = "0.23"
577tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
578unicase = "2.6"
579unindent = "0.2.0"
580unicode-segmentation = "1.10"
581unicode-script = "0.5.7"
582url = "2.2"
583urlencoding = "2.1.2"
584uuid = { version = "1.1.2", features = ["v4", "v5", "v7", "serde"] }
585wasmparser = "0.221"
586wasm-encoder = "0.221"
587wasmtime = { version = "29", default-features = false, features = [
588 "async",
589 "demangle",
590 "runtime",
591 "cranelift",
592 "component-model",
593] }
594wasmtime-wasi = "29"
595which = "6.0.0"
596wit-component = "0.221"
597zed_llm_client = "0.4"
598zstd = "0.11"
599metal = "0.31"
600
601[workspace.dependencies.async-stripe]
602git = "https://github.com/zed-industries/async-stripe"
603rev = "3672dd4efb7181aa597bf580bf5a2f5d23db6735"
604default-features = false
605features = [
606 "runtime-tokio-hyper-rustls",
607 "billing",
608 "checkout",
609 "events",
610 # The features below are only enabled to get the `events` feature to build.
611 "chrono",
612 "connect",
613]
614
615[workspace.dependencies.windows]
616version = "0.61"
617features = [
618 "Foundation_Collections",
619 "Foundation_Numerics",
620 "Storage_Search",
621 "Storage_Streams",
622 "System_Threading",
623 "UI_StartScreen",
624 "UI_ViewManagement",
625 "Wdk_System_SystemServices",
626 "Win32_Globalization",
627 "Win32_Graphics_Direct2D",
628 "Win32_Graphics_Direct2D_Common",
629 "Win32_Graphics_DirectWrite",
630 "Win32_Graphics_Dwm",
631 "Win32_Graphics_Dxgi_Common",
632 "Win32_Graphics_Gdi",
633 "Win32_Graphics_Imaging",
634 "Win32_Graphics_Imaging_D2D",
635 "Win32_Security",
636 "Win32_Security_Credentials",
637 "Win32_Storage_FileSystem",
638 "Win32_System_Com",
639 "Win32_System_Com_StructuredStorage",
640 "Win32_System_Console",
641 "Win32_System_DataExchange",
642 "Win32_System_IO",
643 "Win32_System_LibraryLoader",
644 "Win32_System_Memory",
645 "Win32_System_Ole",
646 "Win32_System_Pipes",
647 "Win32_System_SystemInformation",
648 "Win32_System_SystemServices",
649 "Win32_System_Threading",
650 "Win32_System_WinRT",
651 "Win32_UI_Controls",
652 "Win32_UI_HiDpi",
653 "Win32_UI_Input_Ime",
654 "Win32_UI_Input_KeyboardAndMouse",
655 "Win32_UI_Shell",
656 "Win32_UI_Shell_Common",
657 "Win32_UI_WindowsAndMessaging",
658]
659
660# TODO livekit https://github.com/RustAudio/cpal/pull/891
661[patch.crates-io]
662cpal = { git = "https://github.com/zed-industries/cpal", rev = "fd8bc2fd39f1f5fdee5a0690656caff9a26d9d50" }
663real-async-tls = { git = "https://github.com/zed-industries/async-tls", rev = "1e759a4b5e370f87dc15e40756ac4f8815b61d9d", package = "async-tls" }
664
665[profile.dev]
666split-debuginfo = "unpacked"
667debug = "limited"
668codegen-units = 16
669
670[profile.dev.package]
671taffy = { opt-level = 3 }
672cranelift-codegen = { opt-level = 3 }
673resvg = { opt-level = 3 }
674rustybuzz = { opt-level = 3 }
675ttf-parser = { opt-level = 3 }
676wasmtime-cranelift = { opt-level = 3 }
677wasmtime = { opt-level = 3 }
678# Build single-source-file crates with cg=1 as it helps make `cargo build` of a whole workspace a bit faster
679activity_indicator = { codegen-units = 1 }
680assets = { codegen-units = 1 }
681breadcrumbs = { codegen-units = 1 }
682collections = { codegen-units = 1 }
683command_palette = { codegen-units = 1 }
684command_palette_hooks = { codegen-units = 1 }
685evals = { codegen-units = 1 }
686extension_cli = { codegen-units = 1 }
687feature_flags = { codegen-units = 1 }
688file_icons = { codegen-units = 1 }
689fsevent = { codegen-units = 1 }
690image_viewer = { codegen-units = 1 }
691inline_completion_button = { codegen-units = 1 }
692install_cli = { codegen-units = 1 }
693journal = { codegen-units = 1 }
694lmstudio = { codegen-units = 1 }
695menu = { codegen-units = 1 }
696notifications = { codegen-units = 1 }
697ollama = { codegen-units = 1 }
698outline = { codegen-units = 1 }
699paths = { codegen-units = 1 }
700prettier = { codegen-units = 1 }
701project_symbols = { codegen-units = 1 }
702refineable = { codegen-units = 1 }
703release_channel = { codegen-units = 1 }
704reqwest_client = { codegen-units = 1 }
705rich_text = { codegen-units = 1 }
706semantic_version = { codegen-units = 1 }
707session = { codegen-units = 1 }
708snippet = { codegen-units = 1 }
709snippets_ui = { codegen-units = 1 }
710sqlez_macros = { codegen-units = 1 }
711story = { codegen-units = 1 }
712supermaven_api = { codegen-units = 1 }
713telemetry_events = { codegen-units = 1 }
714theme_selector = { codegen-units = 1 }
715time_format = { codegen-units = 1 }
716ui_input = { codegen-units = 1 }
717zed_actions = { codegen-units = 1 }
718
719[profile.release]
720debug = "limited"
721lto = "thin"
722codegen-units = 1
723
724[profile.release.package]
725zed = { codegen-units = 16 }
726
727[profile.release-fast]
728inherits = "release"
729debug = "full"
730lto = false
731codegen-units = 16
732
733[workspace.lints.rust]
734unexpected_cfgs = { level = "allow" }
735
736[workspace.lints.clippy]
737dbg_macro = "deny"
738todo = "deny"
739
740# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
741# warning on this rule produces a lot of noise.
742single_range_in_vec_init = "allow"
743
744# These are all of the rules that currently have violations in the Zed
745# codebase.
746#
747# We'll want to drive this list down by either:
748# 1. fixing violations of the rule and begin enforcing it
749# 2. deciding we want to allow the rule permanently, at which point
750# we should codify that separately above.
751#
752# This list shouldn't be added to; it should only get shorter.
753# =============================================================================
754
755# There are a bunch of rules currently failing in the `style` group, so
756# allow all of those, for now.
757style = { level = "allow", priority = -1 }
758
759# Temporary list of style lints that we've fixed so far.
760module_inception = { level = "deny" }
761question_mark = { level = "deny" }
762redundant_closure = { level = "deny" }
763# Individual rules that have violations in the codebase:
764type_complexity = "allow"
765# We often return trait objects from `new` functions.
766new_ret_no_self = { level = "allow" }
767# We have a few `next` functions that differ in lifetimes
768# compared to Iterator::next. Yet, clippy complains about those.
769should_implement_trait = { level = "allow" }
770let_underscore_future = "allow"
771
772# in Rust it can be very tedious to reduce argument count without
773# running afoul of the borrow checker.
774too_many_arguments = "allow"
775
776[workspace.metadata.cargo-machete]
777ignored = ["bindgen", "cbindgen", "prost_build", "serde", "component", "linkme"]