File tree 4 files changed +7
-1
lines changed
4 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ impl NewOptions {
131
131
}
132
132
133
133
#[ derive( Deserialize ) ]
134
+ #[ serde( rename_all = "kebab-case" ) ]
134
135
struct CargoNewConfig {
135
136
#[ deprecated = "cargo-new no longer supports adding the authors field" ]
136
137
#[ allow( dead_code) ]
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ pub struct DirectorySource<'gctx> {
70
70
/// The file name is simply `.cargo-checksum.json`. The checksum algorithm as
71
71
/// of now is SHA256.
72
72
#[ derive( Deserialize ) ]
73
+ #[ serde( rename_all = "kebab-case" ) ]
73
74
struct Checksum {
74
75
/// Checksum of the package. Normally it is computed from the `.crate` file.
75
76
package : Option < String > ,
Original file line number Diff line number Diff line change @@ -227,6 +227,7 @@ pub const CRATES_IO_DOMAIN: &str = "crates.io";
227
227
/// The content inside `.cargo-ok`.
228
228
/// See [`RegistrySource::unpack_package`] for more.
229
229
#[ derive( Deserialize , Serialize ) ]
230
+ #[ serde( rename_all = "kebab-case" ) ]
230
231
struct LockMetadata {
231
232
/// The version of `.cargo-ok` file
232
233
v : u32 ,
Original file line number Diff line number Diff line change @@ -2514,6 +2514,7 @@ impl<'de> Deserialize<'de> for SslVersionConfig {
2514
2514
}
2515
2515
2516
2516
#[ derive( Clone , Debug , Deserialize , PartialEq ) ]
2517
+ #[ serde( rename_all = "kebab-case" ) ]
2517
2518
pub struct SslVersionConfigRange {
2518
2519
pub min : Option < String > ,
2519
2520
pub max : Option < String > ,
@@ -2644,6 +2645,7 @@ impl BuildTargetConfig {
2644
2645
}
2645
2646
2646
2647
#[ derive( Deserialize , Default ) ]
2648
+ #[ serde( rename_all = "kebab-case" ) ]
2647
2649
pub struct TermConfig {
2648
2650
pub verbose : Option < bool > ,
2649
2651
pub quiet : Option < bool > ,
@@ -2656,13 +2658,14 @@ pub struct TermConfig {
2656
2658
}
2657
2659
2658
2660
#[ derive( Debug , Default , Deserialize ) ]
2661
+ #[ serde( rename_all = "kebab-case" ) ]
2659
2662
pub struct ProgressConfig {
2660
2663
pub when : ProgressWhen ,
2661
2664
pub width : Option < usize > ,
2662
2665
}
2663
2666
2664
2667
#[ derive( Debug , Default , Deserialize ) ]
2665
- #[ serde( rename_all = "lowercase " ) ]
2668
+ #[ serde( rename_all = "kebab-case " ) ]
2666
2669
pub enum ProgressWhen {
2667
2670
#[ default]
2668
2671
Auto ,
You can’t perform that action at this time.
0 commit comments