aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorFrederick Mayle <fmayle@google.com>2023-10-15 03:50:34 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-10-15 03:50:40 +0000
commite3276cc65032c7f6af6b5eb2f8ca61267f4af236 (patch)
tree9c881ffa0fa0a9bea64d18626ae369cb96d607f8 /Android.bp
parenta6c4e29bef30220216eeb5bde00a4a9dda6597c9 (diff)
downloadzerocopy-e3276cc65032c7f6af6b5eb2f8ca61267f4af236.tar.gz
Revert "Upgrade zerocopy to 0.7.5"
Revert submission 2786927-fmayle-zerocopy-update Reason for revert: broke build Reverted changes: /q/submissionid:2786927-fmayle-zerocopy-update Change-Id: Idf29777649afaf49719f5bc17cbb74d71331679e
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp49
1 files changed, 27 insertions, 22 deletions
diff --git a/Android.bp b/Android.bp
index 63ead71..06af1ed 100644
--- a/Android.bp
+++ b/Android.bp
@@ -23,14 +23,9 @@ rust_library {
host_supported: true,
crate_name: "zerocopy",
cargo_env_compat: true,
- cargo_pkg_version: "0.7.5",
+ cargo_pkg_version: "0.6.1",
srcs: ["src/lib.rs"],
- edition: "2021",
- features: [
- "byteorder",
- "derive",
- "zerocopy-derive",
- ],
+ edition: "2018",
rustlibs: [
"libbyteorder",
],
@@ -47,15 +42,10 @@ rust_library_rlib {
name: "libzerocopy_nostd",
crate_name: "zerocopy",
cargo_env_compat: true,
- cargo_pkg_version: "0.7.5",
+ cargo_pkg_version: "0.6.1",
srcs: ["src/lib.rs"],
- edition: "2021",
- features: [
- "alloc",
- "byteorder",
- "derive",
- "zerocopy-derive",
- ],
+ edition: "2018",
+ features: ["alloc"],
rustlibs: [
"libbyteorder_nostd",
],
@@ -79,14 +69,9 @@ rust_library_rlib {
name: "libzerocopy_nostd_noalloc",
crate_name: "zerocopy",
cargo_env_compat: true,
- cargo_pkg_version: "0.7.5",
+ cargo_pkg_version: "0.6.1",
srcs: ["src/lib.rs"],
- edition: "2021",
- features: [
- "byteorder",
- "derive",
- "zerocopy-derive",
- ],
+ edition: "2018",
rustlibs: [
"libbyteorder_nostd",
],
@@ -104,3 +89,23 @@ rust_library_rlib {
product_available: true,
vendor_available: true,
}
+
+rust_test {
+ name: "zerocopy_test_src_lib",
+ host_supported: true,
+ crate_name: "zerocopy",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.6.1",
+ srcs: ["src/lib.rs"],
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
+ test_options: {
+ unit_test: true,
+ },
+ edition: "2018",
+ rustlibs: [
+ "libbyteorder",
+ "librand",
+ ],
+ proc_macros: ["libzerocopy_derive"],
+}