Third-Party Import of: https://crates.io/crates/ucs2

Request Document: go/android3p
For CL Reviewers: go/android3p#reviewing-a-cl
For Build Team: go/ab-third-party-imports

Generated through these steps
(in ~src/android/aosp-main-future-without-vendor repo):
1. python3 development/scripts/get_rust_pkg.py -add3prf -v -o /tmp
   ucs2-0.3.3
2. cp -r /tmp/ucs2-0.3.3/* external/rust/crates/ucs2

Test: -
Bug: 375623775

Original import of the code can be found at: https://googleplex-android.googlesource.com/platform/external/rust/crates/ucs2/+/refs/heads/third-party-review.
Security Questionnaire: http://b/375623775#comment1

Change-Id: I65b205bebf883d17633867a3fbfebf001e979a2e
11 files changed
tree: 0e6d9971d4ea8e203593c525fdb9b2df0ac84ee2
  1. src/
  2. tests/
  3. Cargo.toml
  4. Cargo.toml.orig
  5. CHANGELOG.md
  6. LICENSE
  7. METADATA
  8. MODULE_LICENSE_MPL
  9. OWNERS
  10. README.md
README.md

ucs2-rs

UCS2 crate on crates.io UCS2 docs on docs.rs Licensed under MPL-2.0

UCS-2 handling for Rust.

Note that UCS-2 is the predecessor of UTF-16. It is a fixed-length encoding, and it is used for things like UEFI.

History

This crate arose out of the needs of the uefi-rs crate. The code was extracted and placed here for easier maintenance and easier reuse.

Most of the initial code has been contributed by FredrikAleksander.

License

Licensed under the Mozilla Public License 2.0. See the LICENSE file for the full text.