Skip to main content

report_deprecation

Function report_deprecation 

Source
pub fn report_deprecation(
    stderr: &mut dyn Write,
    version: ConfigVersion,
    allow_deprecated: bool,
) -> Result<()>
Expand description

Port of config.reportDeprecation: enforces the deprecation policy for a well-formed config – a supported but non-latest version is deprecated and rejected, with guidance written to stderr, unless allow_deprecated is set.