use super::*;
#[derive(Clone, Debug, Deserialize, Eq, Getter, New, PartialEq, Serialize)]
pub struct TargetSpec {
pub(crate) name: String,
pub(crate) rust_triple: String,
pub(crate) system_api: String,
pub(crate) artifact: String,
pub(crate) platform_kind: String,
pub(crate) preferred_gpu: String,
}
#[derive(Clone, Debug, Deserialize, Eq, Getter, New, PartialEq, Serialize)]
pub struct BuildStep {
pub(crate) description: String,
pub(crate) program: String,
pub(crate) args: Vec<String>,
}
#[derive(Clone, Debug, Deserialize, Eq, Getter, New, PartialEq, Serialize)]
pub struct BuildPlan {
pub(crate) target: TargetSpec,
pub(crate) render_mode: String,
#[get(type(copy))]
pub(crate) release: bool,
pub(crate) steps: Vec<BuildStep>,
}
#[derive(Clone, Debug, Deserialize, Eq, Getter, New, PartialEq, Serialize)]
pub struct TargetCapability {
pub(crate) target: String,
pub(crate) triple: String,
pub(crate) category: String,
#[get(type(copy))]
pub(crate) host_supported: bool,
#[get(type(copy))]
pub(crate) ready: bool,
pub(crate) missing_tools: Vec<String>,
pub(crate) install_hints: Vec<String>,
}
#[derive(Clone, Debug, Deserialize, Eq, Getter, New, PartialEq, Serialize)]
pub struct HostCapabilityProbe {
pub(crate) host_os: String,
pub(crate) host_arch: String,
pub(crate) installed_triples: Vec<String>,
pub(crate) available_tools: BTreeMap<String, String>,
pub(crate) env_sdks: BTreeMap<String, String>,
}