summaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp359
1 files changed, 283 insertions, 76 deletions
diff --git a/Android.bp b/Android.bp
index e187a57..f1ae06f 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,4 @@
-// This file is generated by cargo2android.py --config cargo2android.json.
+// This file is generated by cargo_embargo.
// Do not modify this file as changes will be overridden on upgrade.
package {
@@ -36,7 +36,6 @@ license {
rust_library {
name: "libring",
- // has rustc warnings
host_supported: true,
crate_name: "ring",
cargo_env_compat: true,
@@ -70,44 +69,8 @@ rust_library {
cfgs: ["soong"],
}
-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",
- cfgs: ["soong"],
-}
-
rust_test {
name: "ring_test_src_lib",
- // has rustc warnings
host_supported: true,
crate_name: "ring",
cargo_env_compat: true,
@@ -139,13 +102,18 @@ rust_test {
cfgs: ["soong"],
}
-rust_defaults {
- name: "ring_test_defaults",
- crate_name: "ring",
+rust_test {
+ name: "ring_test_tests_aead_tests",
+ host_supported: true,
+ crate_name: "aead_tests",
cargo_env_compat: true,
cargo_pkg_version: "0.17.0-alpha.11",
+ srcs: ["tests/aead_tests.rs"],
test_suites: ["general-tests"],
auto_gen_config: true,
+ test_options: {
+ unit_test: true,
+ },
edition: "2018",
features: [
"alloc",
@@ -161,161 +129,400 @@ rust_defaults {
"libspin",
"libuntrusted",
],
-}
-
-rust_test {
- name: "ring_test_tests_aead_tests",
- defaults: ["ring_test_defaults"],
- // has rustc warnings
- host_supported: true,
- srcs: ["tests/aead_tests.rs"],
- test_options: {
- unit_test: true,
- },
cfgs: ["soong"],
}
rust_test {
name: "ring_test_tests_agreement_tests",
- defaults: ["ring_test_defaults"],
- // has rustc warnings
host_supported: true,
+ crate_name: "agreement_tests",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.17.0-alpha.11",
srcs: ["tests/agreement_tests.rs"],
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
test_options: {
unit_test: true,
},
+ edition: "2018",
+ features: [
+ "alloc",
+ "default",
+ "dev_urandom_fallback",
+ "once_cell",
+ "std",
+ ],
+ rustlibs: [
+ "liblibc",
+ "libonce_cell",
+ "libring",
+ "libspin",
+ "libuntrusted",
+ ],
cfgs: ["soong"],
}
rust_test {
name: "ring_test_tests_constant_time_tests",
- defaults: ["ring_test_defaults"],
- // has rustc warnings
host_supported: true,
+ crate_name: "constant_time_tests",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.17.0-alpha.11",
srcs: ["tests/constant_time_tests.rs"],
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
test_options: {
unit_test: true,
},
+ edition: "2018",
+ features: [
+ "alloc",
+ "default",
+ "dev_urandom_fallback",
+ "once_cell",
+ "std",
+ ],
+ rustlibs: [
+ "liblibc",
+ "libonce_cell",
+ "libring",
+ "libspin",
+ "libuntrusted",
+ ],
cfgs: ["soong"],
}
rust_test {
name: "ring_test_tests_digest_tests",
- defaults: ["ring_test_defaults"],
- // has rustc warnings
host_supported: true,
+ crate_name: "digest_tests",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.17.0-alpha.11",
srcs: ["tests/digest_tests.rs"],
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
test_options: {
unit_test: true,
},
+ edition: "2018",
+ features: [
+ "alloc",
+ "default",
+ "dev_urandom_fallback",
+ "once_cell",
+ "std",
+ ],
+ rustlibs: [
+ "liblibc",
+ "libonce_cell",
+ "libring",
+ "libspin",
+ "libuntrusted",
+ ],
cfgs: ["soong"],
}
rust_test {
name: "ring_test_tests_ecdsa_tests",
- defaults: ["ring_test_defaults"],
- // has rustc warnings
host_supported: true,
+ crate_name: "ecdsa_tests",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.17.0-alpha.11",
srcs: ["tests/ecdsa_tests.rs"],
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
test_options: {
unit_test: true,
},
+ edition: "2018",
+ features: [
+ "alloc",
+ "default",
+ "dev_urandom_fallback",
+ "once_cell",
+ "std",
+ ],
+ rustlibs: [
+ "liblibc",
+ "libonce_cell",
+ "libring",
+ "libspin",
+ "libuntrusted",
+ ],
cfgs: ["soong"],
}
rust_test {
name: "ring_test_tests_ed25519_tests",
- defaults: ["ring_test_defaults"],
- // has rustc warnings
host_supported: true,
+ crate_name: "ed25519_tests",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.17.0-alpha.11",
srcs: ["tests/ed25519_tests.rs"],
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
test_options: {
unit_test: true,
},
+ edition: "2018",
+ features: [
+ "alloc",
+ "default",
+ "dev_urandom_fallback",
+ "once_cell",
+ "std",
+ ],
+ rustlibs: [
+ "liblibc",
+ "libonce_cell",
+ "libring",
+ "libspin",
+ "libuntrusted",
+ ],
cfgs: ["soong"],
}
rust_test {
name: "ring_test_tests_hkdf_tests",
- defaults: ["ring_test_defaults"],
- // has rustc warnings
host_supported: true,
+ crate_name: "hkdf_tests",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.17.0-alpha.11",
srcs: ["tests/hkdf_tests.rs"],
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
test_options: {
unit_test: true,
},
+ edition: "2018",
+ features: [
+ "alloc",
+ "default",
+ "dev_urandom_fallback",
+ "once_cell",
+ "std",
+ ],
+ rustlibs: [
+ "liblibc",
+ "libonce_cell",
+ "libring",
+ "libspin",
+ "libuntrusted",
+ ],
cfgs: ["soong"],
}
rust_test {
name: "ring_test_tests_hmac_tests",
- defaults: ["ring_test_defaults"],
- // has rustc warnings
host_supported: true,
+ crate_name: "hmac_tests",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.17.0-alpha.11",
srcs: ["tests/hmac_tests.rs"],
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
test_options: {
unit_test: true,
},
+ edition: "2018",
+ features: [
+ "alloc",
+ "default",
+ "dev_urandom_fallback",
+ "once_cell",
+ "std",
+ ],
+ rustlibs: [
+ "liblibc",
+ "libonce_cell",
+ "libring",
+ "libspin",
+ "libuntrusted",
+ ],
cfgs: ["soong"],
}
rust_test {
name: "ring_test_tests_pbkdf2_tests",
- defaults: ["ring_test_defaults"],
- // has rustc warnings
host_supported: true,
+ crate_name: "pbkdf2_tests",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.17.0-alpha.11",
srcs: ["tests/pbkdf2_tests.rs"],
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
test_options: {
unit_test: true,
},
+ edition: "2018",
+ features: [
+ "alloc",
+ "default",
+ "dev_urandom_fallback",
+ "once_cell",
+ "std",
+ ],
+ rustlibs: [
+ "liblibc",
+ "libonce_cell",
+ "libring",
+ "libspin",
+ "libuntrusted",
+ ],
cfgs: ["soong"],
}
rust_test {
name: "ring_test_tests_quic_tests",
- defaults: ["ring_test_defaults"],
- // has rustc warnings
host_supported: true,
+ crate_name: "quic_tests",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.17.0-alpha.11",
srcs: ["tests/quic_tests.rs"],
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
test_options: {
unit_test: true,
},
+ edition: "2018",
+ features: [
+ "alloc",
+ "default",
+ "dev_urandom_fallback",
+ "once_cell",
+ "std",
+ ],
+ rustlibs: [
+ "liblibc",
+ "libonce_cell",
+ "libring",
+ "libspin",
+ "libuntrusted",
+ ],
cfgs: ["soong"],
}
rust_test {
name: "ring_test_tests_rand_tests",
- defaults: ["ring_test_defaults"],
- // has rustc warnings
host_supported: true,
+ crate_name: "rand_tests",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.17.0-alpha.11",
srcs: ["tests/rand_tests.rs"],
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
test_options: {
unit_test: true,
},
+ edition: "2018",
+ features: [
+ "alloc",
+ "default",
+ "dev_urandom_fallback",
+ "once_cell",
+ "std",
+ ],
+ rustlibs: [
+ "liblibc",
+ "libonce_cell",
+ "libring",
+ "libspin",
+ "libuntrusted",
+ ],
cfgs: ["soong"],
}
rust_test {
name: "ring_test_tests_rsa_tests",
- defaults: ["ring_test_defaults"],
- // has rustc warnings
host_supported: true,
+ crate_name: "rsa_tests",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.17.0-alpha.11",
srcs: ["tests/rsa_tests.rs"],
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
test_options: {
unit_test: true,
},
+ edition: "2018",
+ features: [
+ "alloc",
+ "default",
+ "dev_urandom_fallback",
+ "once_cell",
+ "std",
+ ],
+ rustlibs: [
+ "liblibc",
+ "libonce_cell",
+ "libring",
+ "libspin",
+ "libuntrusted",
+ ],
cfgs: ["soong"],
}
rust_test {
name: "ring_test_tests_signature_tests",
- defaults: ["ring_test_defaults"],
- // has rustc warnings
host_supported: true,
+ crate_name: "signature_tests",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.17.0-alpha.11",
srcs: ["tests/signature_tests.rs"],
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
test_options: {
unit_test: true,
},
+ edition: "2018",
+ features: [
+ "alloc",
+ "default",
+ "dev_urandom_fallback",
+ "once_cell",
+ "std",
+ ],
+ rustlibs: [
+ "liblibc",
+ "libonce_cell",
+ "libring",
+ "libspin",
+ "libuntrusted",
+ ],
+ cfgs: ["soong"],
+}
+
+rust_library_rlib {
+ name: "libring_nostd",
+ 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",
cfgs: ["soong"],
}