Skip to content

Commit

Permalink
docs: show feature flag notation on docs.rs (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
andylokandy authored Aug 14, 2024
1 parent 8fd1f34 commit 31de5b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ keywords = ["logging", "log", "opentelemetry", "fastrace"]

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docs"]
rustdoc-args = ["--cfg", "docsrs"]

[features]
fastrace = ["dep:fastrace"]
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
//!
//! Read more demos under the [examples](https://github.com/fast/logforth/tree/main/examples) directory.
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

pub mod append;
pub mod filter;
pub mod layout;
Expand Down

0 comments on commit 31de5b4

Please sign in to comment.