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§
- Platform
Info - Resolved platform description used to choose an update package format.
Enums§
- Package
Format - OS-native package format for update delivery.
Functions§
- detect_
platform - Detect the current compile-target platform and preferred package format.