1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Utiles configuration
use serde::{Deserialize, Serialize};
#[derive(Debug, Deserialize, Serialize)]
pub(crate) struct LintConfig {
pub include: Vec<String>,
pub exclude: Vec<String>,
pub rules: Vec<String>,
}
#[allow(dead_code)]
#[derive(Debug, Deserialize, Serialize)]
pub(crate) struct UtilesConfig {
pub lint: LintConfig,
// TODO: server/log config
// pub log: LagerConfig,
// pub serve : ServeConfig,
}
// #[derive(Debug, Deserialize, Serialize)]
// pub struct ServeConfig {
// pub host: String,
// pub port: u16,
// }
//
// #[derive(Debug, Deserialize, Serialize)]
// pub struct LagerConfig {
// pub level: String,
// pub json: bool,
// }
// impl Default for LagerConfig {
// fn default() -> Self {
// Self {
// level: "info".to_string(),
// json: false,
// }
// }
// }