Use cargo2android.py with a patch file.

* No need to manually fix the .bp file after a version upgrade.
* Clean up post_update.sh
* Add the missing patch for src/lib.rs.
* Fix a rustc warning with the patch in src/lib.rs.

Bug: 172093078
Test: make and regenerate .bp
Change-Id: Ifa32265fa0e69dcef206be6b59d656793b12f7ec
5 files changed
tree: 02a80a842c7d0c33635a82bd78c39c22bf2b4d34
  1. patches/
  2. src/
  3. tests/
  4. .cargo_vcs_info.json
  5. .gitignore
  6. Android.bp
  7. AndroidTest.xml
  8. AndroidTest_exhaustive_tests.xml
  9. Cargo.toml
  10. Cargo.toml.orig
  11. COPYRIGHT
  12. LICENSE-APACHE
  13. LICENSE-MIT
  14. METADATA
  15. MODULE_LICENSE_APACHE2
  16. OWNERS
  17. post_update.sh
  18. README.md
  19. TEST_MAPPING
README.md

unicode-xid

Determine if a char is a valid identifier for a parser and/or lexer according to Unicode Standard Annex #31 rules.

Build Status

Documentation

extern crate unicode_xid;

use unicode_xid::UnicodeXID;

fn main() {
    let ch = 'a';
    println!("Is {} a valid start of an identifier? {}", ch, UnicodeXID::is_xid_start(ch));
}

features

unicode-xid supports a no_std feature. This eliminates dependence on std, and instead uses equivalent functions from core.

changelog

0.2.0

  • Update to Unicode 12.1.0.

0.1.0

  • Initial release.