projects
/
ldk-c-bindings
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5905577
)
Support the new no-exported tag that is more human readable
author
Matt Corallo
<git@bluematt.me>
Mon, 17 Apr 2023 15:50:18 +0000
(15:50 +0000)
committer
Matt Corallo
<git@bluematt.me>
Mon, 17 Apr 2023 15:50:18 +0000
(15:50 +0000)
c-bindings-gen/src/types.rs
patch
|
blob
|
history
diff --git
a/c-bindings-gen/src/types.rs
b/c-bindings-gen/src/types.rs
index ab792520cedabfbc23795ddf19a31c688808bd4f..7fe302c8c4aca6df70a1dc0e74083aaad326731a 100644
(file)
--- 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;