projects
/
ldk-c-bindings
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
60b47db
)
Don't mark everything with a feature bound as TestOnly
author
Matt Corallo
<git@bluematt.me>
Wed, 9 Feb 2022 21:46:27 +0000
(21:46 +0000)
committer
Matt Corallo
<git@bluematt.me>
Tue, 1 Mar 2022 04:20:01 +0000
(
04:20
+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 007441ed5625e4f4bba85aa5ea7057c822a253c7..4e7ac8ae5c1f27312692649ed1eee01043d56bfd 100644
(file)
--- a/
c-bindings-gen/src/types.rs
+++ b/
c-bindings-gen/src/types.rs
@@
-110,8
+110,7
@@
pub fn export_status(attrs: &[syn::Attribute]) -> ExportStatus {
}
if all_test { return ExportStatus::TestOnly; }
}
}
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;
}
}
return ExportStatus::TestOnly;
}
}