system-memory 0.1.0

A small crate to get info/stats on the host's memory
1
2
3
4
5
6
7
8
9
10
//! Build script to store a CFG flag when we're on nightly so that we can show feature gates on docs.rs.

use rustc_version::{version_meta, Channel};

fn main() {
    println!("cargo::rustc-check-cfg=cfg(CHANNEL_NIGHTLY)");
    if version_meta().unwrap().channel == Channel::Nightly {
        println!("cargo:rustc-cfg=CHANNEL_NIGHTLY");
    }
}