System Detection

Overview

Cross-platform detection for operating systems and architectures at runtime.

Quick Example

use lighty_core::{get_os, get_architecture};

fn main() {
    let os = get_os();
    let arch = get_architecture();

    println!("OS: {:?}, Arch: {:?}", os, arch);
    // Output: OS: Windows, Arch: X86_64
}

API Reference

get_os() -> OS

Returns the current operating system.

Returns:

get_architecture() -> Architecture

Returns the CPU architecture.

Returns:

Use Cases

Platform-Specific Downloads

Java Distribution Selection

See Also

Last updated