From: Matt Corallo Date: Mon, 17 Apr 2023 15:50:18 +0000 (+0000) Subject: Support the new no-exported tag that is more human readable X-Git-Tag: v0.0.115.0^2~9 X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-c-bindings;a=commitdiff_plain;h=6715f52cb6b1e5f92aa86e62baa119e1d3198897 Support the new no-exported tag that is more human readable --- diff --git a/c-bindings-gen/src/types.rs b/c-bindings-gen/src/types.rs index ab79252..7fe302c 100644 --- a/c-bindings-gen/src/types.rs +++ b/c-bindings-gen/src/types.rs @@ -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;