# HG changeset patch # User Martin Habovstiak # Date 1720876401 -7200 # Node ID f33e2c048104811d94f102739ca4fb49e94fb879 # Parent f6334887e3c815f3a1faac8ce807777097eca828 Enable `doc_auto_cfg` in docs.rs builds diff -r f6334887e3c8 -r f33e2c048104 Cargo.toml --- a/Cargo.toml Sat Jul 13 15:09:13 2024 +0200 +++ b/Cargo.toml Sat Jul 13 15:13:21 2024 +0200 @@ -11,8 +11,9 @@ edition = "2018" license = "MITNFA" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] [features] default = ["enable_systemd"] diff -r f6334887e3c8 -r f33e2c048104 src/lib.rs --- a/src/lib.rs Sat Jul 13 15:09:13 2024 +0200 +++ b/src/lib.rs Sat Jul 13 15:13:21 2024 +0200 @@ -57,6 +57,7 @@ //! This crate must always compile with the latest Rust available in the latest Debian stable. //! That is currently Rust 1.41.1. (Debian 10 - Buster) +#![cfg_attr(docsrs, feature(doc_auto_cfg))] #![deny(missing_docs)]