Skip to main content

Module PlatformDetect

Module PlatformDetect 

Source
Expand description

Compile-time platform/architecture detection for update packaging.

detect_platform() returns a PlatformInfo describing the current OS, CPU architecture, and the appropriate package format for update binaries. All values are resolved with cfg! at compile time so there is no runtime overhead and the logic is testable per target triple.

Structs§

PlatformInfo
Resolved platform description used to choose an update package format.

Enums§

PackageFormat
OS-native package format for update delivery.

Functions§

detect_platform
Detect the current compile-target platform and preferred package format.