Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions crates/fuzzing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,6 @@ pub fn init_fuzzing() {
});
}

/// One time start up initialization for fuzzing:
///
/// * Enables `env_logger`.
///
/// * Restricts `rayon` to a single thread in its thread pool, for more
/// deterministic executions.
///
/// If a fuzz target is taking raw input bytes from the fuzzer, it is fine to
/// call this function in the fuzz target's oracle or in the fuzz target
/// itself. However, if the fuzz target takes an `Arbitrary` type, and the
/// `Arbitrary` implementation is not derived and does interesting things, then
/// the `Arbitrary` implementation should call this function, since it runs
/// before the fuzz target itself.
pub fn misc_init() {
init_fuzzing();
oracles::component_async::init();
}

fn block_on<F: Future>(future: F) -> F::Output {
const MAX_POLLS: u32 = 100_000;

Expand Down
7 changes: 7 additions & 0 deletions fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,10 @@ path = "fuzz_targets/gc_ops.rs"
test = false
doc = false
bench = false

[[bin]]
name = "component_async"
path = "fuzz_targets/component_async.rs"
test = false
doc = false
bench = false
Loading
Loading