tree-wide: enable doc_cfg and doc_auto_cfg for docs
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
635c8bcbed
commit
0652d81977
@ -1,3 +1,5 @@
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
pub mod types;
|
||||
|
||||
#[cfg(feature = "impl")]
|
||||
|
@ -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::*;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -1,4 +1,5 @@
|
||||
#![recursion_limit = "256"]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
extern crate proc_macro;
|
||||
extern crate proc_macro2;
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
pub mod config;
|
||||
pub mod deb822;
|
||||
pub mod repositories;
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
pub mod blocking;
|
||||
pub mod broadcast_future;
|
||||
pub mod io;
|
||||
|
@ -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")]
|
||||
|
@ -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
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
use std::collections::HashMap;
|
||||
use std::future::Future;
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
mod compression;
|
||||
pub use compression::*;
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
use anyhow::{bail, Error};
|
||||
|
||||
#[cfg(feature = "openssl")]
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
mod api_types;
|
||||
pub use api_types::*;
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
use std::fmt;
|
||||
|
||||
use serde::{ser::SerializeStruct, Serialize, Serializer};
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
use std::{
|
||||
collections::HashMap,
|
||||
fmt::{Display, Formatter},
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
mod api_types;
|
||||
pub use api_types::*;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
use std::path::Path;
|
||||
|
||||
use anyhow::{format_err, Error};
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
mod filesystem_helpers;
|
||||
pub use filesystem_helpers::*;
|
||||
|
||||
|
@ -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};
|
||||
|
@ -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")]
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -1,5 +1,7 @@
|
||||
//! Serialization helpers for serde
|
||||
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
#[macro_use]
|
||||
pub mod serde_macros;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
extern crate proc_macro;
|
||||
extern crate proc_macro2;
|
||||
|
||||
|
@ -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,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
use std::os::unix::ffi::OsStrExt;
|
||||
|
||||
pub mod boot_mode;
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
mod api_types;
|
||||
pub use api_types::*;
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
#[cfg(feature = "u2f")]
|
||||
pub mod u2f;
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
mod api_types;
|
||||
pub use api_types::*;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user