1 2 3 4 5 6 7 8 9 10
use jomini::binary::TokenResolver; /// Builtin token resolver based on `IMPERATOR_TOKENS` pub struct EnvTokens; impl TokenResolver for EnvTokens { fn resolve(&self, token: u16) -> Option<&str> { include!(concat!(env!("OUT_DIR"), "/gen_tokens.rs")) } }