sinf 0.1.0

Library for obtaining in-depth system information at both the hardware and software levels
Documentation
#![cfg_attr(
    all(
        feature = "system",
        feature = "disk",
        feature = "component",
        feature = "gpu",
        feature = "network",
        feature = "user"
    ),
    doc = include_str!("../README.md")
)]
#![cfg_attr(
    not(all(
        feature = "system",
        feature = "disk",
        feature = "component",
        feature = "gpu",
        feature = "network",
        feature = "user"
    )),
    doc = "Crate-level documentation is rendered when all features are enabled."
)]
#![cfg_attr(
    feature = "serde",
    doc = "Enabling `serde` makes public types serializable."
)]
#![allow(unknown_lints)]
#![deny(missing_docs)]
#![deny(rustdoc::broken_intra_doc_links)]
#![allow(clippy::upper_case_acronyms)]
#![allow(clippy::non_send_fields_in_send_ty)]
#![allow(renamed_and_removed_lints)]
#![allow(clippy::assertions_on_constants)]

#[macro_use]
mod support;

mod platform;
#[allow(unused_imports)]
use crate::platform::sys;

/// Hardware components and their sensors.
#[cfg(feature = "component")]
pub mod component;
/// Disks and their usage statistics.
#[cfg(feature = "disk")]
pub mod disk;
/// GPUs and PCI device information.
#[cfg(feature = "gpu")]
pub mod gpu;
/// Hardware inventory: firmware, PCI, USB, power, sensors, displays and storage.
#[cfg(feature = "hardware")]
pub mod hardware;
/// Network interfaces and their addresses.
#[cfg(feature = "network")]
pub mod network;
/// System, CPU, memory, process, motherboard and product information.
#[cfg(feature = "system")]
pub mod system;
/// Users and groups.
#[cfg(feature = "user")]
pub mod user;

/// Types shared by more than one domain.
pub mod common;
/// Convenience re-exports of the most commonly used types.
pub mod prelude;

mod internal;
#[allow(unused_imports)]
pub(crate) use internal::reexports::*;

#[cfg(all(feature = "fuzzing", target_os = "linux"))]
#[doc(hidden)]
pub use internal::fuzzing;

pub use crate::support::error::Error;

// Included so rustfmt can format modules that are compiled out on some targets.
#[cfg(any())]
mod network;
#[cfg(any())]
mod platform;