Skip to content

Commit

Permalink
Remove the big static atom list. Fix #22
Browse files Browse the repository at this point in the history
It’s going into various atom types in html5ever and Servo.
  • Loading branch information
SimonSapin committed Oct 27, 2016
1 parent a9efc44 commit c1383b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1,298 deletions.
7 changes: 3 additions & 4 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
extern crate string_cache_codegen;

#[path = "src/static_atom_list.rs"]
mod static_atom_list;

use std::env;
use std::path::Path;

fn main() {
string_cache_codegen::AtomType::new("atom::tests::TestAtom", "test_atom!")
.atoms(static_atom_list::ATOMS)
.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()
}
Loading

0 comments on commit c1383b3

Please sign in to comment.