]> git.proxmox.com Git - proxmox.git/commitdiff
tree-wide: enable doc_cfg and doc_auto_cfg for docs
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 2 Jul 2024 09:56:53 +0000 (11:56 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 2 Jul 2024 09:59:53 +0000 (11:59 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
40 files changed:
proxmox-access-control/src/lib.rs
proxmox-acme-api/src/lib.rs
proxmox-acme/src/lib.rs
proxmox-api-macro/src/lib.rs
proxmox-apt/src/lib.rs
proxmox-async/src/lib.rs
proxmox-auth-api/src/lib.rs
proxmox-borrow/src/lib.rs
proxmox-client/src/lib.rs
proxmox-compression/src/lib.rs
proxmox-config-digest/src/lib.rs
proxmox-dns-api/src/lib.rs
proxmox-http-error/src/lib.rs
proxmox-http/src/lib.rs
proxmox-human-byte/src/lib.rs
proxmox-io/src/lib.rs
proxmox-lang/src/lib.rs
proxmox-ldap/src/lib.rs
proxmox-login/src/lib.rs
proxmox-metrics/src/lib.rs
proxmox-network-api/src/lib.rs
proxmox-notify/src/lib.rs
proxmox-openid/src/lib.rs
proxmox-product-config/src/lib.rs
proxmox-rest-server/src/lib.rs
proxmox-router/src/lib.rs
proxmox-rrd/src/lib.rs
proxmox-schema/src/lib.rs
proxmox-section-config/src/lib.rs
proxmox-serde/src/lib.rs
proxmox-shared-memory/src/lib.rs
proxmox-simple-config/src/lib.rs
proxmox-sortable-macro/src/lib.rs
proxmox-subscription/src/lib.rs
proxmox-sys/src/lib.rs
proxmox-syslog-api/src/lib.rs
proxmox-tfa/src/lib.rs
proxmox-time-api/src/lib.rs
proxmox-time/src/lib.rs
proxmox-uuid/src/lib.rs

index 7fabcfb5f7733020d5f5d89b71ae92e5013e44cf..c3aeb9db9762b43b4432840f1972dbe63d5343ae 100644 (file)
@@ -1,3 +1,5 @@
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 pub mod types;
 
 #[cfg(feature = "impl")]
index 09bde85c2c730f4fe85fad826acaf7824ac611b2..623e9e2380d9fb859bec3d10742e0839c4caaec7 100644 (file)
@@ -1,4 +1,6 @@
 //! ACME API crate (API types and API implementation)
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 mod types;
 pub use types::*;
 
index 692691bf4e6022bf96989c4f99de2dcfb8d71174..5f63806edd947229961bfd4d3e8311392c4fdfc8 100644 (file)
@@ -12,6 +12,7 @@
 //! The [`Account`] helper supports RSA and ECC keys and provides most of the API methods.
 
 #![deny(missing_docs)]
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
 
 #[cfg(feature = "api-types")]
 pub mod types;
index 3c34b48bc03a3c002896e1ab510c7091d4762f5a..0d401f310f2545ea96c8a676b4e0beb6c45ecd94 100644 (file)
@@ -1,4 +1,5 @@
 #![recursion_limit = "256"]
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
 
 extern crate proc_macro;
 extern crate proc_macro2;
index 0c93b3e253d192fa50b5ee2b616fa44c23ce6288..60bf1d2a87c1f77ba95a9d61c56ff2aebd025fc6 100644 (file)
@@ -1,3 +1,5 @@
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 pub mod config;
 pub mod deb822;
 pub mod repositories;
index 5445f681ace44394dc25e638f7249b21a585290c..f9222b9c3095dc1cd70669a15dfa4ddb08a54405 100644 (file)
@@ -1,3 +1,5 @@
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 pub mod blocking;
 pub mod broadcast_future;
 pub mod io;
index c312aa456120f7f2dd559ea6442890b1072396a5..e971216cf434e60613c9b0ad6c9e0e9faf81cd55 100644 (file)
@@ -7,6 +7,8 @@
 //!
 //! The `pam-authenticator` feature enables the `Pam` type.
 
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 pub const TICKET_LIFETIME: i64 = 3600 * 2; // 2 hours
 
 #[cfg(feature = "ticket")]
index 36a2e90f3c7298ce8ebf21000e4daa6837677348..798f51a637afddd34dee4474dba32fc651aa77c2 100644 (file)
@@ -1,5 +1,7 @@
 //! Helpers for borrowing and self-borrowing values.
 
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 use std::mem::ManuallyDrop;
 
 /// This ties two values together, so that one value can borrow from the other, while allowing the
index 8161cc040556b2112ffa4bfb08342d1a97f73304..eab6cf23c49cc3893005b9bfa7097c1de694be06 100644 (file)
@@ -1,3 +1,5 @@
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 use std::collections::HashMap;
 use std::future::Future;
 
index 1fcfb977e348b858031442630b47b53e0fb40f47..7a9837e438e082de1e125ecea387f5ac7e670ffe 100644 (file)
@@ -1,3 +1,5 @@
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 mod compression;
 pub use compression::*;
 
index d583412aa999818b0178e29405a33d96063c04fd..a34a3a90c091be472695354aa8c3fc94a1c580c6 100644 (file)
@@ -1,3 +1,5 @@
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 use anyhow::{bail, Error};
 
 #[cfg(feature = "openssl")]
index c6cf61cbde7ace3fa4a7c4503b3dd65b0482f00a..20f102278f6603f3d9058d63a46fc2934af583e4 100644 (file)
@@ -1,3 +1,5 @@
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 mod api_types;
 pub use api_types::*;
 
index b41a98c1803101eec3105e552c2830e6df7c11a1..1468668c1515c048148497bf8b018ac717edbed5 100644 (file)
@@ -1,3 +1,5 @@
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 use std::fmt;
 
 use serde::{ser::SerializeStruct, Serialize, Serializer};
index 640bd574551d35015d728362e053409a5d66ecd6..4770aaf421591030e7bb5ffb7ac10ca77ccead87 100644 (file)
@@ -1,5 +1,7 @@
 //! HTTP related utilities used by various Proxmox products.
 
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 #[cfg(feature = "websocket")]
 pub mod websocket;
 
index 650b837412b55379ef66aced6bfb101521399383..9f728fad481831c8dbbd74273df30b1218d3f4b7 100644 (file)
@@ -1,3 +1,5 @@
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 use anyhow::{bail, Error};
 
 use proxmox_schema::{ApiStringFormat, ApiType, Schema, StringSchema, UpdaterType};
index e6cc0beb15124717177abc04c5604200dae5e17b..1be005ffa2dac4f30bc56792d106545ed7178420 100644 (file)
@@ -4,6 +4,7 @@
 //! implementing [`Read`](std::io::Read).
 
 #![deny(unsafe_op_in_unsafe_fn)]
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
 
 mod read;
 pub use read::ReadExt;
index 0f8195fec40ce94c4695e31d14510a4db1d2ce5e..cf191c0b6840d8644ba49e29a1f7495f6fb5391f 100644 (file)
@@ -4,6 +4,8 @@
 //! sometimes also types from nightly `std` which are simple enough to do just haven't been
 //! bikeshedded and stabilized in the standard library yet.
 
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 mod constnamedbitmap;
 
 pub mod error;
index 2df7409ba1995e0a4ee6e83afb2a02aadcccfc72..ce37c778d859c15223bcaff59e08da3ec2307ba5 100644 (file)
@@ -1,3 +1,5 @@
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 use std::{
     collections::HashMap,
     fmt::{Display, Formatter},
index 65b875cdb09337a200919dbb5fc42e0317eccc5e..5842d62a44679b4b5692823ad06f92e5ac936abf 100644 (file)
@@ -1,6 +1,8 @@
 //! This package provides helpers for logging into the APIs of Proxmox products such as Proxmox VE
 //! or Proxmox Backup.
 
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 use serde::{Deserialize, Serialize};
 
 pub mod parse;
index 000cb39c2e253bd2f39e7259b0cb8e25108e9d45..84e7f07d390470f3d1e36873c77f378e1e554abf 100644 (file)
@@ -1,3 +1,5 @@
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 use std::borrow::Cow;
 use std::collections::HashMap;
 use std::sync::Arc;
index b366772d54d09af1cfbe7c3c3a9f577f7ef46b2a..a078ca452956451e62f3b2e1f1662f6602c453a3 100644 (file)
@@ -1,3 +1,5 @@
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 mod api_types;
 pub use api_types::*;
 
index 53f897a9935eea20a110cd55dfcd2b8c37a3fc11..910dfa064a2cb1ea1a22eaf4427488e186025df0 100644 (file)
@@ -1,3 +1,5 @@
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 use std::collections::HashMap;
 use std::error::Error as StdError;
 use std::fmt::Display;
index a65a729b1f62d9202d6ca982fdf655a3fd98dd9f..fe65fded5fd01ea2bcf4463f03de31870040c02a 100644 (file)
@@ -1,3 +1,5 @@
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 use std::path::Path;
 
 use anyhow::{format_err, Error};
index c6e08e5ebd20505acb63483b0ad66f69aaa64947..9576a08da943b35be909dd30605e5f4cf465ed6a 100644 (file)
@@ -1,3 +1,5 @@
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 mod filesystem_helpers;
 pub use filesystem_helpers::*;
 
index ce9e4f15e4ea56a2f8b8fefceb355ce30f85f06d..03942519d3038e6cdec6566a45c71e616a317799 100644 (file)
@@ -15,6 +15,8 @@
 //!   - worker task management
 //! * generic interface to authenticate user
 
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 use std::fmt;
 use std::os::unix::io::{FromRawFd, OwnedFd};
 use std::sync::atomic::{AtomicBool, Ordering};
index 808836a8c961a99bc0d3fafcb8fda280a0406463..b0b67bcb518e48ca2d8e4c2e5e74fd7a3d9c0795 100644 (file)
@@ -1,5 +1,7 @@
 //! API Router and Command Line Interface utilities.
 
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 pub mod format;
 
 #[cfg(feature = "cli")]
index 65e0424792b7b72cff130ad9837d83253240af6e..175bb87730ee315330ffe0e5ca963b874927a298 100644 (file)
@@ -6,6 +6,8 @@
 //! * Stores data for different time resolution
 //! * Simple cache implementation with journal support
 
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 #[cfg(feature = "rrd_v1")]
 mod rrd_v1;
 
index 09c271bfbbafdca694c6a02f6ee9dc91e336435b..c91b5fd670a0c15b0d49a2993d688ee6db8b70a5 100644 (file)
@@ -7,6 +7,7 @@
 //! parsers.
 
 #![deny(unsafe_op_in_unsafe_fn)]
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
 
 #[cfg(feature = "api-macro")]
 pub use proxmox_api_macro::api;
index e36d89955b5f5cccd626f8c6e2461f5c25b072f1..cfa79ad4d976ff3edab36957f883399c563fa0ad 100644 (file)
@@ -18,6 +18,8 @@
 //!     ...
 //! ```
 
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 use std::collections::HashMap;
 use std::collections::HashSet;
 use std::path::Path;
index 2f1ccca5cbc867d8dcec9a6c45b501ba973def29..dfd0915e0f4fce551f7b4eeead7eadd932b6ebac 100644 (file)
@@ -1,5 +1,7 @@
 //! Serialization helpers for serde
 
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 #[macro_use]
 pub mod serde_macros;
 
index 4809bd04aa6174f63225fa636351c3eeddccf0ff..defe678d47dccd86c8ec0a24e86f604b3d7dfe1e 100644 (file)
@@ -1,3 +1,5 @@
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 use std::ffi::{CStr, CString};
 use std::fs::File;
 use std::mem::MaybeUninit;
index f3b1782fd05b8a13f577186faeaa694c8392e566..710fb53af01285373c3c3a73a485eaf9219742b9 100644 (file)
@@ -1,5 +1,7 @@
 //! Our 'key: value' config format.
 
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 use std::io::Write;
 
 use anyhow::{bail, format_err, Error};
index a38f7310424afe1a9f5edd18cf066e7075905ab6..1395c77c82432e2214edb7fe27aaece44c1783a5 100644 (file)
@@ -1,3 +1,5 @@
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 extern crate proc_macro;
 extern crate proc_macro2;
 
index 8a298f233c06b3f4f385d41cd0a809998a4c75f1..bcc10721e863b999662bb6a7875e5b2e8f3c9687 100644 (file)
@@ -1,3 +1,5 @@
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 mod subscription_info;
 pub use subscription_info::{
     get_hardware_address, ProductType, SubscriptionInfo, SubscriptionStatus,
index 8ea707320273e8824884616e677c93735aef1713..02fcfc59f1c293e9d32db03e673dbc90ba449c05 100644 (file)
@@ -1,3 +1,5 @@
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 use std::os::unix::ffi::OsStrExt;
 
 pub mod boot_mode;
index f2e026a52cf9a487658cd631ba1d793f6a7de232..4dd5565aedb8212f613712c21c95ce6bba5ae85c 100644 (file)
@@ -1,3 +1,5 @@
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 mod api_types;
 pub use api_types::*;
 
index cf7010ef3b18cc134103b97a7bcc9a18ce508bae..1f65508b7c4e8cbeb419aca574a78533b80296b7 100644 (file)
@@ -1,3 +1,5 @@
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 #[cfg(feature = "u2f")]
 pub mod u2f;
 
index 45b2073f60ebaba766eb0fd335759b02b251392a..b9365ecebe11e980ddd50624f6f9f4959c255568 100644 (file)
@@ -1,3 +1,5 @@
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 mod api_types;
 pub use api_types::*;
 
index 15ce0a0161d5029048fe48410ead4b0bb371ef4d..93fe3b5217028c5de9cff35fe378c1e4a1e99eca 100644 (file)
@@ -1,4 +1,5 @@
 #![allow(clippy::manual_range_contains)]
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
 
 #[cfg(not(target_arch = "wasm32"))]
 mod tm_editor;
index 9dea3f9bd56aa391fc0de6d945fa09f91f25dcd2..4b424c2d630834bcc282648492247b48f7fbf9cc 100644 (file)
@@ -1,5 +1,7 @@
 //! Simple bindings to libuuid's `uuid_generate`.
 
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+
 use std::borrow::{Borrow, BorrowMut};
 use std::fmt;