Constant std::env::consts::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