anda 0.4.10

Andaman Build toolchain
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::collections::BTreeMap;

use crate::cli::PackageType;

#[derive(Clone)]
pub struct Artifacts {
    pub packages: BTreeMap<String, PackageType>,
}

impl Artifacts {
    pub const fn new() -> Self {
        Self { packages: BTreeMap::new() }
    }
    pub fn add(&mut self, name: String, package_type: PackageType) {
        self.packages.insert(name, package_type);
    }
}