Expand description
Proc-macro internals for rok-core::config.
Do not use this crate directly — import rok-core with features = ["config"] instead.
Derive Macros§
- Config
- Derive
rok_config::FromEnvfor a struct, reading each field from an environment variable declared with#[env("VAR_NAME")]or#[env("VAR_NAME", default = value)]. - RokConfig
- Derive
rok_core::config::Configurablefor a struct, combining environment-variable loading (like#[derive(Config)]) with a config-key prefix for file-based discovery.