ps-mem 0.2.9

The process memory size listing
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// build.rs
use rust_version_info_file::rust_version_info_file;

fn main() {
    //
    let path = {
        #[cfg(feature = "debian_build")]
        let dir = "target".to_string();
        #[cfg(not(feature = "debian_build"))]
        let dir = std::env::var("OUT_DIR").unwrap();
        //
        format!("{}/rust-version-info.txt", dir)
    };
    rust_version_info_file(path.as_str(), "Cargo.toml");
}