Skip to content

Commit 744c844

Browse files
committed
compile_codegen: serde flatten
1 parent 6a518ac commit 744c844

File tree

1 file changed

+3
-0
lines changed
  • crates/spirv-builder/src

1 file changed

+3
-0
lines changed

crates/spirv-builder/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ pub struct SpirvBuilder {
369369
pub target: Option<String>,
370370
/// Cargo features specification for building the shader crate.
371371
#[cfg_attr(feature = "clap", clap(flatten))]
372+
#[serde(flatten)]
372373
pub shader_crate_features: ShaderCrateFeatures,
373374
/// Deny any warnings, as they may never be printed when building within a build script. Defaults to false.
374375
#[cfg_attr(feature = "clap", arg(long, default_value = "false"))]
@@ -416,10 +417,12 @@ pub struct SpirvBuilder {
416417

417418
/// spirv-val flags
418419
#[cfg_attr(feature = "clap", clap(flatten))]
420+
#[serde(flatten)]
419421
pub validator: ValidatorOptions,
420422

421423
/// spirv-opt flags
422424
#[cfg_attr(feature = "clap", clap(flatten))]
425+
#[serde(flatten)]
423426
pub optimizer: OptimizerOptions,
424427
}
425428

0 commit comments

Comments
 (0)