From eaca213f2610075bff8fa9434169363cefbd7734 Mon Sep 17 00:00:00 2001 From: Ayrton Chilibeck Date: Fri, 12 Jan 2024 23:09:55 -0700 Subject: [PATCH] Pub-ed the Config fields --- src/util/config.rs | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/util/config.rs b/src/util/config.rs index 1aa5457..c47742b 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 { - tested_executables: Vec, + pub tested_executables: Vec, - input_path: PathBuf, - output_path: PathBuf, - in_stream_path: PathBuf, + pub input_path: PathBuf, + pub output_path: PathBuf, + pub in_stream_path: PathBuf, - runtimes: Option>, + pub runtimes: Option>, - toolchains: Vec, + pub toolchains: Vec, } #[derive(Debug, Deserialize)] pub struct Team { - name: String, - executable: PathBuf, + pub name: String, + pub executable: PathBuf, } #[derive(Debug, Deserialize)] pub struct Toolchain { - name: String, - steps: Vec,} + pub name: String, + pub steps: Vec,} #[derive(Debug, Deserialize)] pub struct Step { - name: String, + pub name: String, - 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 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 - uses_runtime: Option, - uses_in_stream: Option, - allow_error: Option + pub uses_runtime: Option, + pub uses_in_stream: Option, + pub allow_error: Option } pub fn parse_config(path: PathBuf) -> Config {