File: is_supported.md

package info (click to toggle)
rust-sysinfo 0.30.13-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,468 kB
  • sloc: ansic: 148; makefile: 27
file content (10 lines) | stat: -rw-r--r-- 277 bytes parent folder | download | duplicates (27)
1
2
3
4
5
6
7
8
9
10
Returns `true` if this OS is supported. Please refer to the
[crate-level documentation](index.html) 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?).");
}
```