aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-21 00:14:58 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-21 00:14:58 +0000
commit28f71f564031588e96edcef3ff1505612011b4b8 (patch)
treee1e2ae4bd72f62535c8154cd50081ebf4b47030b
parent987fdec6341c2c142c5e15030d35f3f55d733bf5 (diff)
parent2908e61d388a4106b60379636562b426f8bcb8db (diff)
downloadx509-cert-28f71f564031588e96edcef3ff1505612011b4b8.tar.gz
Snap for 11124398 from 2908e61d388a4106b60379636562b426f8bcb8db to 24Q1-release
Change-Id: I0faa07f924478beb063305cab8328499bf88f0e9
-rw-r--r--Android.bp8
-rw-r--r--cargo2android.json27
-rw-r--r--cargo_embargo.json36
3 files changed, 40 insertions, 31 deletions
diff --git a/Android.bp b/Android.bp
index fe377df..26efc7d 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 {
@@ -74,7 +74,7 @@ rust_library_rlib {
product_available: true,
vendor_available: true,
visibility: [
- "//system/keymint:__subpackages__",
- ]
- ,
+ "//system/keymint:__subpackages__",
+ ],
+
}
diff --git a/cargo2android.json b/cargo2android.json
deleted file mode 100644
index 76c47df..0000000
--- a/cargo2android.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "apex-available": [
- "//apex_available:platform",
- "com.android.virt"
- ],
- "run": true,
- "vendor-available": true,
- "features": "alloc",
- "variants": [
- {
- },
- {
- "device": true,
- "no-host": true,
- "add-module-block": "cargo2android_viz.bp",
- "dep-suffixes": {
- "const_oid": "_nostd",
- "der": "_nostd",
- "flagset": "_nostd",
- "spki": "_nostd"
- },
- "force-rlib": true,
- "suffix": "_nostd",
- "no-std": true
- }
- ]
-}
diff --git a/cargo_embargo.json b/cargo_embargo.json
new file mode 100644
index 0000000..9351aed
--- /dev/null
+++ b/cargo_embargo.json
@@ -0,0 +1,36 @@
+{
+ "apex_available": [
+ "//apex_available:platform",
+ "com.android.virt"
+ ],
+ "features": [
+ "alloc"
+ ],
+ "run_cargo": false,
+ "variants": [
+ {
+ "package": {
+ "x509-cert": {
+ "device_supported": false
+ }
+ }
+ },
+ {
+ "module_name_overrides": {
+ "libconst_oid": "libconst_oid_nostd",
+ "libder": "libder_nostd",
+ "libflagset": "libflagset_nostd",
+ "libspki": "libspki_nostd",
+ "libx509_cert": "libx509_cert_nostd"
+ },
+ "package": {
+ "x509-cert": {
+ "add_module_block": "cargo2android_viz.bp",
+ "force_rlib": true,
+ "host_supported": false,
+ "no_std": true
+ }
+ }
+ }
+ ]
+}