1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use std::sync::Once; static INIT: Once = Once::new(); static mut SIGNATURES: Vec<String> = Vec::new(); pub fn add_signature(sig: String) { unsafe { SIGNATURES.push(sig); } } pub fn get_signatures() -> String { unsafe { SIGNATURES.join(", ") } }