From 6ad5324a44dddc5435dced7d01077f514d96b5f7 Mon Sep 17 00:00:00 2001 From: Joel Galenson Date: Mon, 19 Apr 2021 09:39:12 -0700 Subject: Use the new more inclusive command-line options. Test: Compile Change-Id: If0a5a6c20b72034e15ebca2ced6a9394f007a12d --- libs/binder/rust/Android.bp | 18 +++++++++--------- libs/binder/rust/tests/Android.bp | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/libs/binder/rust/Android.bp b/libs/binder/rust/Android.bp index e12a429cf9..57c9013f60 100644 --- a/libs/binder/rust/Android.bp +++ b/libs/binder/rust/Android.bp @@ -65,15 +65,15 @@ rust_bindgen { // rustified "--constified-enum", "android::c_interface::consts::.*", - "--whitelist-type", "android::c_interface::.*", - "--whitelist-type", "AStatus", - "--whitelist-type", "AIBinder_Class", - "--whitelist-type", "AIBinder", - "--whitelist-type", "AIBinder_Weak", - "--whitelist-type", "AIBinder_DeathRecipient", - "--whitelist-type", "AParcel", - "--whitelist-type", "binder_status_t", - "--whitelist-function", ".*", + "--allowlist-type", "android::c_interface::.*", + "--allowlist-type", "AStatus", + "--allowlist-type", "AIBinder_Class", + "--allowlist-type", "AIBinder", + "--allowlist-type", "AIBinder_Weak", + "--allowlist-type", "AIBinder_DeathRecipient", + "--allowlist-type", "AParcel", + "--allowlist-type", "binder_status_t", + "--allowlist-function", ".*", ], shared_libs: [ "libbinder_ndk", diff --git a/libs/binder/rust/tests/Android.bp b/libs/binder/rust/tests/Android.bp index 0bf76c696a..607860f462 100644 --- a/libs/binder/rust/tests/Android.bp +++ b/libs/binder/rust/tests/Android.bp @@ -114,8 +114,8 @@ rust_bindgen { source_stem: "bindings", cpp_std: "gnu++17", bindgen_flags: [ - "--whitelist-type", "Transaction", - "--whitelist-var", "TESTDATA_.*", + "--allowlist-type", "Transaction", + "--allowlist-var", "TESTDATA_.*", ], shared_libs: [ -- cgit v1.2.3-59-g8ed1b