diff options
author | Joel Galenson <jgalenson@google.com> | 2021-09-22 10:48:36 -0700 |
---|---|---|
committer | Joel Galenson <jgalenson@google.com> | 2021-09-22 10:48:36 -0700 |
commit | 991d7480610fd2b73f3f4116e0704dbfb913659b (patch) | |
tree | 7232be51c9c5eeb220a396170f6ec1dfb5dbd3f8 | |
parent | e0b2b28ae4a9ecfd299dd80de58fc7ec17e8f0c5 (diff) | |
download | arbitrary-991d7480610fd2b73f3f4116e0704dbfb913659b.tar.gz |
Upgrade rust/crates/arbitrary to 1.0.2
Test: make
Change-Id: I9efaf9b13e7064eb62005b97bda6d8284476b125
-rw-r--r-- | .cargo_vcs_info.json | 2 | ||||
-rw-r--r-- | Android.bp | 9 | ||||
-rw-r--r-- | CHANGELOG.md | 10 | ||||
-rw-r--r-- | Cargo.toml | 11 | ||||
-rw-r--r-- | Cargo.toml.orig | 2 | ||||
-rw-r--r-- | METADATA | 8 | ||||
-rw-r--r-- | src/lib.rs | 9 |
7 files changed, 29 insertions, 22 deletions
diff --git a/.cargo_vcs_info.json b/.cargo_vcs_info.json index 262c88c..2d96982 100644 --- a/.cargo_vcs_info.json +++ b/.cargo_vcs_info.json @@ -1,5 +1,5 @@ { "git": { - "sha1": "5ec3b33f05e8e993688ab872ca5e1a24f4802ebe" + "sha1": "ef27875e0311786ca5210a734c6288cb5d920614" } } @@ -41,6 +41,8 @@ rust_library_rlib { name: "libarbitrary", host_supported: true, crate_name: "arbitrary", + cargo_env_compat: true, + cargo_pkg_version: "1.0.2", srcs: ["src/lib.rs"], edition: "2018", features: [ @@ -49,10 +51,3 @@ rust_library_rlib { ], proc_macros: ["libderive_arbitrary"], } - -// dependent_library ["feature_list"] -// derive_arbitrary-1.0.1 -// proc-macro2-1.0.27 "default,proc-macro" -// quote-1.0.9 "default,proc-macro" -// syn-1.0.73 "clone-impls,default,derive,parsing,printing,proc-macro,quote" -// unicode-xid-0.2.2 "default" diff --git a/CHANGELOG.md b/CHANGELOG.md index 54dc917..0484728 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,16 @@ Released YYYY-MM-DD. * TODO (or remove section if none) +## 1.0.2 + +Released 2021-08-25. + +### Added + +* `Arbitrary` impls for `HashMap`s and `HashSet`s with custom `Hasher`s [#87](https://github.com/rust-fuzz/arbitrary/pull/87) + +-------------------------------------------------------------------------------- + ## 1.0.1 Released 2021-05-20. @@ -3,17 +3,16 @@ # 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" name = "arbitrary" -version = "1.0.1" +version = "1.0.2" authors = ["The Rust-Fuzz Project Developers", "Nick Fitzgerald <fitzgen@gmail.com>", "Manish Goregaokar <manishsmail@gmail.com>", "Simonas Kazlauskas <arbitrary@kazlauskas.me>", "Brian L. Troutwine <brian@troutwine.us>", "Corey Farwell <coreyf@rwell.org>"] description = "The trait for generating structured data from unstructured data" documentation = "https://docs.rs/arbitrary/" diff --git a/Cargo.toml.orig b/Cargo.toml.orig index e7f7951..63787aa 100644 --- a/Cargo.toml.orig +++ b/Cargo.toml.orig @@ -1,6 +1,6 @@ [package] name = "arbitrary" -version = "1.0.1" # Make sure this matches the derive crate version +version = "1.0.2" # Make sure this matches the derive crate version authors = [ "The Rust-Fuzz Project Developers", "Nick Fitzgerald <fitzgen@gmail.com>", @@ -7,13 +7,13 @@ third_party { } url { type: ARCHIVE - value: "https://static.crates.io/crates/arbitrary/arbitrary-1.0.1.crate" + value: "https://static.crates.io/crates/arbitrary/arbitrary-1.0.2.crate" } - version: "1.0.1" + version: "1.0.2" license_type: NOTICE last_upgrade_date { year: 2021 - month: 6 - day: 21 + month: 9 + day: 22 } } @@ -45,6 +45,7 @@ use core::time::Duration; use std::borrow::{Cow, ToOwned}; use std::collections::{BTreeMap, BTreeSet, BinaryHeap, HashMap, HashSet, LinkedList, VecDeque}; use std::ffi::{CString, OsString}; +use std::hash::BuildHasher; use std::net::{Ipv4Addr, Ipv6Addr}; use std::path::PathBuf; use std::rc::Rc; @@ -736,8 +737,8 @@ impl<'a, A: Arbitrary<'a> + Ord> Arbitrary<'a> for BinaryHeap<A> { } } -impl<'a, K: Arbitrary<'a> + Eq + ::std::hash::Hash, V: Arbitrary<'a>> Arbitrary<'a> - for HashMap<K, V> +impl<'a, K: Arbitrary<'a> + Eq + ::std::hash::Hash, V: Arbitrary<'a>, S: BuildHasher + Default> + Arbitrary<'a> for HashMap<K, V, S> { fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { u.arbitrary_iter()?.collect() @@ -753,7 +754,9 @@ impl<'a, K: Arbitrary<'a> + Eq + ::std::hash::Hash, V: Arbitrary<'a>> Arbitrary< } } -impl<'a, A: Arbitrary<'a> + Eq + ::std::hash::Hash> Arbitrary<'a> for HashSet<A> { +impl<'a, A: Arbitrary<'a> + Eq + ::std::hash::Hash, S: BuildHasher + Default> Arbitrary<'a> + for HashSet<A, S> +{ fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { u.arbitrary_iter()?.collect() } |