#[macro_export]
#[doc(hidden)]
macro_rules! MAPPINGS_FILE_NAME {
() => {
"css_mod_mappings.rs"
};
}
#[allow(clippy::needless_doctest_main)]
#[macro_export]
macro_rules! init {
() => {{
let mappings = include!(concat!(
env!(
"OUT_DIR",
"OUT_DIR environment variable was not found. \
Help: setup css_mod::Compiler in build.rs"
),
"/",
::css_mod::MAPPINGS_FILE_NAME!()
));
::css_mod::MAPPINGS.set(mappings).expect(
"Mappings were already initialized before. \
Help: call css_mod::init!() once early (eg. in main.rs)",
);
}};
}
#[macro_export]
macro_rules! get {
($file_path:expr) => {{
::css_mod::get_mapping(file!(), $file_path)
}};
}