rustc/vendor/string_cache/build.rs
2018-12-16 10:13:16 -08:00

14 lines
391 B
Rust

extern crate string_cache_codegen;
use std::env;
use std::path::Path;
fn main() {
string_cache_codegen::AtomType::new("atom::tests::TestAtom", "test_atom!")
.atoms(&[
"a", "b", "address", "area", "body", "font-weight", "br", "html", "head", "id",
])
.write_to_file(&Path::new(&env::var("OUT_DIR").unwrap()).join("test_atom.rs"))
.unwrap()
}