Refs #50
File: crates/charon-core/src/config.rs (MetricsConfig)
Problem
MetricsConfig struct in config.rs does not have #[serde(deny_unknown_fields)]. Project convention from PR #29 (issue #81) is deny_unknown_fields on every config struct so typos surface as parse errors instead of silent defaults.
Fix
#[derive(Debug, Clone, Deserialize)]
#[serde(deny_unknown_fields)]
#[non_exhaustive]
pub struct MetricsConfig {
#[serde(default = "default_metrics_enabled")]
pub enabled: bool,
#[serde(default = "default_metrics_bind")]
pub bind: String,
}
Add #[non_exhaustive] in same change.
Refs #50
File: crates/charon-core/src/config.rs (MetricsConfig)
Problem
MetricsConfig struct in config.rs does not have #[serde(deny_unknown_fields)]. Project convention from PR #29 (issue #81) is deny_unknown_fields on every config struct so typos surface as parse errors instead of silent defaults.
Fix
Add #[non_exhaustive] in same change.