-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.rs
54 lines (53 loc) · 1.29 KB
/
build.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
use std::env;
use std::path::Path;
fn main() {
println!("cargo:rerun-if-changed=build.rs");
string_cache_codegen::AtomType::new("atom::Atom", "atom!")
.with_atom_doc("Interned symbols in EDIF AST.")
.atoms(vec![
"array",
"boolean",
"cell",
"cellref",
"celltype",
"comment",
"contents",
"design",
"direction",
"edif",
"edifLevel",
"edifLevel",
"edifversion",
"false",
"hdi_primitives",
"INOUT",
"INPUT",
"instance",
"instanceref",
"integer",
"interface",
"joined",
"keywordmap",
"Library",
"libraryref",
"main",
"member",
"net",
"NETLIST",
"OUTPUT",
"port",
"portref",
"property",
"rename",
"status",
"string",
"technology",
"true",
"view",
"viewref",
"viewtype",
"work",
])
.write_to_file(&Path::new(&env::var("OUT_DIR").unwrap()).join("edif_atom.rs"))
.unwrap()
}