1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
use serde::Serialize; pub mod cli; pub mod content; pub mod http; pub mod test_lib; #[derive(Clone, Copy, Serialize)] pub struct ServerVersion(pub &'static str); #[derive(Clone, Serialize)] pub struct ServerInfo { pub version: ServerVersion, } #[macro_export] macro_rules! bug_message { () => { "You've encountered a bug in Operator! Please open an issue at <https://github.com/mkantor/operator/issues>." }; ($detail:expr$(,)?) => { concat!(bug_message!(), " ", $detail) }; }