summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Geisler <mgeisler@google.com>2024-05-16 12:36:52 +0000
committerMartin Geisler <mgeisler@google.com>2024-05-16 12:36:52 +0000
commit5c862ea944f0d909d6dc00da5d63b0052fd5732e (patch)
tree71d0488f81cfff1ae6757d93fd954aa4ae5872c2
parent1b6e38c488584aeb6f24c6fc3962c5e28cdea131 (diff)
downloaduniffi_meta-main.tar.gz
Revert^2 "Add Android.bp file for libuniffi_meta"main
c93eab9f7e029244011642ccfad7292d4a397811 Change-Id: I732ad43afc11792ccc2f27e2d8170d77a0968e68
-rw-r--r--Android.bp59
-rw-r--r--cargo_embargo.json3
2 files changed, 61 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..fad11c4
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,59 @@
+// This file is generated by cargo_embargo.
+// Do not modify this file after the first "rust_*" or "genrule" module
+// because the changes will be overridden on upgrade.
+// Content before the first "rust_*" or "genrule" module is preserved.
+
+package {
+ default_applicable_licenses: ["external_rust_crates_uniffi_meta"],
+}
+
+// See: http://go/android-license-faq
+license {
+ name: "external_rust_crates_uniffi_meta",
+ visibility: [":__subpackages__"],
+ license_kinds: ["SPDX-license-identifier-MPL-2.0"],
+ license_text: ["LICENSE"],
+}
+
+rust_library {
+ name: "libuniffi_meta",
+ host_supported: true,
+ crate_name: "uniffi_meta",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.27.1",
+ srcs: ["src/lib.rs"],
+ edition: "2021",
+ rustlibs: [
+ "libanyhow",
+ "libbytes",
+ "libsiphasher",
+ ],
+ proc_macros: ["libuniffi_checksum_derive"],
+ apex_available: [
+ "//apex_available:platform",
+ "//apex_available:anyapex",
+ ],
+ product_available: true,
+ vendor_available: true,
+}
+
+rust_test {
+ name: "uniffi_meta_test_src_lib",
+ host_supported: true,
+ crate_name: "uniffi_meta",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.27.1",
+ srcs: ["src/lib.rs"],
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
+ test_options: {
+ unit_test: true,
+ },
+ edition: "2021",
+ rustlibs: [
+ "libanyhow",
+ "libbytes",
+ "libsiphasher",
+ ],
+ proc_macros: ["libuniffi_checksum_derive"],
+}
diff --git a/cargo_embargo.json b/cargo_embargo.json
index cb908d7..d40889a 100644
--- a/cargo_embargo.json
+++ b/cargo_embargo.json
@@ -1,3 +1,4 @@
{
- "run_cargo": false
+ "run_cargo": false,
+ "tests": true
}