apkdmverity: use data_model crate for better handling of C structs
The data_model:DataInit trait provides methods for converting between
a C struct and an array of the same size, allowing us to drop the hand
crafted as_u8_slice methods.
Bug: N/A
Test: cargo test
Test: atest apkdmverity.test
Change-Id: Iaff910f0a638e91a428777b94dc6fb0b5fe53831
diff --git a/apkverity/Android.bp b/apkverity/Android.bp
index 3d0dab5..9b53a47 100644
--- a/apkverity/Android.bp
+++ b/apkverity/Android.bp
@@ -12,6 +12,7 @@
"libanyhow",
"libbitflags",
"libclap",
+ "libdata_model",
"liblibc",
"libnix",
"libnum_traits",