fluence_spell_distro/
lib.rs

1pub const SPELL_WASM: &'static [u8] = include_bytes!("../spell-service/spell.wasm");
2pub const SQLITE_WASM: &'static [u8] = include_bytes!("../spell-service/sqlite3.wasm");
3pub const CONFIG: &'static [u8] = include_bytes!("../spell-service/Config.toml");
4
5pub mod build_info {
6    include!(concat!(env!("OUT_DIR"), "/built.rs"));
7}
8
9pub use build_info::PKG_VERSION as VERSION;
10
11/// Collection of modules required to build the spell service
12/// TODO: make it ordered :facepalm:
13pub fn modules() -> std::collections::HashMap<&'static str, &'static [u8]> {
14    maplit::hashmap! {
15        "spell" => SPELL_WASM,
16        "sqlite3" => SQLITE_WASM
17    }
18}