Test, // test file
Bench, // bench file
CustomBuild, // build script
+ ProcMacro, // a proc macro implementation
Other, // plugin,...
}
fn should_format(&self) -> bool {
match *self {
TargetKind::Lib | TargetKind::Bin | TargetKind::Example | TargetKind::Test |
- TargetKind::Bench | TargetKind::CustomBuild => true,
+ TargetKind::Bench | TargetKind::CustomBuild | TargetKind::ProcMacro => true,
_ => false,
}
}
"example" => TargetKind::Example,
"bench" => TargetKind::Bench,
"custom-build" => TargetKind::CustomBuild,
+ "proc-macro" => TargetKind::ProcMacro,
_ => TargetKind::Other,
};