From c81083167ce0d53e4359f1666edacc4573bc424d Mon Sep 17 00:00:00 2001 From: "Spencer C. Imbleau" Date: Sat, 13 Jan 2024 23:52:28 -0500 Subject: [PATCH] docs: ensure features are compiled into docs --- .github/workflows/release.yml | 1 + bevy-rtc/Cargo.toml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 28d8c06..fefb3c4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,4 +25,5 @@ jobs: cargo publish -p bevy-rtc-macros --token ${{ secrets.CARGO_REGISTRY_TOKEN }} VERSION=$(cat Cargo.toml | dasel -r toml 'workspace.package.version') sed -i 's/{ path = "..\/bevy-rtc-macros" }/'"$VERSION"'/' bevy-rtc/Cargo.toml + sed -i '1s/^/#![feature(doc_auto_cfg)]\n/' bevy-rtc/src/lib.rs cargo publish -p bevy-rtc --allow-dirty --token ${{ secrets.CARGO_REGISTRY_TOKEN }} \ No newline at end of file diff --git a/bevy-rtc/Cargo.toml b/bevy-rtc/Cargo.toml index 6cecace..7eeb7ad 100644 --- a/bevy-rtc/Cargo.toml +++ b/bevy-rtc/Cargo.toml @@ -8,6 +8,9 @@ repository.workspace = true authors.workspace = true keywords.workspace = true +[package.metadata.docs.rs] +all-features = true # document all features + [dependencies] bevy = { workspace = true } bevy-rtc-macros = { path = "../bevy-rtc-macros" }