From 9b856988134ccb29707f3c137a34e4c86a83a6af Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 9 Feb 2022 21:46:27 +0000 Subject: [PATCH] Don't mark everything with a feature bound as TestOnly --- c-bindings-gen/src/types.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/c-bindings-gen/src/types.rs b/c-bindings-gen/src/types.rs index 007441e..4e7ac8a 100644 --- a/c-bindings-gen/src/types.rs +++ b/c-bindings-gen/src/types.rs @@ -110,8 +110,7 @@ pub fn export_status(attrs: &[syn::Attribute]) -> ExportStatus { } if all_test { return ExportStatus::TestOnly; } } - } else if i == "test" || i == "feature" { - // If its cfg(feature(...)) we assume its test-only + } else if i == "test" { return ExportStatus::TestOnly; } } -- 2.30.2