Skip to main content

Crate cbh_config

Crate cbh_config 

Source
Expand description

Implementation crate for cargo-bench-history; do not depend on this directly.

The configuration loaded from .cargo/bench_history.toml: which project this is and where its benchmark history is stored. Carries the parsed [Config] model, the TOML [parse_config]/[load_config] entry points, the starter [default_template], the [ConfigError] type, and the command input resolution (locating the configuration file and repository, reading the storage/cache environment variables, and turning the parsed --local/--cache selections into concrete paths). Split out of the cargo-bench-history shell so this config parsing is cheap to mutation-test in isolation.

Every item is re-exported flat from the crate root, so consumers write cbh_config::Config rather than reaching into a submodule.