Add libopen_dice nostd wrapper and test it in vmbase_example
This integrates libopen_dice into vmbase_example and performs basic
integration tests.
Bug: 237372981
Test: atest vmbase_example.integration_test
Change-Id: I67f11094cac04c7d72d19497b8b705386d1f0fe1
diff --git a/libs/dice/Android.bp b/libs/dice/Android.bp
new file mode 100644
index 0000000..7cb68a5
--- /dev/null
+++ b/libs/dice/Android.bp
@@ -0,0 +1,23 @@
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
+rust_library_rlib {
+ name: "libdice_nostd",
+ crate_name: "dice",
+ srcs: ["src/lib.rs"],
+ edition: "2021",
+ no_stdlibs: true,
+ prefer_rlib: true,
+ stdlibs: ["libcore.rust_sysroot"],
+ rustlibs: [
+ "libopen_dice_cbor_bindgen",
+ "libopen_dice_bcc_bindgen",
+ ],
+ whole_static_libs: [
+ "libopen_dice_bcc",
+ "libopen_dice_cbor",
+ "libcrypto_baremetal",
+ ],
+ apex_available: ["com.android.virt"],
+}