kconfig-linux 0.1.1

WIP crate for the KConfig DSL in the Linux kernel
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::parser::constants::{HELP_DASHED_KEYWORD, HELP_DASHED_PLUS_ONE_KEYWORD, HELP_KEYWORD};

#[derive(Debug, Clone)]
pub struct KconfigHelpProperty {
    pub help_text: String,
}

impl KconfigHelpProperty {
    pub(crate) fn from_text(help_text: String) -> Self {
        Self { help_text }
    }
}

pub(crate) fn is_keyword_help_keyword(keyword: &str) -> bool {
    keyword == HELP_KEYWORD || keyword == HELP_DASHED_KEYWORD || keyword == HELP_DASHED_PLUS_ONE_KEYWORD
}