diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 04:55:17 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 04:55:17 +0000 |
commit | 5e188e2bc706fba02d08188070ce68d23348b04e (patch) | |
tree | 931dcf5bad512a87570b4485366ad348d2904de7 | |
parent | f8a55d02a8d3393f4d1672d4a10e59a9cd458e83 (diff) | |
parent | 563b03588232e04fb7d335b6d8c649b01a57e717 (diff) | |
download | form_urlencoded-5e188e2bc706fba02d08188070ce68d23348b04e.tar.gz |
Snap for 10453563 from 563b03588232e04fb7d335b6d8c649b01a57e717 to mainline-media-swcodec-releaseaml_swc_341711000aml_swc_341619000aml_swc_341513600aml_swc_341312300aml_swc_341312020aml_swc_341111000aml_swc_341011020aml_swc_340922010android14-mainline-media-swcodec-release
Change-Id: Ic6a56c98604810e8fba4e0ecf402e30d739a4124
-rw-r--r-- | .cargo_vcs_info.json | 7 | ||||
-rw-r--r-- | Android.bp | 5 | ||||
-rw-r--r-- | Cargo.toml | 18 | ||||
-rw-r--r-- | Cargo.toml.orig | 8 | ||||
-rw-r--r-- | METADATA | 14 | ||||
-rw-r--r-- | TEST_MAPPING | 11 | ||||
-rw-r--r-- | src/lib.rs | 6 |
7 files changed, 31 insertions, 38 deletions
diff --git a/.cargo_vcs_info.json b/.cargo_vcs_info.json index cc75365..aec1933 100644 --- a/.cargo_vcs_info.json +++ b/.cargo_vcs_info.json @@ -1,5 +1,6 @@ { "git": { - "sha1": "ea7a69e9d69248ca6f69a6294abed225754f92fe" - } -} + "sha1": "359bc90a4f07224f79cc79c45dc873d44bcd6f14" + }, + "path_in_vcs": "form_urlencoded" +}
\ No newline at end of file @@ -45,16 +45,17 @@ rust_library { host_supported: true, crate_name: "form_urlencoded", cargo_env_compat: true, - cargo_pkg_version: "1.0.1", + cargo_pkg_version: "1.1.0", srcs: ["src/lib.rs"], edition: "2018", rustlibs: [ - "libmatches", "libpercent_encoding", ], apex_available: [ "//apex_available:platform", "com.android.resolv", ], + product_available: true, + vendor_available: true, min_sdk_version: "29", } @@ -3,26 +3,24 @@ # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies -# to registry (e.g., crates.io) dependencies +# to registry (e.g., crates.io) dependencies. # -# If you believe there's an error in this file please file an -# issue against the rust-lang/cargo repository. If you're -# editing this file be aware that the upstream Cargo.toml -# will likely look very different (and much more reasonable) +# If you are reading this file be aware that the original Cargo.toml +# will likely look very different (and much more reasonable). +# See Cargo.toml.orig for the original contents. [package] edition = "2018" +rust-version = "1.51" name = "form_urlencoded" -version = "1.0.1" +version = "1.1.0" authors = ["The rust-url developers"] description = "Parser and serializer for the application/x-www-form-urlencoded syntax, as used by HTML forms." -license = "MIT/Apache-2.0" +license = "MIT OR Apache-2.0" repository = "https://github.com/servo/rust-url" [lib] test = false -[dependencies.matches] -version = "0.1" [dependencies.percent-encoding] -version = "2.1.0" +version = "2.2.0" diff --git a/Cargo.toml.orig b/Cargo.toml.orig index 0c603bd..bdbb5ce 100644 --- a/Cargo.toml.orig +++ b/Cargo.toml.orig @@ -1,15 +1,15 @@ [package] name = "form_urlencoded" -version = "1.0.1" +version = "1.1.0" authors = ["The rust-url developers"] description = "Parser and serializer for the application/x-www-form-urlencoded syntax, as used by HTML forms." repository = "https://github.com/servo/rust-url" -license = "MIT/Apache-2.0" +license = "MIT OR Apache-2.0" edition = "2018" +rust-version = "1.51" [lib] test = false [dependencies] -matches = "0.1" -percent-encoding = { version = "2.1.0", path = "../percent_encoding" } +percent-encoding = { version = "2.2.0", path = "../percent_encoding" } @@ -1,3 +1,7 @@ +# This project was upgraded with external_updater. +# Usage: tools/external_updater/updater.sh update rust/crates/form_urlencoded +# For more info, check https://cs.android.com/android/platform/superproject/+/master:tools/external_updater/README.md + name: "form_urlencoded" description: "Parser and serializer for the application/x-www-form-urlencoded syntax, as used by HTML forms." third_party { @@ -7,13 +11,13 @@ third_party { } url { type: ARCHIVE - value: "https://static.crates.io/crates/form_urlencoded/form_urlencoded-1.0.1.crate" + value: "https://static.crates.io/crates/form_urlencoded/form_urlencoded-1.1.0.crate" } - version: "1.0.1" + version: "1.1.0" license_type: NOTICE last_upgrade_date { - year: 2021 - month: 2 - day: 19 + year: 2022 + month: 12 + day: 9 } } diff --git a/TEST_MAPPING b/TEST_MAPPING index 407ec5c..b2d8ebc 100644 --- a/TEST_MAPPING +++ b/TEST_MAPPING @@ -6,16 +6,9 @@ }, { "path": "external/rust/crates/url" - } - ], - "presubmit": [ - { - "name": "doh_unit_test" - } - ], - "presubmit-rust": [ + }, { - "name": "doh_unit_test" + "path": "packages/modules/DnsResolver" } ] } @@ -13,9 +13,6 @@ //! Converts between a string (such as an URL’s query string) //! and a sequence of (name, value) pairs. -#[macro_use] -extern crate matches; - use percent_encoding::{percent_decode, percent_encode_byte}; use std::borrow::{Borrow, Cow}; use std::str; @@ -402,8 +399,7 @@ pub(crate) fn decode_utf8_lossy(input: Cow<'_, [u8]>) -> Cow<'_, str> { // replace invalid bytes with a placeholder. // First we do a debug_assert to confirm our description above. - let raw_utf8: *const [u8]; - raw_utf8 = utf8.as_bytes(); + let raw_utf8: *const [u8] = utf8.as_bytes(); debug_assert!(raw_utf8 == &*bytes as *const [u8]); // Given we know the original input bytes are valid UTF-8, |