diff options
author | Frederick Mayle <fmayle@google.com> | 2023-10-15 03:50:34 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2023-10-15 03:50:40 +0000 |
commit | e3276cc65032c7f6af6b5eb2f8ca61267f4af236 (patch) | |
tree | 9c881ffa0fa0a9bea64d18626ae369cb96d607f8 /Android.bp | |
parent | a6c4e29bef30220216eeb5bde00a4a9dda6597c9 (diff) | |
download | zerocopy-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.bp | 49 |
1 files changed, 27 insertions, 22 deletions
@@ -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"], +} |