Migrate to Rust 2021 edition
I only wanted this in one place, but thought we might as well do it
all in one go.
In a couple of places I added an explicit edition instead of using the
default (whatever that is).
See https://doc.rust-lang.org/edition-guide/rust-2021/index.html.
Test: find . -name "Android.bp" -type f|xargs grep edition | grep -v 2021
Test: atest ComposHostTestCases MicrodroidHostTestCases
Change-Id: I4de050078b303cc5614d230e0d36d5454d60a807
diff --git a/authfs/Android.bp b/authfs/Android.bp
index 4c5b70e..7788702 100644
--- a/authfs/Android.bp
+++ b/authfs/Android.bp
@@ -8,7 +8,7 @@
srcs: [
"src/main.rs",
],
- edition: "2018",
+ edition: "2021",
rustlibs: [
"authfs_aidl_interface-rust",
"libandroid_logger",
diff --git a/authfs/service/Android.bp b/authfs/service/Android.bp
index 943db35..e9eec1e 100644
--- a/authfs/service/Android.bp
+++ b/authfs/service/Android.bp
@@ -7,7 +7,7 @@
srcs: [
"src/main.rs",
],
- edition: "2018",
+ edition: "2021",
rustlibs: [
"authfs_aidl_interface-rust",
"libandroid_logger",
diff --git a/authfs/src/fsverity/metadata/Android.bp b/authfs/src/fsverity/metadata/Android.bp
index c988884..3df7519 100644
--- a/authfs/src/fsverity/metadata/Android.bp
+++ b/authfs/src/fsverity/metadata/Android.bp
@@ -20,6 +20,6 @@
"libauthfs_fsverity_metadata_bindgen",
"libopenssl",
],
- edition: "2018",
+ edition: "2021",
apex_available: ["com.android.virt"],
}
diff --git a/authfs/tests/Android.bp b/authfs/tests/Android.bp
index 990daf3..72685ad 100644
--- a/authfs/tests/Android.bp
+++ b/authfs/tests/Android.bp
@@ -27,7 +27,7 @@
name: "open_then_run",
crate_name: "open_then_run",
srcs: ["open_then_run.rs"],
- edition: "2018",
+ edition: "2021",
rustlibs: [
"libandroid_logger",
"libanyhow",