1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! CPU information.
//!
//! ## Platform-specific functions
//!
//! * Average system load fetching is available for *nix systems: [`os::unix::loadavg`]
//!
//! [`os::unix::loadavg`]: ./os/unix/fn.loadavg.html

#![doc(html_root_url = "https://docs.rs/heim-cpu/0.1.0-rc.1")]
#![deny(
    unused,
    unused_imports,
    unused_features,
    bare_trait_objects,
    future_incompatible,
    missing_debug_implementations,
    missing_docs,
    nonstandard_style,
    dead_code,
    deprecated,
    broken_intra_doc_links
)]
#![warn(
    trivial_casts,
    trivial_numeric_casts,
    unused_extern_crates,
    unused_import_braces,
    unused_results
)]
#![allow(clippy::missing_safety_doc)]
#![cfg_attr(docsrs, feature(doc_cfg))]

pub mod os;
mod sys;

mod count;
mod freq;
mod stats;
mod times;
mod usage;

pub use self::count::*;
pub use self::freq::*;
pub use self::stats::*;
pub use self::times::*;
pub use self::usage::*;