summaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp34
1 files changed, 34 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index a2148cc..fe6f70f 100644
--- a/Android.bp
+++ b/Android.bp
@@ -69,6 +69,40 @@ rust_library {
min_sdk_version: "29",
}
+rust_library_rlib {
+ name: "libring_nostd",
+ // has rustc warnings
+ crate_name: "ring",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.17.0-alpha.11",
+ srcs: ["src/lib.rs"],
+ edition: "2018",
+ features: ["once_cell"],
+ rustlibs: [
+ "liblibc",
+ "libonce_cell",
+ "libspin_nostd",
+ "libuntrusted",
+ ],
+ whole_static_libs: [
+ "libring-core",
+ "libring-test",
+ ],
+ apex_available: [
+ "//apex_available:platform",
+ "com.android.resolv",
+ ],
+ prefer_rlib: true,
+ no_stdlibs: true,
+ stdlibs: [
+ "libcompiler_builtins.rust_sysroot",
+ "libcore.rust_sysroot",
+ ],
+ product_available: true,
+ vendor_available: true,
+ min_sdk_version: "29",
+}
+
rust_test {
name: "ring_test_src_lib",
// has rustc warnings