Loading libs/binder/rust/Android.bp +33 −14 Original line number Diff line number Diff line Loading @@ -24,13 +24,15 @@ rust_library { target: { darwin: { enabled: false, } }, }, apex_available: [ "//apex_available:platform", "com.android.compos", "com.android.uwb", "com.android.virt", ], min_sdk_version: "current", } rust_library { Loading @@ -45,7 +47,7 @@ rust_library { target: { darwin: { enabled: false, } }, }, apex_available: [ "//apex_available:platform", Loading @@ -69,13 +71,15 @@ rust_library { target: { darwin: { enabled: false, } }, }, apex_available: [ "//apex_available:platform", "com.android.compos", "com.android.uwb", "com.android.virt", ], min_sdk_version: "current", lints: "none", clippy_lints: "none", } Loading @@ -88,20 +92,31 @@ rust_bindgen { bindgen_flags: [ // 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", "--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::.*", "--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", ".*", "--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", Loading @@ -127,8 +142,10 @@ rust_bindgen { apex_available: [ "//apex_available:platform", "com.android.compos", "com.android.uwb", "com.android.virt", ], min_sdk_version: "current", } // TODO(b/184872979): remove once the Rust API is created. Loading @@ -142,8 +159,10 @@ rust_bindgen { ], apex_available: [ "com.android.compos", "com.android.uwb", "com.android.virt", ], min_sdk_version: "current", } rust_test { Loading Loading
libs/binder/rust/Android.bp +33 −14 Original line number Diff line number Diff line Loading @@ -24,13 +24,15 @@ rust_library { target: { darwin: { enabled: false, } }, }, apex_available: [ "//apex_available:platform", "com.android.compos", "com.android.uwb", "com.android.virt", ], min_sdk_version: "current", } rust_library { Loading @@ -45,7 +47,7 @@ rust_library { target: { darwin: { enabled: false, } }, }, apex_available: [ "//apex_available:platform", Loading @@ -69,13 +71,15 @@ rust_library { target: { darwin: { enabled: false, } }, }, apex_available: [ "//apex_available:platform", "com.android.compos", "com.android.uwb", "com.android.virt", ], min_sdk_version: "current", lints: "none", clippy_lints: "none", } Loading @@ -88,20 +92,31 @@ rust_bindgen { bindgen_flags: [ // 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", "--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::.*", "--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", ".*", "--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", Loading @@ -127,8 +142,10 @@ rust_bindgen { apex_available: [ "//apex_available:platform", "com.android.compos", "com.android.uwb", "com.android.virt", ], min_sdk_version: "current", } // TODO(b/184872979): remove once the Rust API is created. Loading @@ -142,8 +159,10 @@ rust_bindgen { ], apex_available: [ "com.android.compos", "com.android.uwb", "com.android.virt", ], min_sdk_version: "current", } rust_test { Loading