From 1cc1129568e8f6917028f7ecbd49ec918191b105 Mon Sep 17 00:00:00 2001 From: Matthew Maurer Date: Thu, 23 Mar 2023 22:06:02 +0000 Subject: Upgrade pest to 2.5.6 This project was upgraded with external_updater. Usage: tools/external_updater/updater.sh update rust/crates/pest For more info, check https://cs.android.com/android/platform/superproject/+/master:tools/external_updater/README.md Test: TreeHugger Bug: 276463929 Change-Id: If38dfd1c4db0d287866f6e898e7ee8c5d5c69ac8 --- Android.bp | 4 +++- Cargo.lock | 22 +++++++++++----------- Cargo.toml | 2 +- Cargo.toml.orig | 2 +- METADATA | 8 ++++---- _README.md | 23 +++++++++++++++++++++++ 6 files changed, 43 insertions(+), 18 deletions(-) diff --git a/Android.bp b/Android.bp index d49f319..2dfec95 100644 --- a/Android.bp +++ b/Android.bp @@ -41,7 +41,7 @@ rust_library_host { name: "libpest", crate_name: "pest", cargo_env_compat: true, - cargo_pkg_version: "2.5.5", + cargo_pkg_version: "2.5.6", srcs: ["src/lib.rs"], edition: "2021", features: [ @@ -54,4 +54,6 @@ rust_library_host { "libucd_trie", ], compile_multilib: "first", + product_available: true, + vendor_available: true, } diff --git a/Cargo.lock b/Cargo.lock index 053e07f..cc8ffe5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,9 +4,9 @@ version = 3 [[package]] name = "itoa" -version = "1.0.5" +version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fad582f4b9e86b6caa621cabeb0963332d92eea04729ab12892c2533951e6440" +checksum = "453ad9f582a441959e5f0d088b02ce04cfe8d51a8eaf077f12ac6d3e94164ca6" [[package]] name = "memchr" @@ -16,7 +16,7 @@ checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" [[package]] name = "pest" -version = "2.5.5" +version = "2.5.6" dependencies = [ "memchr", "serde", @@ -45,9 +45,9 @@ dependencies = [ [[package]] name = "ryu" -version = "1.0.12" +version = "1.0.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b4b9743ed687d4b4bcedf9ff5eaa7398495ae14e61cba0a295704edbc7decde" +checksum = "f91339c0467de62360649f8d3e185ca8de4224ff281f66000de5eb2a77a79041" [[package]] name = "serde" @@ -57,9 +57,9 @@ checksum = "bb7d1f0d3021d347a83e556fc4683dea2ea09d87bccdf88ff5c12545d89d5efb" [[package]] name = "serde_json" -version = "1.0.92" +version = "1.0.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7434af0dc1cbd59268aa98b4c22c131c0584d2232f6fb166efb993e2832e896a" +checksum = "cad406b69c91885b5107daf2c29572f6c8cdb3c66826821e286c533490c0bc76" dependencies = [ "itoa", "ryu", @@ -68,9 +68,9 @@ dependencies = [ [[package]] name = "syn" -version = "1.0.107" +version = "1.0.109" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" dependencies = [ "proc-macro2", "quote", @@ -105,6 +105,6 @@ checksum = "9e79c4d996edb816c91e4308506774452e55e95c3c9de07b6729e17e15a5ef81" [[package]] name = "unicode-ident" -version = "1.0.6" +version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" +checksum = "775c11906edafc97bc378816b94585fbd9a054eabaf86fdd0ced94af449efab7" diff --git a/Cargo.toml b/Cargo.toml index 3c1f26d..79d715d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ edition = "2021" rust-version = "1.56" name = "pest" -version = "2.5.5" +version = "2.5.6" authors = ["DragoČ™ Tiselice "] description = "The Elegant Parser" homepage = "https://pest.rs/" diff --git a/Cargo.toml.orig b/Cargo.toml.orig index a268321..dc3080c 100644 --- a/Cargo.toml.orig +++ b/Cargo.toml.orig @@ -1,7 +1,7 @@ [package] name = "pest" description = "The Elegant Parser" -version = "2.5.5" +version = "2.5.6" edition = "2021" authors = ["DragoČ™ Tiselice "] homepage = "https://pest.rs/" diff --git a/METADATA b/METADATA index ce195cf..700defc 100644 --- a/METADATA +++ b/METADATA @@ -11,13 +11,13 @@ third_party { } url { type: ARCHIVE - value: "https://static.crates.io/crates/pest/pest-2.5.5.crate" + value: "https://static.crates.io/crates/pest/pest-2.5.6.crate" } - version: "2.5.5" + version: "2.5.6" license_type: NOTICE last_upgrade_date { year: 2023 - month: 2 - day: 16 + month: 3 + day: 23 } } diff --git a/_README.md b/_README.md index da30ab7..9d38afa 100644 --- a/_README.md +++ b/_README.md @@ -203,6 +203,29 @@ mod b { This library should always compile with default features on **Rust 1.56.1** or **Rust 1.61** with `const_prec_climber`. +## no_std support + +The `pest` and `pest_derive` crates can be built without the Rust standard +library and target embedded environments. To do so, you need to disable +their default features. In your `Cargo.toml`, you can specify it as follows: + +```toml +[dependencies] +# ... +pest = { version = "2", default-features = false } +pest_derive = { version = "2", default-features = false } +``` + +If you want to build these crates in the pest repository's workspace, you can +pass the `--no-default-features` flag to `cargo` and specify these crates using +the `--package` (`-p`) flag. For example: + +```bash +$ cargo build --target thumbv7em-none-eabihf --no-default-features -p pest +$ cargo bootstrap +$ cargo build --target thumbv7em-none-eabihf --no-default-features -p pest_derive +``` + ## Special thanks A special round of applause goes to prof. Marius Minea for his guidance and all -- cgit v1.2.3