2023-10-14 22:39:39 +02:00
|
|
|
use std::collections::HashMap;
|
|
|
|
|
2023-10-14 22:39:39 +02:00
|
|
|
use serde::{Deserialize, Serialize};
|
2023-10-14 22:39:39 +02:00
|
|
|
|
2023-10-14 22:39:43 +02:00
|
|
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
2023-10-14 22:39:39 +02:00
|
|
|
pub struct Build {
|
2023-10-14 22:39:44 +02:00
|
|
|
pub build_script: String,
|
|
|
|
pub install_script: String,
|
|
|
|
pub dependencies: HashMap<String, String>,
|
2023-10-14 22:39:41 +02:00
|
|
|
}
|
2023-10-14 22:39:50 +02:00
|
|
|
|
|
|
|
impl Default for Build {
|
|
|
|
fn default() -> Self {
|
|
|
|
Build {
|
|
|
|
dependencies: HashMap::default(),
|
|
|
|
build_script: String::default(),
|
|
|
|
install_script: String::default()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|