1pub static METADATA_ROUTINE: &str = "meta";
3pub static PROPERTIES_ROUTINE: &str = "properties";
5pub static INSTALL_ROUTINE: &str = "install";
7pub static UNINSTALL_ROUTINE: &str = "uninstall";
9
10pub static RESERVED_ROUTINES: [&str; 4] = [
12 METADATA_ROUTINE,
13 PROPERTIES_ROUTINE,
14 INSTALL_ROUTINE,
15 UNINSTALL_ROUTINE,
16];
17
18pub fn is_reserved(routine: &str) -> bool {
20 RESERVED_ROUTINES.contains(&routine)
21}
22
23pub fn can_call_routines(routine: &str) -> bool {
25 routine != METADATA_ROUTINE && routine != PROPERTIES_ROUTINE
26}