aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Farrell <jamesfarrell@google.com>2024-05-20 17:01:50 +0000
committerJames Farrell <jamesfarrell@google.com>2024-05-20 17:01:50 +0000
commit9d90a1a7fdcaa05c7aff3d8a787bc650037ca6b4 (patch)
treeca52c2d18b1c1d208e675840bee7796ec6fcc1dc
parent39099330b9b0a6cf320c2c91c53f317e24de3013 (diff)
downloadbytemuck-9d90a1a7fdcaa05c7aff3d8a787bc650037ca6b4.tar.gz
Update Android.bp by running cargo_embargo
Test: ran cargo_embargo Change-Id: Iaa5ea2acf386de8a2d1f5641b2b991053d7150a7
-rw-r--r--Android.bp17
1 files changed, 8 insertions, 9 deletions
diff --git a/Android.bp b/Android.bp
index ea03bc2..39f3b29 100644
--- a/Android.bp
+++ b/Android.bp
@@ -9,7 +9,7 @@ rust_test {
crate_name: "array_tests",
cargo_env_compat: true,
cargo_pkg_version: "1.14.1",
- srcs: ["tests/array_tests.rs"],
+ crate_root: "tests/array_tests.rs",
test_suites: ["general-tests"],
auto_gen_config: true,
test_options: {
@@ -31,7 +31,7 @@ rust_test {
crate_name: "cast_slice_tests",
cargo_env_compat: true,
cargo_pkg_version: "1.14.1",
- srcs: ["tests/cast_slice_tests.rs"],
+ crate_root: "tests/cast_slice_tests.rs",
test_suites: ["general-tests"],
auto_gen_config: true,
test_options: {
@@ -53,7 +53,7 @@ rust_test {
crate_name: "checked_tests",
cargo_env_compat: true,
cargo_pkg_version: "1.14.1",
- srcs: ["tests/checked_tests.rs"],
+ crate_root: "tests/checked_tests.rs",
test_suites: ["general-tests"],
auto_gen_config: true,
test_options: {
@@ -75,7 +75,7 @@ rust_test {
crate_name: "doc_tests",
cargo_env_compat: true,
cargo_pkg_version: "1.14.1",
- srcs: ["tests/doc_tests.rs"],
+ crate_root: "tests/doc_tests.rs",
test_suites: ["general-tests"],
auto_gen_config: true,
test_options: {
@@ -97,7 +97,7 @@ rust_test {
crate_name: "offset_of_tests",
cargo_env_compat: true,
cargo_pkg_version: "1.14.1",
- srcs: ["tests/offset_of_tests.rs"],
+ crate_root: "tests/offset_of_tests.rs",
test_suites: ["general-tests"],
auto_gen_config: true,
test_options: {
@@ -119,7 +119,7 @@ rust_test {
crate_name: "std_tests",
cargo_env_compat: true,
cargo_pkg_version: "1.14.1",
- srcs: ["tests/std_tests.rs"],
+ crate_root: "tests/std_tests.rs",
test_suites: ["general-tests"],
auto_gen_config: true,
test_options: {
@@ -141,7 +141,7 @@ rust_test {
crate_name: "transparent",
cargo_env_compat: true,
cargo_pkg_version: "1.14.1",
- srcs: ["tests/transparent.rs"],
+ crate_root: "tests/transparent.rs",
test_suites: ["general-tests"],
auto_gen_config: true,
test_options: {
@@ -163,13 +163,12 @@ rust_library {
crate_name: "bytemuck",
cargo_env_compat: true,
cargo_pkg_version: "1.14.1",
- srcs: ["src/lib.rs"],
+ crate_root: "src/lib.rs",
edition: "2018",
features: [
"bytemuck_derive",
"derive",
"extern_crate_alloc",
- "extern_crate_std",
],
proc_macros: ["libbytemuck_derive"],
apex_available: [