Skip to content

Commit

Permalink
Add check for disabled default-features
Browse files Browse the repository at this point in the history
  • Loading branch information
chmp committed Jan 6, 2024
1 parent 22c6459 commit 7b47ec8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions x.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ def check_cargo_toml():
f"Expected: {expected_dep}, found: {actual_dep}"
)

for name, dep in config["dependencies"].items():
if dep.get("default-features", True):
raise ValueError(f"Default features for {name} not deactivated")


@cmd(help="Run the benchmarks")
def bench():
Expand Down

0 comments on commit 7b47ec8

Please sign in to comment.