Skip to content

Commit

Permalink
Fix sdist when all Cargo workspace members are excluded
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Dec 7, 2022
1 parent 82aa66a commit bbb7bd7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/source_distribution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,10 @@ fn rewrite_cargo_toml(
}
if !new_members.is_empty() {
workspace["members"] = toml_edit::value(new_members);
rewritten = true;
} else {
workspace.remove("members");
}
rewritten = true;
}
}
}
Expand Down

0 comments on commit bbb7bd7

Please sign in to comment.