From 11771c33231f4904b2189af1a833ee6dce2a0c86 Mon Sep 17 00:00:00 2001 From: Douman Date: Mon, 7 Jun 2021 06:54:16 +0900 Subject: [PATCH] Bump xxhash-rust minimal version to fixed one (#153) * Bump minimal xxhash_rust version to 0.8.2 Note that 0.8.1 bug doesn't affect current usage, but still do it just in case * Do not use const xxh3 not in cosnt context --- libafl/Cargo.toml | 4 ++-- libafl/src/bolts/tuples.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libafl/Cargo.toml b/libafl/Cargo.toml index 58f57ea890..1cfa0b0796 100644 --- a/libafl/Cargo.toml +++ b/libafl/Cargo.toml @@ -18,7 +18,7 @@ rustc_version = "0.3.3" criterion = "0.3" # Benchmarking ahash = "0.6.1" # another hash fxhash = "0.2.1" # yet another hash -xxhash-rust = { version = "0.8.0", features = ["const_xxh3", "xxh3"] } # xxh3 hashing for rust +xxhash-rust = { version = "0.8.2", features = ["xxh3"] } # xxh3 hashing for rust serde_json = "1.0.60" num_cpus = "1.0" # cpu count, for llmp example @@ -56,7 +56,7 @@ libafl_derive = { optional = true, path = "../libafl_derive", version = "0.3.2" tuple_list = "0.1.2" hashbrown = { version = "0.9", features = ["serde", "ahash-compile-time-rng"] } # A faster hashmap, nostd compatible num = "0.4.0" -xxhash-rust = { version = "0.8.0", features = ["xxh3", "const_xxh3"] } # xxh3 hashing for rust +xxhash-rust = { version = "0.8.2", features = ["xxh3"] } # xxh3 hashing for rust serde = { version = "1.0", default-features = false, features = ["alloc"] } # serialization lib erased-serde = "0.3.12" postcard = { version = "0.5.1", features = ["alloc"] } # no_std compatible serde serialization fromat diff --git a/libafl/src/bolts/tuples.rs b/libafl/src/bolts/tuples.rs index e9ae0f0c83..33cb9b0bd3 100644 --- a/libafl/src/bolts/tuples.rs +++ b/libafl/src/bolts/tuples.rs @@ -4,7 +4,7 @@ pub use tuple_list::{tuple_list, tuple_list_type, TupleList}; use core::any::TypeId; -use xxhash_rust::const_xxh3::xxh3_64; +use xxhash_rust::xxh3::xxh3_64; #[cfg(feature = "RUSTC_IS_NIGHTLY")] /// From https://stackoverflow.com/a/60138532/7658998