Skip to content

Commit 181dd2f

Browse files
dodomorandipaolobarbolini
authored andcommitted
build: use doc_auto_cfg feature for docs.rs
This improves the readability of the documentation.
1 parent 462cde4 commit 181dd2f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

benzina/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ rust-version.workspace = true
1111

1212
[package.metadata.docs.rs]
1313
features = ["postgres", "mysql", "serde", "typed-uuid", "example-generated"]
14+
rustdoc-args = ["--cfg", "docsrs"]
1415

1516
[dependencies]
1617
diesel = { version = "2.2", default-features = false, optional = true }

benzina/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
2+
13
#[cfg(feature = "postgres")]
24
pub use self::int::{U15, U31, U63};
35
#[cfg(feature = "derive")]

0 commit comments

Comments
 (0)