hiqlite_macros/lib.rs
1// Copyright 2025 Sebastian Dobe <sebastiandobe@mailbox.org>
2
3pub mod embed {
4 pub use rust_embed::{self, *};
5}
6
7/// Helper macro to created Owned Params which can be serialized and sent
8/// over the Raft network between nodes.
9#[macro_export]
10macro_rules! params {
11 ( $( $param:expr ),* ) => {
12 {
13 #[allow(unused_mut)]
14 let mut params = Vec::with_capacity(2);
15 $(
16 params.push(hiqlite::Param::from($param));
17 )*
18 params
19 }
20 };
21}