W3cubDocs

/Rust

Constant std::env::consts::OS

pub const OS: &str

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

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/env/consts/constant.OS.html