]> git.bitcoin.ninja Git - ldk-c-bindings/commitdiff
Don't mark everything with a feature bound as TestOnly
authorMatt Corallo <git@bluematt.me>
Wed, 9 Feb 2022 21:46:27 +0000 (21:46 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 1 Mar 2022 04:20:01 +0000 (04:20 +0000)
c-bindings-gen/src/types.rs

index 007441ed5625e4f4bba85aa5ea7057c822a253c7..4e7ac8ae5c1f27312692649ed1eee01043d56bfd 100644 (file)
@@ -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;
                                                        }
                                                }