pub static METADATA_ROUTINE: &str = "meta";
pub static PROPERTIES_ROUTINE: &str = "properties";
pub static INSTALL_ROUTINE: &str = "install";
pub static UNINSTALL_ROUTINE: &str = "uninstall";
pub static RESERVED_ROUTINES: [&str; 4] = [
METADATA_ROUTINE,
PROPERTIES_ROUTINE,
INSTALL_ROUTINE,
UNINSTALL_ROUTINE,
];
pub fn is_reserved(routine: &str) -> bool {
RESERVED_ROUTINES.contains(&routine)
}
pub fn can_call_routines(routine: &str) -> bool {
routine != METADATA_ROUTINE && routine != PROPERTIES_ROUTINE
}