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