browserinfocm 0.1.4

dioxus component that provides browser and hardware information
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// build.rs

fn main() {
    #[cfg(feature = "debian_build")]
    {
        use rust_version_info_file::rust_version_info_file;
        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!("{dir}/rust-version-info.txt")
        };
        rust_version_info_file(path.as_str(), "Cargo.toml");
    }
}