x_core/
core_config.rs

1// Copyright (c) The Diem Core Contributors
2// SPDX-License-Identifier: Apache-2.0
3
4use hakari::summaries::HakariBuilderSummary;
5use serde::{Deserialize, Serialize};
6use std::collections::BTreeMap;
7
8/// Core configuration for x.
9#[derive(Clone, Serialize, Deserialize, Debug, PartialEq, Eq)]
10#[serde(rename_all = "kebab-case")]
11pub struct XCoreConfig {
12    /// Subsets of this workspace
13    pub subsets: BTreeMap<String, SubsetConfig>,
14
15    /// Config for Hakari (workspace-hack management).
16    pub hakari: HakariBuilderSummary,
17}
18
19#[derive(Clone, Serialize, Deserialize, Debug, PartialEq, Eq)]
20#[serde(rename_all = "kebab-case")]
21pub struct SubsetConfig {
22    /// The root members in this subset
23    pub root_members: Vec<String>,
24}