steel_utils/registry.rs
1use crate::Identifier;
2
3/// Creates a vanilla or a new custom tag for the generator build scripts
4#[must_use]
5pub fn registry_vanilla_or_custom_tag(key: &'static str) -> Identifier {
6 if let Some(key) = key.strip_prefix("c:") {
7 Identifier::new_static("c", key)
8 } else {
9 Identifier::vanilla_static(key)
10 }
11}