Skip to content

Commit 6715f52

Browse files
committed
Support the new no-exported tag that is more human readable
1 parent 5905577 commit 6715f52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c-bindings-gen/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ pub fn export_status(attrs: &[syn::Attribute]) -> ExportStatus {
134134
match token_iter.next().unwrap() {
135135
TokenTree::Literal(lit) => {
136136
let line = format!("{}", lit);
137-
if line.contains("(C-not exported)") {
137+
if line.contains("(C-not exported)") || line.contains("This is not exported to bindings users") {
138138
return ExportStatus::NoExport;
139139
} else if line.contains("(C-not implementable)") {
140140
return ExportStatus::NotImplementable;

0 commit comments

Comments
 (0)