aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Vander Stoep <jeffv@google.com>2021-10-27 10:02:08 +0200
committerJeff Vander Stoep <jeffv@google.com>2021-10-27 10:02:08 +0200
commit9b3dc1584b939ceba9de6c5f79613b82bb527c25 (patch)
treeaa4ee39f55b98d99ec96f5b994d9ff3871a5f944
parentc5d4e97cbc06ea1e01f8391940a3d7ec4ea77371 (diff)
downloadrand-9b3dc1584b939ceba9de6c5f79613b82bb527c25.tar.gz
Enable small_rng feature
Needed for tests in quickcheck crate. Test: atest Change-Id: I76b50b39d7cf8a1d178ea240c2d90663a7d509f6
-rw-r--r--Android.bp11
-rw-r--r--cargo2android.json5
2 files changed, 6 insertions, 10 deletions
diff --git a/Android.bp b/Android.bp
index 8118506..8829966 100644
--- a/Android.bp
+++ b/Android.bp
@@ -42,6 +42,8 @@ rust_library {
name: "librand",
host_supported: true,
crate_name: "rand",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.8.4",
srcs: ["src/lib.rs"],
edition: "2018",
features: [
@@ -51,6 +53,7 @@ rust_library {
"libc",
"rand_chacha",
"rand_hc",
+ "small_rng",
"std",
"std_rng",
],
@@ -60,11 +63,3 @@ rust_library {
"librand_core",
],
}
-
-// dependent_library ["feature_list"]
-// cfg-if-1.0.0
-// getrandom-0.2.3 "std"
-// libc-0.2.97
-// ppv-lite86-0.2.10 "simd,std"
-// rand_chacha-0.3.1 "std"
-// rand_core-0.6.3 "alloc,getrandom,std"
diff --git a/cargo2android.json b/cargo2android.json
index 1b6cca2..5676126 100644
--- a/cargo2android.json
+++ b/cargo2android.json
@@ -1,5 +1,6 @@
{
"dependencies": true,
"device": true,
- "run": true
-} \ No newline at end of file
+ "run": true,
+ "features": "default,small_rng"
+}