Skip to content

Commit

Permalink
Skip irrelevant entries in feature_deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski authored and taiki-e committed Sep 1, 2023
1 parent d229aee commit ab4c446
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ fn feature_deps(map: &BTreeMap<String, Vec<String>>) -> BTreeMap<&str, BTreeSet<
) {
if let Some(v) = map.get(cur) {
for x in v {
// dep: actions aren't features, and can't enable other features in the same crate
if x.starts_with("dep:") {
continue;
}
if x != root && set.insert(x) {
f(map, set, x, root);
}
Expand Down

0 comments on commit ab4c446

Please sign in to comment.