File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -211,6 +211,13 @@ fn build(
211
211
args. extend ( features. iter ( ) . map ( |f| f. as_str ( ) ) ) ;
212
212
}
213
213
214
+ if let Some ( unstable) = build_options. unstable . as_deref ( ) {
215
+ for item in unstable. iter ( ) {
216
+ args. push ( "-Z" ) ;
217
+ args. push ( item) ;
218
+ }
219
+ }
220
+
214
221
// Invoke the 'cargo build' command, passing our list of arguments.
215
222
let output = Command :: new ( "cargo" )
216
223
. arg ( "build" )
Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ pub struct BuildArgs {
29
29
/// Target to build for
30
30
#[ clap( long) ]
31
31
pub target : Option < String > ,
32
+ /// Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details
33
+ #[ clap( short = 'Z' ) ]
34
+ pub unstable : Option < Vec < String > > ,
32
35
}
33
36
34
37
#[ derive( Parser ) ]
You can’t perform that action at this time.
0 commit comments