From a6dc8350650c13d1fcc165e0be7ff1ea1e2703bf Mon Sep 17 00:00:00 2001 From: Ted de Munnik Date: Sun, 27 Oct 2024 11:31:45 +0100 Subject: [PATCH] Ignore profiling dependency from cargo machete. It looks unused, as it's only referenced in order to enable it's features which causes instrumentation to be emitted --- crates/egui_demo_app/Cargo.toml | 3 +++ examples/puffin_profiler/Cargo.toml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/crates/egui_demo_app/Cargo.toml b/crates/egui_demo_app/Cargo.toml index a01b0db258f..dfd86bcf606 100644 --- a/crates/egui_demo_app/Cargo.toml +++ b/crates/egui_demo_app/Cargo.toml @@ -8,6 +8,9 @@ rust-version.workspace = true publish = false default-run = "egui_demo_app" +[package.metadata.cargo-machete] +ignored = ["profiling"] + [lints] workspace = true diff --git a/examples/puffin_profiler/Cargo.toml b/examples/puffin_profiler/Cargo.toml index 0ee11eef9cf..e03e041aef4 100644 --- a/examples/puffin_profiler/Cargo.toml +++ b/examples/puffin_profiler/Cargo.toml @@ -7,6 +7,9 @@ edition = "2021" rust-version = "1.76" publish = false +[package.metadata.cargo-machete] +ignored = ["profiling"] + [lints] workspace = true