Skip to content

Commit

Permalink
Merge pull request #13 from hug-dev/fix-12
Browse files Browse the repository at this point in the history
Fix a bindgen test failing
  • Loading branch information
hug-dev authored Mar 26, 2021
2 parents 8e000a9 + 5258d47 commit 947cd67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cryptoki-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ fn generate_bindings() {
// This is needed because no types will be generated if `whitelist_function` is used.
// Unsure if this is a bug.
.whitelist_type("*")
// See this issue: /~https://github.com/parallaxsecond/rust-cryptoki/issues/12
.blacklist_type("max_align_t")
// Derive the `Debug` trait for the generated structs where possible.
.derive_debug(true)
// Derive the `Default` trait for the generated structs where possible.
Expand Down
2 changes: 2 additions & 0 deletions cryptoki-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#![allow(clippy::redundant_field_names)]
#![allow(clippy::missing_safety_doc)]
#![allow(clippy::string_lit_as_bytes)]
// Public items exportedby this crate should match the C style
#![allow(clippy::upper_case_acronyms)]

// For supported targets: use the generated and committed bindings.
#[cfg(all(
Expand Down

0 comments on commit 947cd67

Please sign in to comment.