• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1diff --git a/Android.bp b/Android.bp
2index d6878ec..59ae682 100644
3--- a/Android.bp
4+++ b/Android.bp
5@@ -59,6 +59,26 @@ rust_library {
6     min_sdk_version: "29",
7 }
8
9+rust_library_rlib {
10+    name: "libonce_cell_nostd",
11+    crate_name: "once_cell",
12+    cargo_env_compat: true,
13+    cargo_pkg_version: "1.16.0",
14+    srcs: ["src/lib.rs"],
15+    edition: "2021",
16+    features: [
17+        "alloc",
18+        "default",
19+        "race",
20+    ],
21+    apex_available: [
22+        "//apex_available:platform",
23+        "//apex_available:anyapex"
24+    ],
25+    vendor_available: true,
26+    min_sdk_version: "29",
27+}
28+
29 rust_test {
30     name: "once_cell_test_src_lib",
31     host_supported: true,
32@@ -79,7 +99,6 @@ rust_test {
33         "std",
34     ],
35     rustlibs: [
36-        "libcritical_section",
37         "libcrossbeam_utils",
38         "liblazy_static",
39         "libregex",
40@@ -106,7 +125,6 @@ rust_test {
41         "std",
42     ],
43     rustlibs: [
44-        "libcritical_section",
45         "libcrossbeam_utils",
46         "liblazy_static",
47         "libonce_cell",
48