[][src]Crate easyenv

Very simple helper functions for environment variables and environment variable-driven env_logger configuration.

Enums

EnvError

Errors with env variables.

Constants

ENV_RUST_LOG

Name of the environment variable Rust's env logger uses

Functions

get_env_num

Get an environment variable as a number, or fall back to the provided default if not set. If the env var is present but can't be parsed, an error is returned instead.

get_env_string

Get an environment variable as a String, or fall back to the provided default.

init_env_logger

Initialize Rust's env logger.