Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Oct 17, 2024
1 parent a4363ff commit a52c83f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ use rustc_hash::FxHashSet as HashSet;
fn main() {
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rerun-if-changed=src/load.rs");
println!("cargo:rerun-if-changed=src/rollhash.rs");
println!("cargo:rerun-if-changed=src/odht.rs");

let out_dir = env::var("OUT_DIR").unwrap();
let mut file = File::create(&Path::new(&out_dir).join("static.rs")).unwrap();
let mut file = File::create(&Path::new(&out_dir).join("odht_gen.rs")).unwrap();
writeln!(file, "pub mod data {{").unwrap();

generate("r50k_base",
Expand Down
2 changes: 1 addition & 1 deletion src/encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::corebpe::Rank;
use std::sync::Arc;

include!("odht.rs");
include!(concat!(env!("OUT_DIR"), "/static.rs"));
include!(concat!(env!("OUT_DIR"), "/odht_gen.rs"));

/// A struct that represents an encoding scheme based on byte-pair encoding (BPE).
#[derive(Debug)]
Expand Down

0 comments on commit a52c83f

Please sign in to comment.