File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,12 @@ pub struct BuildOpts {
65
65
/// Build the application using the release profile
66
66
#[ clap( long) ]
67
67
pub release : bool ,
68
+ /// Require Cargo.lock is up to date
69
+ #[ clap( long) ]
70
+ pub locked : bool ,
71
+ /// Require Cargo.lock and cache are up to date
72
+ #[ clap( long) ]
73
+ pub frozen : bool ,
68
74
/// Example to build and flash
69
75
#[ clap( long) ]
70
76
pub example : Option < String > ,
@@ -230,6 +236,14 @@ fn build(
230
236
args. push ( "--release" . to_string ( ) ) ;
231
237
}
232
238
239
+ if build_options. locked {
240
+ args. push ( "--locked" . to_string ( ) ) ;
241
+ }
242
+
243
+ if build_options. frozen {
244
+ args. push ( "--frozen" . to_string ( ) ) ;
245
+ }
246
+
233
247
if let Some ( example) = & build_options. example {
234
248
args. push ( "--example" . to_string ( ) ) ;
235
249
args. push ( example. to_string ( ) ) ;
You can’t perform that action at this time.
0 commit comments