autocomplete fully works now

This commit is contained in:
Simon Gardling
2022-03-31 09:46:01 -04:00
parent e44823713b
commit 68b4eb9454
6 changed files with 110 additions and 33 deletions

View File

@@ -5,6 +5,9 @@ use std::fs::File;
use std::io::{BufWriter, Write};
use std::path::Path;
/// Should build.rs generate the autocomplete hashmap to codegen.rs?
const DO_HASHMAP_GEN: bool = false;
fn main() {
// rebuild if new commit or contents of `assets` folder changed
println!("cargo:rerun-if-changed=.git/logs/HEAD");
@@ -15,7 +18,9 @@ fn main() {
.run();
shadow_rs::new().unwrap();
// generate_hashmap();
if DO_HASHMAP_GEN {
generate_hashmap();
}
}
fn generate_hashmap() {