Skip to main content

Module env

Module env 

Source
Expand description

Environment variable helpers shared by sync services.

Functions§

bool_or
Read a boolean variable (“true” or “1”), falling back to a default when unset.
parse_or
Parse a variable into any FromStr type, falling back on unset or unparseable values.
require
Read a required variable, with a readable error naming the missing key.
string_or
Read a string variable, falling back to a default when unset.