From 94e4a94b91b826d1f8026757c0d8a919b08d700f Mon Sep 17 00:00:00 2001 From: "Vineel Kovvuri[MSFT]" Date: Mon, 26 Oct 2026 10:31:46 -0700 Subject: [PATCH] .sync: Enable the patina alloc feature in the doc tasks The doc and doc-open tasks in Makefile-patina.toml now pass the alloc feature of patina to cargo doc. The patina crate no longer enables alloc by default. Without the flag, the generated docs omit every module that needs alloc. Refs: OpenDevicePartnership/patina#1919 Signed-off-by: Vineel Kovvuri[MSFT] --- .sync/rust/Makefiles/Makefile-patina.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.sync/rust/Makefiles/Makefile-patina.toml b/.sync/rust/Makefiles/Makefile-patina.toml index b5447ff..0b91c59 100644 --- a/.sync/rust/Makefiles/Makefile-patina.toml +++ b/.sync/rust/Makefiles/Makefile-patina.toml @@ -473,13 +473,15 @@ end description = "Builds all rust documentation in the workspace. Arguments are forwarded to `cargo doc`. Example `cargo make doc` or `cargo make doc -p patina`" clear = true command = "cargo" -args = ["doc", "@@split(CARGO_MAKE_TASK_ARGS,;)", "--no-deps"] +# `alloc` is not a default feature of `patina`. Enable it so the docs match docs.rs. +args = ["doc", "--features", "patina/alloc", "@@split(CARGO_MAKE_TASK_ARGS,;)", "--no-deps"] [tasks.doc-open] description = "Builds all rust documentation in the workspace and opens the documentation. Arguments are forwarded to `cargo doc`. Example `cargo make doc-open` or `cargo make doc-open -p patina`" clear = true command = "cargo" -args = ["doc", "@@split(CARGO_MAKE_TASK_ARGS,;)", "--open"] +# `alloc` is not a default feature of `patina`. Enable it so the docs match docs.rs. +args = ["doc", "--features", "patina/alloc", "@@split(CARGO_MAKE_TASK_ARGS,;)", "--open"] [tasks.clippy] description = "Run cargo clippy for the host target and both UEFI cross-compilation targets. Arguments are forwarded to `cargo clippy`."