From 94c89f5f73505d2b15853940db704c522cb71d36 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Thu, 26 Sep 2024 09:59:37 +0200 Subject: [PATCH] Ignore some false positives in cargo machete --- examples/custom_style/Cargo.toml | 5 +++++ examples/hello_world_par/Cargo.toml | 4 ++++ tests/test_egui_extras_compilation/Cargo.toml | 2 ++ 3 files changed, 11 insertions(+) diff --git a/examples/custom_style/Cargo.toml b/examples/custom_style/Cargo.toml index 23f8a4e93c8..c7ae125493a 100644 --- a/examples/custom_style/Cargo.toml +++ b/examples/custom_style/Cargo.toml @@ -9,6 +9,11 @@ publish = false [lints] workspace = true + +[package.metadata.cargo-machete] +ignored = ["image"] # We need the .png feature + + [dependencies] eframe = { workspace = true, features = [ "default", diff --git a/examples/hello_world_par/Cargo.toml b/examples/hello_world_par/Cargo.toml index a64e7c0e9b0..458847eba4f 100644 --- a/examples/hello_world_par/Cargo.toml +++ b/examples/hello_world_par/Cargo.toml @@ -11,6 +11,10 @@ publish = false workspace = true +[package.metadata.cargo-machete] +ignored = ["winit"] # Just enable some features of it; see below + + [dependencies] eframe = { workspace = true, default-features = false, features = [ # accesskit struggles with threading diff --git a/tests/test_egui_extras_compilation/Cargo.toml b/tests/test_egui_extras_compilation/Cargo.toml index 167a8fa288c..aa1ea2c7ec9 100644 --- a/tests/test_egui_extras_compilation/Cargo.toml +++ b/tests/test_egui_extras_compilation/Cargo.toml @@ -9,6 +9,8 @@ publish = false [lints] workspace = true +[package.metadata.cargo-machete] +ignored = ["eframe", "egui_extras"] # We don't use them, just check that things compile [dependencies] eframe = { workspace = true, features = ["default", "persistence"] }