jsglue 0.1.0

A Rust framework for building frontends with JS/TS!
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[macro_export]
macro_rules! client {
    ($dir: expr) => {
        #[cfg(debug_assertions)]
        mod client {
            use $crate::include_dir::Dir;

            pub const CLIENT_DIR: Option<Dir<'static>> = None;
        }

        #[cfg(not(debug_assertions))]
        mod client {
            use $crate::include_dir::{self, include_dir, Dir};

            pub const CLIENT_DIR: Option<Dir<'static>> = Some(include_dir!($dir));
        }
    };
}