File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -89,10 +89,14 @@ pub struct BuildOptions {
89
89
pub target : String ,
90
90
91
91
#[ structopt( long = "debug" ) ]
92
- /// Build without --release .
92
+ /// Deprecated. Renamed to `--dev` .
93
93
debug : bool ,
94
- // build config from manifest
95
- // build_config: Option<BuildConfig>,
94
+
95
+ #[ structopt( long = "dev" ) ]
96
+ /// Create a development build. Enable debug info, and disable
97
+ /// optimizations.
98
+ dev : bool ,
99
+
96
100
#[ structopt( long = "out-dir" , short = "d" , default_value = "pkg" ) ]
97
101
/// Sets the output directory with a relative path.
98
102
pub out_dir : String ,
@@ -113,7 +117,7 @@ impl Build {
113
117
scope : build_opts. scope ,
114
118
disable_dts : build_opts. disable_dts ,
115
119
target : build_opts. target ,
116
- debug : build_opts. debug ,
120
+ debug : build_opts. dev || build_opts . debug ,
117
121
mode : build_opts. mode ,
118
122
// build_config,
119
123
out_dir,
You can’t perform that action at this time.
0 commit comments