Crate host_discovery
source ·Functions§
- Returns the CPU core count via
/proc/cpuinfo - Returns the CPU model name via
/proc/cpuinfo - Returns the architecture of the host operating system; matches against
std::env::consts::ARCH - Returns the NAME of the Linux distribution via
/etc/os-release - Returns the VERSION_ID of the Linux distribution via
/etc/os-release - Returns the name of the host operating system; matches against
std::env::consts::OS - Checks if the linux environment is a Windows subsystem