Skip to content

Commit

Permalink
add all assets to the binary
Browse files Browse the repository at this point in the history
  • Loading branch information
lquenti committed Mar 1, 2024
1 parent f2269ef commit 2aa9789
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions blackheap/src/assets/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@ use lazy_static::lazy_static;

pub mod progress;

const JUPYTER_NOTEBOOK: &[u8; 7528] = include_bytes!("../../assets/AnalysisTool.ipynb");
const BUILD_MODELS: &[u8; 16151] = include_bytes!("../../assets/build_models.py");
const GITIGNORE: &[u8; 3079] = include_bytes!("../../assets/.gitignore");
const README: &[u8; 27] = include_bytes!("../../assets/README.md");
const JUPYTER_NOTEBOOK: &[u8; 12] = include_bytes!("../../assets/AnalysisTool.ipynb");
const REQUIREMENTS: &[u8; 47] = include_bytes!("../../assets/requirements.txt");

lazy_static! {
static ref FILES: HashMap<String, &'static [u8]> = {
let mut map = HashMap::new();
map.insert(String::from("README.md"), &README[..]);
map.insert(String::from("AnalysisTool.ipynb"), &JUPYTER_NOTEBOOK[..]);
map.insert(String::from("build_models.py"), &BUILD_MODELS[..]);
map.insert(String::from(".gitignore"), &GITIGNORE[..]);
map.insert(String::from("README.md"), &README[..]);
map.insert(String::from("requirements.txt"), &REQUIREMENTS[..]);
map
};
}
Expand Down

0 comments on commit 2aa9789

Please sign in to comment.