Module cnf::env

source ·
Expand description

Convenient and typo-safe environment variable handling.

This module serves multiple purposes. First, it attempts to make environment-variable handling typo-safe, by leveraging the type system and an enum-type of valid variables to catch typos at compile time. Second, due to the use of one central enum defining all env variables, editors can suggest valid environment variables in e.g. tab completions. Third, users wondering which environment variables are supported can simply glance into the source code in one central location to see the raw values.

Enums§

  • Application-wide environment variables.