From 4cfd2335fa6ed4feebd3349f7927b29806fbe006 Mon Sep 17 00:00:00 2001 From: tison Date: Fri, 19 Jun 2026 14:48:10 +0800 Subject: [PATCH] build: Add metadata for docs.rs configuration --- template/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/template/Cargo.toml b/template/Cargo.toml index 1adf196..c9d68ac 100644 --- a/template/Cargo.toml +++ b/template/Cargo.toml @@ -23,6 +23,10 @@ readme.workspace = true repository.workspace = true rust-version.workspace = true +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] + [dependencies] [lints]