1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
mod common;
mod extension;
mod toolchain;

pub use common::*;
pub use extension::*;
pub use toolchain::*;
pub use warpgate_api::*;

/// Apply default attributes for configuration based structs.
/// Will assume that all keys are in camel case.
#[macro_export]
macro_rules! config_struct {
    ($struct:item) => {
        #[derive(Debug, serde::Deserialize)]
        #[serde(default, deny_unknown_fields, rename_all = "camelCase")]
        $struct
    };
}