diff options
author | Frederick Mayle <fmayle@google.com> | 2023-10-15 18:27:31 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2023-10-15 18:27:36 +0000 |
commit | 7d80d53b47a1552c4f7cd18f9d5e3fa39fb05ee9 (patch) | |
tree | 487673684b83e84a687e6b73541a2e1290b9befa /Android.bp | |
parent | e3276cc65032c7f6af6b5eb2f8ca61267f4af236 (diff) | |
download | zerocopy-7d80d53b47a1552c4f7cd18f9d5e3fa39fb05ee9.tar.gz |
Revert^2 "Upgrade zerocopy to 0.7.5"
e3276cc65032c7f6af6b5eb2f8ca61267f4af236
Change-Id: I6fea4c5874582016dc34db2cc59ac2ebf52d2788
Diffstat (limited to 'Android.bp')
-rw-r--r-- | Android.bp | 49 |
1 files changed, 22 insertions, 27 deletions
@@ -23,9 +23,14 @@ rust_library { host_supported: true, crate_name: "zerocopy", cargo_env_compat: true, - cargo_pkg_version: "0.6.1", + cargo_pkg_version: "0.7.5", srcs: ["src/lib.rs"], - edition: "2018", + edition: "2021", + features: [ + "byteorder", + "derive", + "zerocopy-derive", + ], rustlibs: [ "libbyteorder", ], @@ -42,10 +47,15 @@ rust_library_rlib { name: "libzerocopy_nostd", crate_name: "zerocopy", cargo_env_compat: true, - cargo_pkg_version: "0.6.1", + cargo_pkg_version: "0.7.5", srcs: ["src/lib.rs"], - edition: "2018", - features: ["alloc"], + edition: "2021", + features: [ + "alloc", + "byteorder", + "derive", + "zerocopy-derive", + ], rustlibs: [ "libbyteorder_nostd", ], @@ -69,9 +79,14 @@ rust_library_rlib { name: "libzerocopy_nostd_noalloc", crate_name: "zerocopy", cargo_env_compat: true, - cargo_pkg_version: "0.6.1", + cargo_pkg_version: "0.7.5", srcs: ["src/lib.rs"], - edition: "2018", + edition: "2021", + features: [ + "byteorder", + "derive", + "zerocopy-derive", + ], rustlibs: [ "libbyteorder_nostd", ], @@ -89,23 +104,3 @@ 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"], -} |