From e4338755d773e28e0f574169c03c51d0d20a1a9c Mon Sep 17 00:00:00 2001 From: Sabaun Taraki Date: Wed, 13 Sep 2023 19:21:10 +0300 Subject: [PATCH] fmt, add doc to script --- utils/runtime-fuzzer/bin/run_corpus.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/utils/runtime-fuzzer/bin/run_corpus.rs b/utils/runtime-fuzzer/bin/run_corpus.rs index db65e69fae7..3925f28115d 100644 --- a/utils/runtime-fuzzer/bin/run_corpus.rs +++ b/utils/runtime-fuzzer/bin/run_corpus.rs @@ -17,17 +17,17 @@ // along with this program. If not, see . //! Runs provided from the cli corpus - -//! Just simply run `cargo run -- -p `. +//! +//! Alternatively, `cargo fuzz run` can be used to reproduce some corpus, +//! but it won't give logs of [`GearCalls`] generation, which sheds some +//! light on how `gear-wasm-gen` worked. +//! Just simply run `cargo run --release -- -p `. use anyhow::Result; use arbitrary::{Arbitrary, Unstructured}; -use std::{ - fs, - path::PathBuf, -}; -use runtime_fuzzer::{GearCalls, self}; use clap::Parser; +use runtime_fuzzer::{self, GearCalls}; +use std::{fs, path::PathBuf}; /// A simple tool to run corpus. #[derive(Debug, Parser)]