1 use regex::Regex; 2 use std::sync::LazyLock; 3 4 /// A regex that matches numbers that start with "1". 5 static REGEX: LazyLock<Regex> = LazyLock::new(|| Regex::new(r"^1\d*$").unwrap()); 6 7 #[unsafe(export_name = "wizer-initialize")] init()8pub fn init() { 9 LazyLock::force(®EX); 10 } 11 12 #[unsafe(no_mangle)] run(n: i32) -> i3213pub fn run(n: i32) -> i32 { 14 let s = format!("{n}"); 15 if REGEX.is_match(&s) { 42 } else { 0 } 16 } 17