Skip to main content

parse_transitional

Function parse_transitional 

Source
pub fn parse_transitional(
    input: KconfigInput<'_>,
) -> IResult<KconfigInput<'_>, ()>
Expand description

A transitional symbol meansit should be processed during configuration but omitted from newly written .config files. Transitional symbols are useful for backward compatibility during config option migrations - they allow olddefconfig to process existing .config files while ensuring the old option doesn’t appear in new configurations.

§Example

use nom_kconfig::{assert_parsing_eq, attribute::transitional::parse_transitional};

assert_parsing_eq!(parse_transitional, "transitional", Ok(("", ())))