std::env::consts

Constant OS

1.0.0 ยท source
pub const OS: &str;
Expand description

A string describing the specific operating system in use. Example value is linux.

Some possible values:

  • linux
  • macos
  • ios
  • freebsd
  • dragonfly
  • netbsd
  • openbsd
  • solaris
  • android
  • windows