fighting_daisy 0.2.0

Library for fighting daisies
Documentation
1
2
3
4
5
6
7
8
9
use include_directory::{Dir, File, include_directory};
use std::path::Path;

static PROJECT_DIR: Dir<'_> = include_directory!("assets");

pub fn read_any_file(name: &str) -> Option<&File<'_>> {
    let path = Path::new(name);
    PROJECT_DIR.get_file(path)
}