Don't mark everything with a feature bound as TestOnly
[ldk-c-bindings] / 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;
                                                        }
                                                }