Update criterion requirement from 0.5.1 to 0.6.0 (#3251)
* Update criterion requirement from 0.5.1 to 0.6.0 Updates the requirements on [criterion](https://github.com/bheisler/criterion.rs) to permit the latest version. - [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md) - [Commits](https://github.com/bheisler/criterion.rs/compare/0.5.1...0.6.0) --- updated-dependencies: - dependency-name: criterion dependency-version: 0.6.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * clippy * undo / too modern * clip --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dominik Maier <dmnk@google.com>
This commit is contained in:
parent
0015254071
commit
4dc5a8ed14
@ -1,24 +1,22 @@
|
||||
//! `LibAFL` functionality for filesystem interaction
|
||||
|
||||
use core::sync::atomic::AtomicU64;
|
||||
use core::sync::atomic::Ordering;
|
||||
use alloc::{borrow::ToOwned, string::String, sync::Arc, vec::Vec};
|
||||
use core::{
|
||||
sync::atomic::{AtomicU64, Ordering},
|
||||
time::Duration,
|
||||
};
|
||||
#[cfg(unix)]
|
||||
use std::os::unix::prelude::{AsRawFd, RawFd};
|
||||
use std::sync::OnceLock;
|
||||
|
||||
use alloc::string::String;
|
||||
use alloc::sync::Arc;
|
||||
use alloc::{borrow::ToOwned, vec::Vec};
|
||||
use core::time::Duration;
|
||||
|
||||
use crate::Error;
|
||||
use std::time::SystemTime;
|
||||
use std::{
|
||||
fs::{self, File, OpenOptions, remove_file},
|
||||
io::{Seek, Write},
|
||||
path::{Path, PathBuf},
|
||||
sync::OnceLock,
|
||||
time::SystemTime,
|
||||
};
|
||||
|
||||
use crate::Error;
|
||||
|
||||
/// The default filename to use to deliver testcases to the target
|
||||
pub const INPUTFILE_STD: &str = ".cur_input";
|
||||
|
||||
|
@ -64,10 +64,10 @@ unsafe extern "C" {
|
||||
pub static mut libafl_cmplog_map_extended_ptr: *mut CmpLogMap;
|
||||
}
|
||||
|
||||
#[cfg(feature = "cmplog")]
|
||||
pub use libafl_cmplog_map_ptr as CMPLOG_MAP_PTR;
|
||||
#[cfg(feature = "cmplog_extended_instrumentation")]
|
||||
pub use libafl_cmplog_map_extended_ptr as EXTENDED_CMPLOG_MAP_PTR;
|
||||
#[cfg(feature = "cmplog")]
|
||||
pub use libafl_cmplog_map_ptr as CMPLOG_MAP_PTR;
|
||||
|
||||
/// Value indicating if cmplog is enabled.
|
||||
#[unsafe(no_mangle)]
|
||||
|
@ -31,7 +31,6 @@ use nix::{
|
||||
use crate::cmps::EXTENDED_CMPLOG_MAP_PTR;
|
||||
#[cfg(feature = "cmplog")]
|
||||
use crate::cmps::{AflppCmpLogMap, CMPLOG_MAP_PTR};
|
||||
|
||||
use crate::coverage::{__afl_map_size, EDGES_MAP_PTR, INPUT_LENGTH_PTR, INPUT_PTR, SHM_FUZZING};
|
||||
#[cfg(any(target_os = "linux", target_vendor = "apple"))]
|
||||
use crate::coverage::{__token_start, __token_stop};
|
||||
|
@ -23,7 +23,7 @@ categories = [
|
||||
[dev-dependencies]
|
||||
libafl_bolts = { workspace = true, features = ["xxh3", "alloc"] } # libafl_bolts
|
||||
|
||||
criterion = "0.5.1" # Benchmarking
|
||||
criterion = "0.6.0" # Benchmarking
|
||||
ahash = { workspace = true, default-features = false } # The hash function already used in hashbrown
|
||||
rustc-hash = { version = "2.0.0", default-features = false } # yet another hash
|
||||
xxhash-rust = { version = "0.8.12", features = [
|
||||
|
@ -2,10 +2,11 @@
|
||||
|
||||
use core::{
|
||||
hash::{BuildHasher, Hasher},
|
||||
hint::black_box,
|
||||
num::NonZero,
|
||||
};
|
||||
|
||||
use criterion::{Criterion, black_box, criterion_group, criterion_main};
|
||||
use criterion::{Criterion, criterion_group, criterion_main};
|
||||
use libafl_bolts::rands::{Rand, StdRand};
|
||||
//use xxhash_rust::const_xxh3;
|
||||
use xxhash_rust::xxh3;
|
||||
|
@ -1,6 +1,8 @@
|
||||
//! Compare the speed of rand implementations
|
||||
|
||||
use criterion::{Criterion, black_box, criterion_group, criterion_main};
|
||||
use core::hint::black_box;
|
||||
|
||||
use criterion::{Criterion, criterion_group, criterion_main};
|
||||
use libafl_bolts::rands::{
|
||||
Lehmer64Rand, Rand, RomuDuoJrRand, RomuTrioRand, Sfc64Rand, XorShift64Rand,
|
||||
Xoshiro256PlusPlusRand,
|
||||
|
Loading…
x
Reference in New Issue
Block a user