deps: Update Arbitrary to 1.0; libfuzzer-sys to 0.4.0; wasm-smith to 0.4.0

This commit is contained in:
Nick Fitzgerald
2021-02-25 14:35:47 -08:00
committed by Andrew Brown
parent ebbe626e79
commit 824ce7bf89
7 changed files with 20 additions and 41 deletions

View File

@@ -9,7 +9,7 @@ license = "Apache-2.0 WITH LLVM-exception"
[dependencies]
anyhow = "1.0.22"
arbitrary = { version = "0.4.1", features = ["derive"] }
arbitrary = { version = "1.0.0", features = ["derive"] }
env_logger = "0.8.1"
log = "0.4.8"
rayon = "1.2.1"
@@ -18,7 +18,7 @@ wasmprinter = "0.2.23"
wasmtime = { path = "../wasmtime" }
wasmtime-wast = { path = "../wast" }
wasm-encoder = "0.4"
wasm-smith = "0.3.1"
wasm-smith = "0.4.0"
wasmi = "0.7.0"
[dev-dependencies]

View File

@@ -102,8 +102,8 @@ pub struct SpecTest {
pub contents: &'static str,
}
impl Arbitrary for SpecTest {
fn arbitrary(u: &mut Unstructured) -> arbitrary::Result<Self> {
impl<'a> Arbitrary<'a> for SpecTest {
fn arbitrary(u: &mut Unstructured<'a>) -> arbitrary::Result<Self> {
// NB: this does get a uniform value in the provided range.
let i = u.int_in_range(0..=FILES.len() - 1)?;
let (file, contents) = FILES[i];

View File

@@ -79,8 +79,8 @@ pub struct ApiCalls {
pub calls: Vec<ApiCall>,
}
impl Arbitrary for ApiCalls {
fn arbitrary(input: &mut Unstructured) -> arbitrary::Result<Self> {
impl<'a> Arbitrary<'a> for ApiCalls {
fn arbitrary(input: &mut Unstructured<'a>) -> arbitrary::Result<Self> {
crate::init_fuzzing();
let swarm = Swarm::arbitrary(input)?;