diff options
author | Ted Bauer <tedbauer@google.com> | 2024-03-27 21:12:28 +0000 |
---|---|---|
committer | Ted Bauer <tedbauer@google.com> | 2024-03-27 22:17:52 +0000 |
commit | 3826c4c245a78ece198cf49266d1713d8ba7bf1d (patch) | |
tree | e0778bbd957c714265f16cef68a729439b3e98b4 | |
parent | 7327b24d65cae8db8542aa86b974f8ace42a6147 (diff) | |
download | clap-3826c4c245a78ece198cf49266d1713d8ba7bf1d.tar.gz |
Make crate apex-available
This dependency should be usable on any mainline module, so set it to the lowest possible min_sdk_version.
Test: m
Bug: 328444881
Change-Id: I9c74fe37f479832c4fa5f5dc73c822b4907adf43
-rw-r--r-- | Android.bp | 6 | ||||
-rw-r--r-- | cargo_embargo.json | 5 |
2 files changed, 9 insertions, 2 deletions
@@ -1,5 +1,6 @@ // This file is generated by cargo_embargo. -// Do not modify this file as changes will be overridden on upgrade. +// Do not modify this file as most changes will be overridden on upgrade. +// Content before the first "rust_*" or "genrule" module is preserved. package { default_applicable_licenses: ["external_rust_crates_clap_license"], @@ -59,11 +60,12 @@ rust_library { ], proc_macros: ["libclap_derive"], apex_available: [ - "//apex_available:platform", "//apex_available:anyapex", + "//apex_available:platform", ], product_available: true, vendor_available: true, + min_sdk_version: "29", } rust_binary { diff --git a/cargo_embargo.json b/cargo_embargo.json index 235341a..bdeac14 100644 --- a/cargo_embargo.json +++ b/cargo_embargo.json @@ -9,5 +9,10 @@ "module_name_overrides": { "libbitflags": "libbitflags-1.3.2" }, + "apex_available": [ + "//apex_available:anyapex", + "//apex_available:platform" + ], + "min_sdk_version": "29", "run_cargo": false } |