Skip to content

std/os

std/os exposes lightweight runtime info:

  • CPUCount() -> usize
  • Platform() -> str
  • Arch() -> str
  • OSName() -> str
  • Debug() -> bool
import "std/os"
fn main() {
println(os::Platform())
println(os::Arch())
}