Skip to main content

Module cpu

Module cpu 

Source
Expand description

CPU support.

Every operation panics on a CPU missing a feature rind requires. Check at startup to refuse cleanly instead:

if let Err(missing) = rind::cpu::check() {
    eprintln!("{missing}");
    std::process::exit(1);
}

Structs§

MissingFeature
A CPU feature rind requires that this CPU lacks.

Functions§

check
Checks that this CPU has every feature rind requires, naming the first one missing.
has_aes_hardware
Reports whether rind runs AES on CPU instructions, as aws-lc’s EVP_has_aes_hardware does.