Make fields public for other tools

This commit is contained in:
xavo95 2024-10-06 19:00:21 +02:00
parent fbcf3c960e
commit d6d0e63dd0
Signed by: xavo95
GPG key ID: CBF8ADED6DEBB783

View file

@ -84,20 +84,20 @@ fn yes() -> bool {
#[derive(Serialize, Deserialize, Debug, Default)] #[derive(Serialize, Deserialize, Debug, Default)]
pub struct Environment { pub struct Environment {
vars: Option<Vec<String>>, pub vars: Option<Vec<String>>,
#[serde(default = "yes")] #[serde(default = "yes")]
use_system_env: bool, pub use_system_env: bool,
#[serde(default)] #[serde(default)]
environment_append: bool, pub environment_append: bool,
} }
#[derive(Serialize, Deserialize, Debug)] #[derive(Serialize, Deserialize, Debug)]
pub struct Launcher { pub struct Launcher {
executable_file: String, pub executable_file: String,
cmd_line_args: Option<String>, pub cmd_line_args: Option<String>,
current_dir: Option<String>, pub current_dir: Option<String>,
#[serde(default)] #[serde(default)]
dll_list: Vec<String>, pub dll_list: Vec<String>,
} }
fn absolute_path(cwd: &Path, path: impl AsRef<Path>) -> PathBuf { fn absolute_path(cwd: &Path, path: impl AsRef<Path>) -> PathBuf {