num_enum: Add cargo_embargo.json and Android.bp Add build files, disable tests due to the significant number of additional crate dependencies required. Bug: 359646531 Bug: 360132122 Test: TH/manual Change-Id: I0c20c4e625b84520f7a6abe719535f4532114d3f Signed-off-by: Neill Kapron <[email protected]>
diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..bf72f4e --- /dev/null +++ b/Android.bp
@@ -0,0 +1,35 @@ +// This file is generated by cargo_embargo. +// Do not modify this file because the changes will be overridden on upgrade. + +package { + default_applicable_licenses: ["external_rust_crates_num_enum_license"], + default_team: "trendy_team_android_rust", +} + +license { + name: "external_rust_crates_num_enum_license", + visibility: [":__subpackages__"], + license_kinds: ["SPDX-license-identifier-Apache-2.0"], + license_text: ["LICENSE"], +} + +rust_library { + name: "libnum_enum", + host_supported: true, + crate_name: "num_enum", + cargo_env_compat: true, + cargo_pkg_version: "0.7.3", + crate_root: "src/lib.rs", + edition: "2021", + features: [ + "default", + "std", + ], + proc_macros: ["libnum_enum_derive"], + apex_available: [ + "//apex_available:platform", + "//apex_available:anyapex", + ], + product_available: true, + vendor_available: true, +}
diff --git a/cargo_embargo.json b/cargo_embargo.json new file mode 100644 index 0000000..1bbaa25 --- /dev/null +++ b/cargo_embargo.json
@@ -0,0 +1,4 @@ +{ + "run_cargo": false, + "tests": false +}