Skip to content

Commit

Permalink
Enabling feature flags in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ecton committed Aug 4, 2024
1 parent 2998371 commit ad23ddb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@nightly

- name: Generate Docs
run: |
cargo doc --no-deps --all-features --workspace
cargo +nightly doc --no-deps --all-features --workspace
env:
RUSTDOCFLAGS: "--cfg docsrs"

- name: Deploy
uses: khonsulabs/sync-to-dossier@main
Expand Down
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ harness = false
name = "hosted"
harness = false

[package.metadata.docs.rs]
all-features = true

[profile.release]
debug = true
lto = true
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! A Safe, familiar, embeddable programming language.

#![cfg_attr(docsrs, feature(doc_auto_cfg))]
pub use muse_lang::*;

#[cfg(feature = "reactor")]
Expand Down

0 comments on commit ad23ddb

Please sign in to comment.