Skip to content

Commit dd9acbf

Browse files
feat: flatten the walltime options in the yaml
1 parent 9b81071 commit dd9acbf

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/project_config/interfaces.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,23 @@ pub struct Target {
2727
}
2828

2929
#[derive(Debug, Deserialize, Serialize, PartialEq)]
30+
#[serde(rename_all = "kebab-case")]
3031
pub struct TargetOptions {
32+
#[serde(flatten)]
3133
pub walltime: Option<WalltimeOptions>,
3234
}
3335

3436
/// Root-level options that apply to all benchmark runs unless overridden by CLI
3537
#[derive(Debug, Deserialize, Serialize, PartialEq)]
3638
#[serde(rename_all = "kebab-case")]
3739
pub struct ProjectOptions {
38-
/// Walltime execution configuration
39-
pub walltime: Option<WalltimeOptions>,
4040
/// Working directory where commands will be executed (relative to config file)
4141
pub working_directory: Option<String>,
4242
/// Runner mode (walltime, memory, or simulation)
4343
pub mode: Option<RunnerMode>,
44+
/// Walltime execution configuration (flattened)
45+
#[serde(flatten)]
46+
pub walltime: Option<WalltimeOptions>,
4447
}
4548

4649
/// Walltime execution options matching WalltimeExecutionArgs structure

0 commit comments

Comments
 (0)