mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
7160366b8c
MozReview-Commit-ID: Grf1bKIx2iT --HG-- extra : rebase_source : 8013a66263a3a014944b0815ff9bc7d8ac0ad9a3
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()
|
|
}
|