Mercurial > crates > nonstick
comparison build.rs @ 108:e97534be35e3
Make some proc macros for doing cfg-like stuff for PAM impls.
| author | Paul Fisher <paul@pfish.zone> |
|---|---|
| date | Sat, 28 Jun 2025 00:34:45 -0400 |
| parents | 13b4d2a19674 |
| children | 2346fd501b7a |
comparison
equal
deleted
inserted
replaced
| 107:49c6633f6fd2 | 108:e97534be35e3 |
|---|---|
| 9 let common_builder = bindgen::Builder::default() | 9 let common_builder = bindgen::Builder::default() |
| 10 .merge_extern_blocks(true) | 10 .merge_extern_blocks(true) |
| 11 .parse_callbacks(Box::new(bindgen::CargoCallbacks::new())) | 11 .parse_callbacks(Box::new(bindgen::CargoCallbacks::new())) |
| 12 .blocklist_type("pam_handle") | 12 .blocklist_type("pam_handle") |
| 13 .blocklist_type("pam_conv") | 13 .blocklist_type("pam_conv") |
| 14 .allowlist_var(".*") | 14 .blocklist_var(".*") |
| 15 .allowlist_function("pam_start") | 15 .allowlist_function("pam_start") |
| 16 .allowlist_function("pam_[gs]et_item") | 16 .allowlist_function("pam_[gs]et_item") |
| 17 .allowlist_function("pam_get_(user|authtok)") | 17 .allowlist_function("pam_get_(user|authtok)") |
| 18 .allowlist_function("pam_end") | 18 .allowlist_function("pam_end") |
| 19 .allowlist_function("pam_strerror") | 19 .allowlist_function("pam_strerror") |
