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

Commit 8905bf69 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "libbinder_rs: Use a bindgen flag file" into main

parents bddfe667 abf991c2
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=.*