Skip to content

Commit

Permalink
Make sure docsrs displays what needs features
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Nov 21, 2024
1 parent c1f91d7 commit 553b355
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rtt-target/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ portable-atomic = { version = "1.6.0", default-features = false }
defmt = { version = "0.3.0", optional = true }

[package.metadata.docs.rs]
features = ["defmt"]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
1 change: 1 addition & 0 deletions rtt-target/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
//! ```
#![no_std]
#![cfg_attr(docsrs, feature(doc_cfg), feature(doc_auto_cfg))]

use core::convert::Infallible;
use core::fmt;
Expand Down

0 comments on commit 553b355

Please sign in to comment.