Skip to content

Commit

Permalink
standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed May 6, 2024
1 parent 36ecf74 commit 40b280f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions crates/libs/bindgen/src/rust/cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ impl Cfg {
}

pub fn included(&self, writer: &Writer) -> bool {
for namespace in self.types.keys() {
if !writer.reader.includes_namespace(namespace) {
return false;
if writer.package {
for namespace in self.types.keys() {
if !writer.reader.includes_namespace(namespace) {
return false;
}
}
}
true
Expand Down

0 comments on commit 40b280f

Please sign in to comment.