Mercurial > crates > systemd-socket
changeset 22:f33e2c048104
Enable `doc_auto_cfg` in docs.rs builds
author | Martin Habovstiak <martin.habovstiak@gmail.com> |
---|---|
date | Sat, 13 Jul 2024 15:13:21 +0200 |
parents | f6334887e3c8 |
children | 729392c49b46 |
files | Cargo.toml src/lib.rs |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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"]
--- 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)]