From 498b5762cfc795029b1d0e43e336223c1445cfb5 Mon Sep 17 00:00:00 2001 From: Jonathan Woollett-Light Date: Tue, 3 Oct 2023 17:13:03 +0100 Subject: [PATCH] ci: Test for unused cargo dependencies Adds test for unused cargo dependencies. Signed-off-by: Jonathan Woollett-Light --- tests/integration_tests/build/test_dependencies.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/integration_tests/build/test_dependencies.py b/tests/integration_tests/build/test_dependencies.py index 778f5facc228..04c72da93a37 100644 --- a/tests/integration_tests/build/test_dependencies.py +++ b/tests/integration_tests/build/test_dependencies.py @@ -25,3 +25,10 @@ def test_licenses(): ) cargo("deny", f"--manifest-path {toml_file} check licenses bans") + + +def test_unused_dependencies(): + """ + Test that there are no unused dependencies. + """ + cargo("+nightly udeps --all")