ferrovue 0.9.0

Vue templates compiled to Rust render functions: server-side rendering with no JavaScript at run time
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// The version check a generated `mod.rs` opens with: `ferrovue::__compat!(3);` names the version
/// of generated code its compiler writes, and stops the build with what to do when this crate does
/// not support that version.
#[doc(hidden)]
#[macro_export]
macro_rules! __compat {
    (2) => {};
    (3) => {};
    ($version:literal) => {
        ::core::compile_error!(::core::concat!(
            "this module was generated as version ",
            ::core::stringify!($version),
            " of ferrovue's generated code, and this `ferrovue` crate supports versions 2 to 3: ",
            "use the `ferrovue` npm package and the `ferrovue` crate of one release, and run ",
            "`ferrovue` to generate the module again"
        ));
    };
}