abi

platform

Platform detection and abstraction.

Source: src/services/platform/mod.zig

Availability: Always enabled


API

pub fn getPlatformInfo() PlatformInfo

fn source

Get current platform information at runtime

pub fn supportsThreading() bool

fn source

Check if current platform supports threading Returns false for freestanding and WASM targets

pub fn getCpuCount() usize

fn source

Get CPU count in a platform-safe manner Returns 1 on freestanding/WASM targets where std.Thread is unavailable

pub fn getDescription() []const u8

fn source

Get a human-readable platform description string

pub fn hasSimd() bool

fn source

Check if SIMD is available on the current platform

pub fn isAppleSilicon() bool

fn source

Check if the current platform is Apple Silicon (macOS/iOS ARM64)

pub fn isDesktop() bool

fn source

Check if the current platform is a desktop OS

pub fn isMobile() bool

fn source

Check if the current platform is mobile

pub fn isWasm() bool

fn source

Check if the current platform is WebAssembly


Generated automatically by zig build gendocs

Zig Skill

Use the $zig Codex skill for ABI Zig 0.16-dev syntax updates, modular build graph guidance, and targeted validation workflows.