Skip to main content

Crate rok_config_macros

Crate rok_config_macros 

Source
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::FromEnv for 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::Configurable for a struct, combining environment-variable loading (like #[derive(Config)]) with a config-key prefix for file-based discovery.