1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use std::collections::HashMap;

use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize)]
pub struct Config {
    pub package: Package,
    pub profile: HashMap<String, Profile>,
}

#[derive(Debug, Serialize, Deserialize, Default)]
pub struct Package {
    pub name: String,
    pub version: String,
    pub license: String,
}

#[derive(Debug, Serialize, Deserialize, Default)]
pub struct Profile {
    pub release: bool,
    pub opt_level: u8,
    pub debug_info: bool,
}