Loading libs/binder/rust/Android.bp +2 −24 Original line number Diff line number Diff line Loading @@ -97,34 +97,12 @@ rust_bindgen { crate_name: "binder_ndk_bindgen", wrapper_src: "sys/BinderBindings.hpp", source_stem: "bindings", bindgen_flags: [ bindgen_flag_files: [ // Unfortunately the only way to specify the rust_non_exhaustive enum // style for a type is to make it the default "--default-enum-style", "rust_non_exhaustive", // and then specify constified enums for the enums we don't want // rustified "--constified-enum", "android::c_interface::consts::.*", "--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", ".*", "libbinder_ndk_bindgen_flags.txt", ], shared_libs: [ "libbinder_ndk", Loading libs/binder/rust/libbinder_ndk_bindgen_flags.txt 0 → 100644 +11 −0 Original line number Diff line number Diff line --default-enum-style=rust_non_exhaustive --constified-enum=android::c_interface::consts::.* --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=.* Loading
libs/binder/rust/Android.bp +2 −24 Original line number Diff line number Diff line Loading @@ -97,34 +97,12 @@ rust_bindgen { crate_name: "binder_ndk_bindgen", wrapper_src: "sys/BinderBindings.hpp", source_stem: "bindings", bindgen_flags: [ bindgen_flag_files: [ // Unfortunately the only way to specify the rust_non_exhaustive enum // style for a type is to make it the default "--default-enum-style", "rust_non_exhaustive", // and then specify constified enums for the enums we don't want // rustified "--constified-enum", "android::c_interface::consts::.*", "--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", ".*", "libbinder_ndk_bindgen_flags.txt", ], shared_libs: [ "libbinder_ndk", Loading
libs/binder/rust/libbinder_ndk_bindgen_flags.txt 0 → 100644 +11 −0 Original line number Diff line number Diff line --default-enum-style=rust_non_exhaustive --constified-enum=android::c_interface::consts::.* --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=.*