Skip to main content

Crate envro

Crate envro 

Source

Re-exports§

pub use coerce::Value;

Modules§

coerce
Parse env strings into Rust primitives (shared by validation and #[derive(Envro)]).

Structs§

Field
A composable field spec.
Schema
A collection of (key, Field) specs.
ValidationIssue
A single validation failure for one key (or list element).

Enums§

EnvroError

Traits§

EnvroConfig
Typed config loaded from env vars via #[derive(Envro)].

Functions§

expand_vars
Expand ${VAR} refs across a map, order-independent.
load_dotenv
load .env file into process.env var
load_dotenv_in_env_vars
Load vars from an env file into process environment variables.
load_dotenv_validated
Load a .env file and validate it in one step.
validate
Validate an arbitrary EnvroVars map against a schema.
validate_env
Validate the process environment against a schema.

Type Aliases§

EnvroVars

Derive Macros§

Envro