Skip to content

Commit

Permalink
docs: When building for docs.rs, add feature flag info
Browse files Browse the repository at this point in the history
When docs.rs builds docs, it builds with nightly Rust and the
cfg `docsrs` set. We can trigger on `cfg(docsrs)` to enable
an unstable nightly feature to show which features are
required to enable something in the generated docs.
  • Loading branch information
waywardmonkeys committed Nov 16, 2024
1 parent e965a35 commit 2f281f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fidget/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@
//!
//! # Feature flags
#![doc = document_features::document_features!()]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(missing_docs)]

// Re-export everything from fidget::core into the top-level namespace
Expand Down

0 comments on commit 2f281f3

Please sign in to comment.