rate-config 0.41.0

Utils for configuration files.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use once_cell::sync::OnceCell;

pub static PRESERVED: OnceCell<Vec<u8>> = OnceCell::new();

#[macro_export]
macro_rules! embed_config {
    () => {
        let value = include_bytes!(env!("RR_CONFIG"));
        $crate::preserved::PRESERVED.set(value.to_vec());
    };
}