@@ -46,13 +46,13 @@ fn generate_bindings_via_library(include_path: String, out_path: &Path) {
46
46
bindgen:: Builder :: default ( )
47
47
. header ( "wrapper.h" )
48
48
. clang_arg ( include_path)
49
- . whitelist_type ( "ydb_.*" )
50
- . whitelist_function ( "ydb_.*" )
51
- . whitelist_var ( "YDB_.*" )
49
+ . allowlist_type ( "ydb_.*" )
50
+ . allowlist_function ( "ydb_.*" )
51
+ . allowlist_var ( "YDB_.*" )
52
52
// for `ydb_lock`
53
- . whitelist_type ( "gparam_list.*" )
54
- . whitelist_var ( "MAX_GPARAM_LIST_ARGS" )
55
- . blacklist_item ( "YDB_NOTTP" )
53
+ . allowlist_type ( "gparam_list.*" )
54
+ . allowlist_var ( "MAX_GPARAM_LIST_ARGS" )
55
+ . blocklist_item ( "YDB_NOTTP" )
56
56
// Finish the builder and generate the bindings.
57
57
. generate ( )
58
58
// Unwrap the Result and panic on failure.
@@ -68,12 +68,12 @@ fn generate_bindings_via_cli(include_path: String, out_path: &Path) {
68
68
#[ rustfmt:: skip] // rustfmt doesn't know the arguments are related
69
69
let args = [
70
70
"wrapper.h" ,
71
- "--whitelist -type" , "ydb_.*" ,
72
- "--whitelist -function" , "ydb_.*" ,
73
- "--whitelist -var" , "YDB_.*" ,
74
- "--whitelist -type" , "gparam_list.*" ,
75
- "--whitelist -var" , "MAX_GPARAM_LIST_ARGS" ,
76
- "--blacklist -item" , "YDB_NOTTP" ,
71
+ "--allowlist -type" , "ydb_.*" ,
72
+ "--allowlist -function" , "ydb_.*" ,
73
+ "--allowlist -var" , "YDB_.*" ,
74
+ "--allowlist -type" , "gparam_list.*" ,
75
+ "--allowlist -var" , "MAX_GPARAM_LIST_ARGS" ,
76
+ "--blocklist -item" , "YDB_NOTTP" ,
77
77
// This was a String originally, so it's safe to unwrap.
78
78
// It only went through `Path` so that the file separator would be right.
79
79
"--output" , out_path. to_str ( ) . unwrap ( ) ,
0 commit comments