File tree 11 files changed +74
-0
lines changed
11 files changed +74
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ pub struct SerializedPackage {
102
102
#[ serde( skip_serializing_if = "Option::is_none" ) ]
103
103
metabuild : Option < Vec < String > > ,
104
104
default_run : Option < String > ,
105
+ rust_version : Option < String > ,
105
106
}
106
107
107
108
impl Package {
@@ -268,6 +269,7 @@ impl Package {
268
269
metabuild : self . manifest ( ) . metabuild ( ) . cloned ( ) ,
269
270
publish : self . publish ( ) . as_ref ( ) . cloned ( ) ,
270
271
default_run : self . manifest ( ) . default_run ( ) . map ( |s| s. to_owned ( ) ) ,
272
+ rust_version : self . rust_version ( ) . map ( |s| s. to_owned ( ) ) ,
271
273
}
272
274
}
273
275
}
Original file line number Diff line number Diff line change @@ -182,6 +182,8 @@ The output has the following format:
182
182
],
183
183
/* Optional string that is the default binary picked by cargo run. */
184
184
" default_run" : null ,
185
+ /* Optional string that is the minimum supported rust version */
186
+ " rust_version" : " 1.56" ,
185
187
/* Array of keywords from the manifest. */
186
188
" keywords" : [
187
189
" cli"
Original file line number Diff line number Diff line change @@ -177,6 +177,8 @@ OUTPUT FORMAT
177
177
],
178
178
/* Optional string that is the default binary picked by cargo run. */
179
179
"default_run": null,
180
+ /* Optional string that is the minimum supported rust version */
181
+ "rust_version": "1.56",
180
182
/* Array of keywords from the manifest. */
181
183
"keywords": [
182
184
"cli"
Original file line number Diff line number Diff line change @@ -182,6 +182,8 @@ The output has the following format:
182
182
],
183
183
/* Optional string that is the default binary picked by cargo run. */
184
184
" default_run" : null ,
185
+ /* Optional string that is the minimum supported rust version */
186
+ " rust_version" : " 1.56" ,
185
187
/* Array of keywords from the manifest. */
186
188
" keywords" : [
187
189
" cli"
Original file line number Diff line number Diff line change @@ -179,6 +179,8 @@ The output has the following format:
179
179
],
180
180
/* Optional string that is the default binary picked by cargo run. */
181
181
"default_run": null,
182
+ /* Optional string that is the minimum supported rust version */
183
+ "rust_version": "1.56",
182
184
/* Array of keywords from the manifest. */
183
185
"keywords": [
184
186
"cli"
Original file line number Diff line number Diff line change @@ -823,6 +823,7 @@ fn alt_reg_metadata() {
823
823
"keywords": [],
824
824
"readme": null,
825
825
"repository": null,
826
+ "rust_version": null,
826
827
"homepage": null,
827
828
"documentation": null,
828
829
"edition": "2015",
@@ -880,6 +881,7 @@ fn alt_reg_metadata() {
880
881
"keywords": [],
881
882
"readme": null,
882
883
"repository": null,
884
+ "rust_version": null,
883
885
"homepage": null,
884
886
"documentation": null,
885
887
"edition": "2015",
@@ -905,6 +907,7 @@ fn alt_reg_metadata() {
905
907
"keywords": [],
906
908
"readme": null,
907
909
"repository": null,
910
+ "rust_version": null,
908
911
"homepage": null,
909
912
"documentation": null,
910
913
"edition": "2015",
@@ -930,6 +933,7 @@ fn alt_reg_metadata() {
930
933
"keywords": [],
931
934
"readme": null,
932
935
"repository": null,
936
+ "rust_version": null,
933
937
"homepage": null,
934
938
"documentation": null,
935
939
"edition": "2015",
@@ -980,6 +984,7 @@ fn alt_reg_metadata() {
980
984
"keywords": [],
981
985
"readme": null,
982
986
"repository": null,
987
+ "rust_version": null,
983
988
"homepage": null,
984
989
"documentation": null,
985
990
"edition": "2015",
@@ -1018,6 +1023,7 @@ fn alt_reg_metadata() {
1018
1023
"keywords": [],
1019
1024
"readme": null,
1020
1025
"repository": null,
1026
+ "rust_version": null,
1021
1027
"homepage": null,
1022
1028
"documentation": null,
1023
1029
"edition": "2015",
@@ -1115,6 +1121,7 @@ fn unknown_registry() {
1115
1121
"keywords": [],
1116
1122
"readme": null,
1117
1123
"repository": null,
1124
+ "rust_version": null,
1118
1125
"homepage": null,
1119
1126
"documentation": null,
1120
1127
"edition": "2015",
@@ -1140,6 +1147,7 @@ fn unknown_registry() {
1140
1147
"keywords": [],
1141
1148
"readme": null,
1142
1149
"repository": null,
1150
+ "rust_version": null,
1143
1151
"homepage": null,
1144
1152
"documentation": null,
1145
1153
"edition": "2015",
@@ -1178,6 +1186,7 @@ fn unknown_registry() {
1178
1186
"keywords": [],
1179
1187
"readme": null,
1180
1188
"repository": null,
1189
+ "rust_version": null,
1181
1190
"homepage": null,
1182
1191
"documentation": null,
1183
1192
"edition": "2015",
Original file line number Diff line number Diff line change @@ -715,6 +715,7 @@ fn json_exposed() {
715
715
"keywords": [],
716
716
"readme": null,
717
717
"repository": null,
718
+ "rust_version": null,
718
719
"edition": "2015",
719
720
"links": null
720
721
}
Original file line number Diff line number Diff line change @@ -3147,6 +3147,7 @@ fn metadata_master_consistency() {
3147
3147
"keywords": [],
3148
3148
"readme": null,
3149
3149
"repository": null,
3150
+ "rust_version": null,
3150
3151
"homepage": null,
3151
3152
"documentation": null,
3152
3153
"edition": "2015",
@@ -3185,6 +3186,7 @@ fn metadata_master_consistency() {
3185
3186
"keywords": [],
3186
3187
"readme": null,
3187
3188
"repository": null,
3189
+ "rust_version": null,
3188
3190
"homepage": null,
3189
3191
"documentation": null,
3190
3192
"edition": "2015",
You can’t perform that action at this time.
0 commit comments