Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
docs: ensure features are compiled into docs
Browse files Browse the repository at this point in the history
  • Loading branch information
simbleau committed Jan 14, 2024
1 parent b2c50f4 commit c810831
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
3 changes: 3 additions & 0 deletions bevy-rtc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down

0 comments on commit c810831

Please sign in to comment.