From b1f70d5eaa83695352b6a66a3ed559e36efe75af Mon Sep 17 00:00:00 2001 From: Joel Galenson Date: Fri, 30 Jul 2021 07:40:24 -0700 Subject: [PATCH] Migrate Rust libcutils bindings into librustutils. Bug: 182498247 Test: Build Change-Id: I535091d1afaa9225f824a3fde8bcffb867f64da8 --- libcutils/Android.bp | 15 --------------- libcutils/rust/cutils.h | 4 ---- 2 files changed, 19 deletions(-) delete mode 100644 libcutils/rust/cutils.h diff --git a/libcutils/Android.bp b/libcutils/Android.bp index 68b21c6a0..0d9f2c79a 100644 --- a/libcutils/Android.bp +++ b/libcutils/Android.bp @@ -354,18 +354,3 @@ cc_test { defaults: ["libcutils_test_static_defaults"], test_config: "KernelLibcutilsTest.xml", } - -rust_bindgen { - name: "libcutils_bindgen", - wrapper_src: "rust/cutils.h", - crate_name: "cutils_bindgen", - source_stem: "bindings", - local_include_dirs: ["include"], - bindgen_flags: [ - "--allowlist-function", "multiuser_get_app_id", - "--allowlist-function", "multiuser_get_uid", - "--allowlist-function", "multiuser_get_user_id", - "--allowlist-var", "AID_KEYSTORE", - "--allowlist-var", "AID_USER_OFFSET", - ], -} diff --git a/libcutils/rust/cutils.h b/libcutils/rust/cutils.h deleted file mode 100644 index 9b78af631..000000000 --- a/libcutils/rust/cutils.h +++ /dev/null @@ -1,4 +0,0 @@ -#pragma once - -#include -#include