File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -119,14 +119,15 @@ enum TargetKind {
119
119
Example , // example file
120
120
Test , // test file
121
121
Bench , // bench file
122
+ CustomBuild , // build script
122
123
Other , // plugin,...
123
124
}
124
125
125
126
impl TargetKind {
126
127
fn should_format ( & self ) -> bool {
127
128
match * self {
128
129
TargetKind :: Lib | TargetKind :: Bin | TargetKind :: Example | TargetKind :: Test |
129
- TargetKind :: Bench => true ,
130
+ TargetKind :: Bench | TargetKind :: CustomBuild => true ,
130
131
_ => false ,
131
132
}
132
133
}
@@ -169,6 +170,7 @@ fn target_from_json(jtarget: &Json) -> Target {
169
170
"test" => TargetKind :: Test ,
170
171
"example" => TargetKind :: Example ,
171
172
"bench" => TargetKind :: Bench ,
173
+ "custom-build" => TargetKind :: CustomBuild ,
172
174
_ => TargetKind :: Other ,
173
175
} ;
174
176
You can’t perform that action at this time.
0 commit comments