use camino::Utf8PathBuf;
use cargo_metadata::Edition;
use serde::{Deserialize, Serialize};
pub mod self_profile;
pub mod timings;
pub mod unit_graph;
#[derive(Clone, Debug, Serialize, Deserialize)]
#[serde(rename_all = "kebab-case")]
pub enum Mode {
Build,
RunCustomBuild,
}
#[derive(Clone, Debug, Serialize, Deserialize)]
#[serde(rename_all = "kebab-case")]
pub enum TargetKind {
Lib,
Bin,
Test,
Bench,
ExampleLib,
ExampleBin,
CustomBuild,
Rlib,
Dylib,
Cdylib,
Staticlib,
ProcMacro,
}
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Target {
pub kind: Vec<TargetKind>,
pub name: String,
pub src_path: Utf8PathBuf,
pub edition: Edition,
pub doc: bool,
pub doctest: bool,
pub test: bool,
}