Skip to main content

initialize

Function initialize 

Source
pub fn initialize()
Expand description

Run the startup self-test and detect the CPU: every program calls this (or initialize_multithreaded) once, before any other call of this crate, and a call before it panics. Under 0.2 ms, once per process (see the crate’s documentation); later calls return at once.

blake3_servil::initialize();
let hash = blake3_servil::hash(b"foo");