File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -10,5 +10,5 @@ anyhow = "1.0.34"
10
10
curl = " 0.4.38"
11
11
indexmap = { version = " 1.7.0" , features = [" serde" ] }
12
12
serde = { version = " 1.0.125" , features = [" derive" ] }
13
- serde_json = " 1.0.59"
13
+ serde_json = { version = " 1.0.59" , features = [ " preserve_order " ] }
14
14
toml = " 0.5.7"
Original file line number Diff line number Diff line change @@ -198,9 +198,12 @@ struct Stage0 {
198
198
#[ derive( Debug , serde:: Serialize , serde:: Deserialize ) ]
199
199
struct Config {
200
200
dist_server : String ,
201
- artifacts_server : String ,
202
- artifacts_with_llvm_assertions_server : String ,
203
- git_merge_commit_email : String ,
201
+ // There are other fields in the configuration, which will be read by src/bootstrap or other
202
+ // tools consuming stage0.json. To avoid the need to update bump-stage0 every time a new field
203
+ // is added, we collect all the fields in an untyped Value and serialize them back with the
204
+ // same order and structure they were deserialized in.
205
+ #[ serde( flatten) ]
206
+ other : serde_json:: Value ,
204
207
}
205
208
206
209
#[ derive( Debug , serde:: Serialize , serde:: Deserialize ) ]
You can’t perform that action at this time.
0 commit comments