@@ -499,42 +499,25 @@ impl Display for TomlDebugInfo {
499
499
#[ derive( Deserialize , Serialize , Clone , Debug , Default , Eq , PartialEq ) ]
500
500
#[ serde( default , rename_all = "kebab-case" ) ]
501
501
pub struct TomlProfile {
502
- #[ serde( skip_serializing_if = "Option::is_none" ) ]
503
502
pub opt_level : Option < TomlOptLevel > ,
504
- #[ serde( skip_serializing_if = "Option::is_none" ) ]
505
503
pub lto : Option < StringOrBool > ,
506
- #[ serde( skip_serializing_if = "Option::is_none" ) ]
507
504
pub codegen_backend : Option < InternedString > ,
508
- #[ serde( skip_serializing_if = "Option::is_none" ) ]
509
505
pub codegen_units : Option < u32 > ,
510
- #[ serde( skip_serializing_if = "Option::is_none" ) ]
511
506
pub debug : Option < TomlDebugInfo > ,
512
- #[ serde( skip_serializing_if = "Option::is_none" ) ]
513
507
pub split_debuginfo : Option < String > ,
514
- #[ serde( skip_serializing_if = "Option::is_none" ) ]
515
508
pub debug_assertions : Option < bool > ,
516
- #[ serde( skip_serializing_if = "Option::is_none" ) ]
517
509
pub rpath : Option < bool > ,
518
- #[ serde( skip_serializing_if = "Option::is_none" ) ]
519
510
pub panic : Option < String > ,
520
- #[ serde( skip_serializing_if = "Option::is_none" ) ]
521
511
pub overflow_checks : Option < bool > ,
522
- #[ serde( skip_serializing_if = "Option::is_none" ) ]
523
512
pub incremental : Option < bool > ,
524
- #[ serde( skip_serializing_if = "Option::is_none" ) ]
525
513
pub dir_name : Option < InternedString > ,
526
- #[ serde( skip_serializing_if = "Option::is_none" ) ]
527
514
pub inherits : Option < InternedString > ,
528
- #[ serde( skip_serializing_if = "Option::is_none" ) ]
529
515
pub strip : Option < StringOrBool > ,
530
516
// Note that `rustflags` is used for the cargo-feature `profile_rustflags`
531
- #[ serde( skip_serializing_if = "Option::is_none" ) ]
532
517
pub rustflags : Option < Vec < InternedString > > ,
533
518
// These two fields must be last because they are sub-tables, and TOML
534
519
// requires all non-tables to be listed first.
535
- #[ serde( skip_serializing_if = "Option::is_none" ) ]
536
520
pub package : Option < BTreeMap < ProfilePackageSpec , TomlProfile > > ,
537
- #[ serde( skip_serializing_if = "Option::is_none" ) ]
538
521
pub build_override : Option < Box < TomlProfile > > ,
539
522
}
540
523
0 commit comments