We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bedf440 commit 377112cCopy full SHA for 377112c
rust/krb5-sys/build.rs
@@ -20,6 +20,16 @@ fn main() {
20
.allowlist_var("KRB5_.*")
21
.allowlist_var("KADM5_.*")
22
.allowlist_var("ENCTYPE_.*")
23
+ // Variadic functions generate bindings that rustc on ARM64 considers FFI-unsafe.
24
+ // We don't actually use them, so we can just blocklist the types, and any function
25
+ // variants that use them.
26
+ .blocklist_type("va_list")
27
+ .blocklist_type("__builtin_va_list")
28
+ .blocklist_type("__va_list_tag")
29
+ .blocklist_function(".*_vset_.*")
30
+ .blocklist_function(".*_vwrap_.*")
31
+ .blocklist_function(".*_vprepend_.*")
32
+ .blocklist_function(".*_va")
33
.new_type_alias("krb5_error_code")
34
.new_type_alias("kadm5_ret_t")
35
.must_use_type("krb5_error_code")
0 commit comments