From: Matt Corallo Date: Wed, 9 Feb 2022 21:46:27 +0000 (+0000) Subject: Don't mark everything with a feature bound as TestOnly X-Git-Tag: v0.0.105.0^2~6 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=9b856988134ccb29707f3c137a34e4c86a83a6af;p=ldk-c-bindings Don't mark everything with a feature bound as TestOnly --- 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; } }