Skip to content

Commit c1383b3

Browse files
committed
Remove the big static atom list. Fix #22
It’s going into various atom types in html5ever and Servo.
1 parent a9efc44 commit c1383b3

File tree

2 files changed

+3
-1298
lines changed

2 files changed

+3
-1298
lines changed

build.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
extern crate string_cache_codegen;
22

3-
#[path = "src/static_atom_list.rs"]
4-
mod static_atom_list;
5-
63
use std::env;
74
use std::path::Path;
85

96
fn main() {
107
string_cache_codegen::AtomType::new("atom::tests::TestAtom", "test_atom!")
11-
.atoms(static_atom_list::ATOMS)
8+
.atoms(&[
9+
"a", "b", "address", "area", "body", "font-weight", "br","html", "head", "id",
10+
])
1211
.write_to_file(&Path::new(&env::var("OUT_DIR").unwrap()).join("test_atom.rs"))
1312
.unwrap()
1413
}

0 commit comments

Comments
 (0)