Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0dcb92a authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "libbinder_rs: Use a bindgen flag file" into main am: 8905bf69 am:...

Merge "libbinder_rs: Use a bindgen flag file" into main am: 8905bf69 am: 02487d82 am: c2520d3e

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2650996



Change-Id: Ida8df69e1301fc1d1c6a9810a6e76b145f0f5924
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 842326ea c2520d3e
Loading
Loading
Loading
Loading
+2 −24
Original line number Diff line number Diff line
@@ -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",
+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=.*