mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-14 18:09:22 +00:00
14 lines
391 B
Rust
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()
|
|
}
|