Expand description
Core configuration and attribute infrastructure for Hyperactor.
This crate provides the core infrastructure for type-safe configuration management including:
ConfigAttr: Metadata for configuration keys- Helper functions to load/save
Attrs(from env viafrom_env, from YAML viafrom_yaml, andto_yaml) - Global layered configuration store under
crate::global
Individual crates should declare their own config keys using declare_attrs!
and import ConfigAttr, CONFIG, and other infrastructure from this crate.
Re-exports§
Modules§
- attrs
- Attribute dictionary for type-safe, heterogeneous key-value storage with serde support.
- global
- Global layered configuration for Hyperactor.
Macros§
- declare_
attrs - Declares attribute keys using a lazy_static! style syntax.
- impl_
attrvalue - Macro to implement AttrValue for types that implement ToString and FromStr.
- paste
- submit
- Enter an element into the plugin registry corresponding to its type.
Structs§
- Config
Attr - Metadata describing how a configuration key is exposed across environments.
Statics§
- CONFIG
- This is a meta-attribute marking a configuration key.
Functions§
- from_
env - Load configuration from environment variables
- from_
yaml - Load configuration from a YAML file
- to_yaml
- Save configuration to a YAML file
Derive Macros§
- Attr
Value - Derive the [
hyperactor_config::attrs::AttrValue] trait for a struct or enum.