pub fn validate_module_name(name: &[u8]) -> Result<&str, &'static str>
Names shared by the ESP producer, loader and initfs consumer: 1..=63 ASCII letters/digits, ‘.’, ‘_’ or ‘-’. Reject path components and FAT-ambiguous dots.