ucs2: Add no_std variant am: 5c85611486
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ucs2/+/3361546
Change-Id: I820630d2fe36caa91852571bd77660581891bf7e
Signed-off-by: Automerger Merge Worker <[email protected]>
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..ea68943
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,36 @@
+// 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_ucs2_license"],
+ default_team: "trendy_team_android_rust",
+}
+
+license {
+ name: "external_rust_crates_ucs2_license",
+ visibility: [":__subpackages__"],
+ license_kinds: ["SPDX-license-identifier-MPL-2.0"],
+ license_text: ["LICENSE"],
+}
+
+rust_library_rlib {
+ name: "libucs2_nostd",
+ crate_name: "ucs2",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.3.3",
+ crate_root: "src/lib.rs",
+ edition: "2021",
+ rustlibs: ["libbit_field_nostd"],
+ apex_available: [
+ "//apex_available:platform",
+ "//apex_available:anyapex",
+ ],
+ prefer_rlib: true,
+ no_stdlibs: true,
+ stdlibs: [
+ "libcompiler_builtins.rust_sysroot",
+ "libcore.rust_sysroot",
+ ],
+ product_available: true,
+ vendor_available: true,
+}
diff --git a/cargo_embargo.json b/cargo_embargo.json
new file mode 100644
index 0000000..c1dd1e6
--- /dev/null
+++ b/cargo_embargo.json
@@ -0,0 +1,14 @@
+{
+ "run_cargo": false,
+ "module_name_overrides": {
+ "libucs2": "libucs2_nostd",
+ "libbit_field": "libbit_field_nostd"
+ },
+ "package": {
+ "ucs2": {
+ "force_rlib": true,
+ "host_supported": false,
+ "no_std": true
+ }
+ }
+}