From 7b47ec846dfe65dd8fabf15199c4f22b019acdaa Mon Sep 17 00:00:00 2001 From: Christopher Prohm Date: Sat, 6 Jan 2024 12:32:11 +0100 Subject: [PATCH] Add check for disabled default-features --- x.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/x.py b/x.py index 710901a7..5b1fa5ac 100644 --- a/x.py +++ b/x.py @@ -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():