extern crate string_cache_codegen; #[path = "src/static_atom_list.rs"] mod static_atom_list; // use std::env; // unused? use std::fs::File; use std::io::BufWriter; use std::path::Path; fn main() { let path = Path::new(&std::env::var("OUT_DIR").unwrap()).join("static_atoms.rs"); let mut file = BufWriter::new(File::create(&path).unwrap()); let mut builder = string_cache_codegen::AtomType::new("IString", "is!"); for atom in static_atom_list::ATOMS { builder.atom(atom); } builder.write_to(&mut file).unwrap(); }