diff --git a/src/util/config.rs b/src/util/config.rs index c47742b..1aa5457 100644 --- a/src/util/config.rs +++ b/src/util/config.rs @@ -5,39 +5,39 @@ use serde_yaml::{self}; #[derive(Debug, Deserialize)] pub struct Config { - pub tested_executables: Vec, + tested_executables: Vec, - pub input_path: PathBuf, - pub output_path: PathBuf, - pub in_stream_path: PathBuf, + input_path: PathBuf, + output_path: PathBuf, + in_stream_path: PathBuf, - pub runtimes: Option>, + runtimes: Option>, - pub toolchains: Vec, + toolchains: Vec, } #[derive(Debug, Deserialize)] pub struct Team { - pub name: String, - pub executable: PathBuf, + name: String, + executable: PathBuf, } #[derive(Debug, Deserialize)] pub struct Toolchain { - pub name: String, - pub steps: Vec,} + name: String, + steps: Vec,} #[derive(Debug, Deserialize)] pub struct Step { - pub name: String, + name: String, - pub executable_path: Option, // if None then we use the current executable path - pub arguments: Vec, // special string $INPUT corresponds to previous step output - pub output: String, // the output file name + executable_path: Option, // if None then we use the current executable path + arguments: Vec, // special string $INPUT corresponds to previous step output + output: String, // the output file name - pub uses_runtime: Option, - pub uses_in_stream: Option, - pub allow_error: Option + uses_runtime: Option, + uses_in_stream: Option, + allow_error: Option } pub fn parse_config(path: PathBuf) -> Config {