W3cubDocs

/Rust

Constant std::env::consts::OS

pub const OS: &'static str = os::OS

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

Some possible values:

  • linux
  • macos
  • ios
  • freebsd
  • dragonfly
  • bitrig
  • 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