Keystore 2.0 error module
This patch provides some convenience methods for error handling in
Keystore 2.0. Specifically, a way to convert errors into messages to the
client and logging errors.
Test: keystore2_test
Bug: 159378374
Change-Id: Ifa6b5745533863bfd76319bc991748a47453d31e
diff --git a/keystore2/Android.bp b/keystore2/Android.bp
index 4b031f8..bf78574 100644
--- a/keystore2/Android.bp
+++ b/keystore2/Android.bp
@@ -16,6 +16,13 @@
name: "libkeystore2",
crate_name: "keystore2",
srcs: ["src/lib.rs"],
+
+ rustlibs: [
+ "libanyhow",
+ "libkeystore_aidl_generated",
+ "liblog_rust",
+ "libthiserror",
+ ],
}
rust_test {
@@ -24,6 +31,13 @@
srcs: ["src/lib.rs"],
test_suites: ["general-tests"],
auto_gen_config: true,
+ rustlibs: [
+ "libandroid_logger",
+ "libanyhow",
+ "libkeystore_aidl_generated",
+ "liblog_rust",
+ "libthiserror",
+ ],
}
// This is a placeholder for the libraries that will be generated from the AIDL specs