Skip to content

Commit

Permalink
chore: use doc_auto_cfg feature for docs.rs builds
Browse files Browse the repository at this point in the history
  • Loading branch information
DerZade authored and rjzak committed Sep 6, 2023
1 parent d5c80a7 commit 780ef78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ version = "0.1"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ appropriate `repr` attribute:
#![allow(unknown_lints)]
#![warn(clippy::all)]
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

use core::fmt::{Debug, Formatter, Result};
use core::ops::*;
Expand Down

0 comments on commit 780ef78

Please sign in to comment.