File tree 1 file changed +23
-0
lines changed
src/tools/build-manifest/src
1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -265,6 +265,29 @@ impl Builder {
265
265
// channel-rust-1.XX.toml
266
266
let major_minor = rust_version. split ( '.' ) . take ( 2 ) . collect :: < Vec < _ > > ( ) . join ( "." ) ;
267
267
self . write_channel_files ( & major_minor, & manifest) ;
268
+ } else if channel == "beta" {
269
+ // channel-rust-1.XX.YY-beta.Z.toml
270
+ let rust_version = self
271
+ . versions
272
+ . version ( & PkgType :: Rust )
273
+ . expect ( "missing Rust tarball" )
274
+ . version
275
+ . expect ( "missing Rust version" )
276
+ . split ( ' ' )
277
+ . next ( )
278
+ . unwrap ( )
279
+ . to_string ( ) ;
280
+ self . write_channel_files ( & rust_version, & manifest) ;
281
+
282
+ // channel-rust-1.XX.YY-beta.toml
283
+ let major_minor_patch_beta =
284
+ rust_version. split ( '.' ) . take ( 3 ) . collect :: < Vec < _ > > ( ) . join ( "." ) ;
285
+ self . write_channel_files ( & major_minor_patch_beta, & manifest) ;
286
+
287
+ // channel-rust-1.XX-beta.toml
288
+ let major_minor_beta =
289
+ format ! ( "{}-beta" , rust_version. split( '.' ) . take( 2 ) . collect:: <Vec <_>>( ) . join( "." ) ) ;
290
+ self . write_channel_files ( & major_minor_beta, & manifest) ;
268
291
}
269
292
270
293
if let Some ( path) = std:: env:: var_os ( "BUILD_MANIFEST_SHIPPED_FILES_PATH" ) {
You can’t perform that action at this time.
0 commit comments