Skip to main content

init

Function init 

Source
pub fn init()
Expand description

Standard process-wide initialization for sandogasa tools.

Call this once as the first statement of main() in every binary. It is the single place for cross-cutting startup work: anything added to this function is automatically picked up by every tool that calls it, so prefer extending init over scattering setup across mains.

Today it registers the rustls crypto provider that reqwest’s TLS support needs (see install_crypto_provider). Idempotent and cheap, so calling it from a tool that does no networking is harmless.