]> git.bitcoin.ninja Git - ldk-c-bindings/commitdiff
Support the new no-exported tag that is more human readable
authorMatt Corallo <git@bluematt.me>
Mon, 17 Apr 2023 15:50:18 +0000 (15:50 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 17 Apr 2023 15:50:18 +0000 (15:50 +0000)
c-bindings-gen/src/types.rs

index ab792520cedabfbc23795ddf19a31c688808bd4f..7fe302c8c4aca6df70a1dc0e74083aaad326731a 100644 (file)
@@ -134,7 +134,7 @@ pub fn export_status(attrs: &[syn::Attribute]) -> ExportStatus {
                match token_iter.next().unwrap() {
                        TokenTree::Literal(lit) => {
                                let line = format!("{}", lit);
-                               if line.contains("(C-not exported)") {
+                               if line.contains("(C-not exported)") || line.contains("This is not exported to bindings users") {
                                        return ExportStatus::NoExport;
                                } else if line.contains("(C-not implementable)") {
                                        return ExportStatus::NotImplementable;