devela::_dep::sysinfo

Constant IS_SUPPORTED_SYSTEM

pub const IS_SUPPORTED_SYSTEM: bool = true;
Available on crate feature dep_sysinfo only.
Expand description

Returns true if this OS is supported. Please refer to the crate-level documentation to get the list of supported OSes.

if sysinfo::IS_SUPPORTED_SYSTEM {
    println!("This OS is supported!");
} else {
    println!("This OS isn't supported (yet?).");
}