#[non_exhaustive]pub enum Backend {
Scalar,
Avx512Vbmi,
Avx2,
Ssse3Sse41,
Neon,
WasmSimd128,
Rvv,
Sve,
}Expand description
A backend that can be reported by base64-ng.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Scalar
The audited scalar backend.
Avx512Vbmi
An AVX-512 VBMI candidate was detected.
Avx2
An AVX2 candidate was detected.
Ssse3Sse41
An SSSE3/SSE4.1 candidate was detected.
Neon
An ARM NEON candidate was detected.
WasmSimd128
A wasm simd128 candidate was detected.
Rvv
RVV 1.0 was detected.
Production execution is restricted to the measured Linux SpacemiT X60
profile; broader project-owned builds report RVV only as a candidate.
Sve
An AArch64 SVE candidate was detected.
The 2.0 development branch reports this only from the internal project-owned candidate build. Production dispatch remains on admitted NEON or scalar until native-hardware admission evidence is accepted.
Implementations§
Source§impl Backend
impl Backend
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
Returns the stable lowercase identifier for this backend.
assert_eq!(base64_ng::runtime::Backend::Scalar.as_str(), "scalar");Sourcepub const fn required_cpu_features(self) -> &'static [&'static str]
pub const fn required_cpu_features(self) -> &'static [&'static str]
Returns the CPU features required before this backend may be used.
Security logs can record exactly which CPU feature bundle is required by an active backend or visible candidate.
assert_eq!(
base64_ng::runtime::Backend::Avx512Vbmi.required_cpu_features(),
["avx512f", "avx512bw", "avx512vl", "avx512vbmi"],
);