From ca99c6ed499fc3cdd4844c00d4fbf181fbd565f4 Mon Sep 17 00:00:00 2001 From: Cameron Bytheway Date: Tue, 26 Nov 2024 17:27:16 -0700 Subject: [PATCH] chore: release 0.12.0 (#262) --- bin/cargo-bolero/Cargo.toml | 14 +++++++------- lib/bolero-afl/Cargo.toml | 4 ++-- lib/bolero-afl/src/lib.rs | 2 +- lib/bolero-engine/Cargo.toml | 8 ++++---- lib/bolero-engine/src/any.rs | 2 +- lib/bolero-engine/src/lib.rs | 2 +- lib/bolero-engine/src/test.rs | 2 +- lib/bolero-generator-derive/Cargo.toml | 4 ++-- lib/bolero-generator/Cargo.toml | 4 ++-- lib/bolero-honggfuzz/Cargo.toml | 6 +++--- lib/bolero-honggfuzz/src/lib.rs | 2 +- lib/bolero-kani/Cargo.toml | 6 +++--- lib/bolero-libfuzzer/Cargo.toml | 6 +++--- lib/bolero-libfuzzer/src/lib.rs | 2 +- lib/bolero/Cargo.toml | 20 ++++++++++---------- lib/bolero/src/lib.rs | 2 +- lib/bolero/src/test/mod.rs | 4 ++-- 17 files changed, 45 insertions(+), 45 deletions(-) diff --git a/bin/cargo-bolero/Cargo.toml b/bin/cargo-bolero/Cargo.toml index f1b1db6..fbda6a3 100644 --- a/bin/cargo-bolero/Cargo.toml +++ b/bin/cargo-bolero/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "cargo-bolero" -version = "0.11.2" +version = "0.12.0" authors = ["Cameron Bytheway "] description = "cargo command for running bolero fuzz tests" homepage = "https://github.com/camshaft/bolero" repository = "https://github.com/camshaft/bolero" keywords = ["testing", "quickcheck", "property", "fuzz", "fuzzing"] license = "MIT" -edition = "2018" +edition = "2021" readme = "README.md" rust-version = "1.76.0" @@ -20,10 +20,10 @@ libfuzzer = [] [dependencies] anyhow = "1.0" -bit-set = "0.5" -bolero-afl = { version = "0.11", path = "../../lib/bolero-afl", default-features = false, features = ["bin"], optional = true } -bolero-honggfuzz = { version = "0.11", path = "../../lib/bolero-honggfuzz", default-features = false, features = ["bin"], optional = true } -cargo_metadata = "0.18" +bit-set = "0.8" +bolero-afl = { version = "0.12", path = "../../lib/bolero-afl", default-features = false, features = ["bin"], optional = true } +bolero-honggfuzz = { version = "0.12", path = "../../lib/bolero-honggfuzz", default-features = false, features = ["bin"], optional = true } +cargo_metadata = "0.19" humantime = "2" lazy_static = "1" rustc_version = "0.4" @@ -34,7 +34,7 @@ tar = "0.4" tempfile = "3" [dev-dependencies] -bolero = { version = "0.11", path = "../../lib/bolero" } +bolero = { version = "0.12", path = "../../lib/bolero" } [[test]] name = "fuzz_bytes" diff --git a/lib/bolero-afl/Cargo.toml b/lib/bolero-afl/Cargo.toml index f7f62c6..f0fc702 100644 --- a/lib/bolero-afl/Cargo.toml +++ b/lib/bolero-afl/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bolero-afl" -version = "0.11.0" +version = "0.12.0" authors = ["Cameron Bytheway "] description = "afl plugin for bolero" homepage = "https://github.com/camshaft/bolero" @@ -16,7 +16,7 @@ bin = [] lib = ["bolero-engine"] [dependencies] -bolero-engine = { version = "0.11", path = "../bolero-engine", optional = true } +bolero-engine = { version = "0.12", path = "../bolero-engine", optional = true } [build-dependencies] cc = "1.0" diff --git a/lib/bolero-afl/src/lib.rs b/lib/bolero-afl/src/lib.rs index 0aa4e8e..9712f23 100644 --- a/lib/bolero-afl/src/lib.rs +++ b/lib/bolero-afl/src/lib.rs @@ -59,7 +59,7 @@ pub mod fuzzer { fn run(self, mut test: F, options: driver::Options) -> Self::Output where - F: FnMut() -> R, + F: FnMut() -> R + core::panic::RefUnwindSafe, R: bolero_engine::IntoResult, { panic::set_hook(); diff --git a/lib/bolero-engine/Cargo.toml b/lib/bolero-engine/Cargo.toml index 790c64f..d46caa9 100644 --- a/lib/bolero-engine/Cargo.toml +++ b/lib/bolero-engine/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "bolero-engine" -version = "0.11.2" +version = "0.12.0" authors = ["Cameron Bytheway "] description = "fuzz and property testing framework" homepage = "https://github.com/camshaft/bolero" repository = "https://github.com/camshaft/bolero" keywords = ["testing", "quickcheck", "property", "fuzz", "fuzzing"] license = "MIT" -edition = "2018" +edition = "2021" readme = "../../README.md" rust-version = "1.66.0" @@ -18,7 +18,7 @@ rng = ["rand", "rand_xoshiro", "bolero-generator/alloc"] [dependencies] anyhow = "1" -bolero-generator = { version = "0.11", path = "../bolero-generator", default-features = false } +bolero-generator = { version = "0.12", path = "../bolero-generator", default-features = false } lazy_static = "1" pretty-hex = { version = "0.4", default-features = false } rand = { version = "0.8", optional = true } @@ -28,7 +28,7 @@ rand_xoshiro = { version = "0.6", optional = true } backtrace = { version = "0.3", default-features = false, features = ["std"] } [dev-dependencies] -bolero-generator = { version = "0.11", path = "../bolero-generator", features = ["std"] } +bolero-generator = { version = "0.12", path = "../bolero-generator", features = ["std"] } rand = "0.8" rand_xoshiro = "0.6" diff --git a/lib/bolero-engine/src/any.rs b/lib/bolero-engine/src/any.rs index f1f1e18..b8846cc 100644 --- a/lib/bolero-engine/src/any.rs +++ b/lib/bolero-engine/src/any.rs @@ -6,7 +6,7 @@ pub use bolero_generator::any::*; pub fn run(driver: Box, test: F) -> (Box, Result) where D: 'static + bolero_generator::driver::object::DynDriver + core::any::Any + Sized, - F: FnMut() -> R, + F: FnMut() -> R + core::panic::RefUnwindSafe, R: super::IntoResult, { let mut test = core::panic::AssertUnwindSafe(test); diff --git a/lib/bolero-engine/src/lib.rs b/lib/bolero-engine/src/lib.rs index 4b9745f..6264a1d 100644 --- a/lib/bolero-engine/src/lib.rs +++ b/lib/bolero-engine/src/lib.rs @@ -43,7 +43,7 @@ pub trait ScopedEngine { fn run(self, test: F, options: driver::Options) -> Self::Output where - F: FnMut() -> R, + F: FnMut() -> R + core::panic::RefUnwindSafe, R: IntoResult; } diff --git a/lib/bolero-engine/src/test.rs b/lib/bolero-engine/src/test.rs index 6794446..92437e8 100644 --- a/lib/bolero-engine/src/test.rs +++ b/lib/bolero-engine/src/test.rs @@ -244,7 +244,7 @@ impl Ret, G: ValueGenerator, Ret> Test for ClonedGeneratorTest where Ret: IntoResult, - G::Output: core::fmt::Debug + Clone, + G::Output: core::fmt::Debug + Clone + RefUnwindSafe, { type Value = G::Output; diff --git a/lib/bolero-generator-derive/Cargo.toml b/lib/bolero-generator-derive/Cargo.toml index 578d2a3..fdab3de 100644 --- a/lib/bolero-generator-derive/Cargo.toml +++ b/lib/bolero-generator-derive/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "bolero-generator-derive" -version = "0.11.0" +version = "0.12.0" authors = ["Cameron Bytheway "] description = "value generator for testing and fuzzing" homepage = "https://github.com/camshaft/bolero" repository = "https://github.com/camshaft/bolero" keywords = ["testing", "quickcheck", "property", "fuzz", "fuzzing"] license = "MIT" -edition = "2018" +edition = "2021" readme = "../bolero-generator/README.md" [lib] diff --git a/lib/bolero-generator/Cargo.toml b/lib/bolero-generator/Cargo.toml index 90ad242..04f0a5f 100644 --- a/lib/bolero-generator/Cargo.toml +++ b/lib/bolero-generator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bolero-generator" -version = "0.11.1" +version = "0.12.0" authors = ["Cameron Bytheway "] description = "value generator for testing and fuzzing" homepage = "https://github.com/camshaft/bolero" @@ -19,7 +19,7 @@ alloc = ["rand_core/alloc"] [dependencies] arbitrary = { version = "1.0", optional = true } -bolero-generator-derive = { version = "0.11", path = "../bolero-generator-derive" } +bolero-generator-derive = { version = "0.12", path = "../bolero-generator-derive" } either = { version = "1.5", default-features = false, optional = true } getrandom = { version = "0.2", optional = true } rand_core = { version = "0.6", default-features = false } diff --git a/lib/bolero-honggfuzz/Cargo.toml b/lib/bolero-honggfuzz/Cargo.toml index 0e0d8ca..e2be1af 100644 --- a/lib/bolero-honggfuzz/Cargo.toml +++ b/lib/bolero-honggfuzz/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "bolero-honggfuzz" -version = "0.11.0" +version = "0.12.0" authors = ["Cameron Bytheway "] description = "honggfuzz plugin for bolero" homepage = "https://github.com/camshaft/bolero" repository = "https://github.com/camshaft/bolero" keywords = ["testing", "fuzz", "fuzzing"] license = "MIT" -edition = "2018" +edition = "2021" readme = "../../README.md" [features] @@ -16,7 +16,7 @@ bin = [] lib = ["bolero-engine"] [dependencies] -bolero-engine = { version = "0.11", path = "../bolero-engine", optional = true } +bolero-engine = { version = "0.12", path = "../bolero-engine", optional = true } [lints.rust.unexpected_cfgs] level = "warn" diff --git a/lib/bolero-honggfuzz/src/lib.rs b/lib/bolero-honggfuzz/src/lib.rs index 252b913..5b1471f 100644 --- a/lib/bolero-honggfuzz/src/lib.rs +++ b/lib/bolero-honggfuzz/src/lib.rs @@ -44,7 +44,7 @@ pub mod fuzzer { fn run(self, mut test: F, options: driver::Options) -> Self::Output where - F: FnMut() -> R, + F: FnMut() -> R + core::panic::RefUnwindSafe, R: bolero_engine::IntoResult, { bolero_panic::set_hook(); diff --git a/lib/bolero-kani/Cargo.toml b/lib/bolero-kani/Cargo.toml index 2b25610..7dd2e06 100644 --- a/lib/bolero-kani/Cargo.toml +++ b/lib/bolero-kani/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "bolero-kani" -version = "0.11.2" +version = "0.12.0" authors = ["Cameron Bytheway "] description = "kani plugin for bolero" homepage = "https://github.com/camshaft/bolero" repository = "https://github.com/camshaft/bolero" keywords = ["testing", "model", "proof"] license = "MIT" -edition = "2018" +edition = "2021" readme = "../../README.md" [features] @@ -16,7 +16,7 @@ bin = [] lib = ["bolero-engine"] [dependencies] -bolero-engine = { version = "0.11", path = "../bolero-engine", optional = true } +bolero-engine = { version = "0.12", path = "../bolero-engine", optional = true } [lints.rust.unexpected_cfgs] level = "warn" diff --git a/lib/bolero-libfuzzer/Cargo.toml b/lib/bolero-libfuzzer/Cargo.toml index eb3fa21..ff4673f 100644 --- a/lib/bolero-libfuzzer/Cargo.toml +++ b/lib/bolero-libfuzzer/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "bolero-libfuzzer" -version = "0.11.0" +version = "0.12.0" authors = ["Cameron Bytheway "] description = "libfuzzer plugin for bolero" homepage = "https://github.com/camshaft/bolero" repository = "https://github.com/camshaft/bolero" keywords = ["testing", "fuzz", "fuzzing"] license = "MIT" -edition = "2018" +edition = "2021" readme = "../../README.md" [features] @@ -16,7 +16,7 @@ bin = [] lib = ["bolero-engine"] [dependencies] -bolero-engine = { version = "0.11", path = "../bolero-engine", features = ["cache"], optional = true } +bolero-engine = { version = "0.12", path = "../bolero-engine", features = ["cache"], optional = true } [build-dependencies] cc = "1.0" diff --git a/lib/bolero-libfuzzer/src/lib.rs b/lib/bolero-libfuzzer/src/lib.rs index 8746679..0bb4da9 100644 --- a/lib/bolero-libfuzzer/src/lib.rs +++ b/lib/bolero-libfuzzer/src/lib.rs @@ -86,7 +86,7 @@ pub mod fuzzer { fn run(self, mut test: F, options: driver::Options) -> Self::Output where - F: FnMut() -> R, + F: FnMut() -> R + core::panic::RefUnwindSafe, R: bolero_engine::IntoResult, { panic::set_hook(); diff --git a/lib/bolero/Cargo.toml b/lib/bolero/Cargo.toml index bb770f4..63e4a92 100644 --- a/lib/bolero/Cargo.toml +++ b/lib/bolero/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "bolero" -version = "0.11.1" +version = "0.12.0" authors = ["Cameron Bytheway "] description = "fuzz and property testing front-end" homepage = "https://github.com/camshaft/bolero" repository = "https://github.com/camshaft/bolero" keywords = ["testing", "quickcheck", "property", "fuzz", "fuzzing"] license = "MIT" -edition = "2018" +edition = "2021" readme = "../../README.md" rust-version = "1.66.0" @@ -18,28 +18,28 @@ alloc = ["bolero-generator/alloc"] arbitrary = ["bolero-generator/arbitrary"] [dependencies] -bolero-engine = { version = "0.11", path = "../bolero-engine" } -bolero-generator = { version = "0.11", path = "../bolero-generator", default-features = false } +bolero-engine = { version = "0.12", path = "../bolero-engine" } +bolero-generator = { version = "0.12", path = "../bolero-generator", default-features = false } cfg-if = "1" [target.'cfg(fuzzing_afl)'.dependencies] -bolero-afl = { version = "0.11", path = "../bolero-afl" } +bolero-afl = { version = "0.12", path = "../bolero-afl" } [target.'cfg(fuzzing_libfuzzer)'.dependencies] -bolero-libfuzzer = { version = "0.11", path = "../bolero-libfuzzer" } +bolero-libfuzzer = { version = "0.12", path = "../bolero-libfuzzer" } [target.'cfg(fuzzing_honggfuzz)'.dependencies] -bolero-honggfuzz = { version = "0.11", path = "../bolero-honggfuzz" } +bolero-honggfuzz = { version = "0.12", path = "../bolero-honggfuzz" } [target.'cfg(fuzzing_random)'.dependencies] -bolero-engine = { version = "0.11", path = "../bolero-engine", features = ["cache", "rng"] } +bolero-engine = { version = "0.12", path = "../bolero-engine", features = ["cache", "rng"] } rand = { version = "0.8" } [target.'cfg(kani)'.dependencies] -bolero-kani = { version = "0.11", path = "../bolero-kani" } +bolero-kani = { version = "0.12", path = "../bolero-kani" } [target.'cfg(not(any(fuzzing, kani)))'.dependencies] -bolero-engine = { version = "0.11", path = "../bolero-engine", features = ["cache", "rng"] } +bolero-engine = { version = "0.12", path = "../bolero-engine", features = ["cache", "rng"] } rand = { version = "0.8" } [dev-dependencies] diff --git a/lib/bolero/src/lib.rs b/lib/bolero/src/lib.rs index 6ec0f1c..65feddc 100644 --- a/lib/bolero/src/lib.rs +++ b/lib/bolero/src/lib.rs @@ -475,7 +475,7 @@ impl TestTarget { #[cfg(feature = "std")] pub fn run(self, test: T) -> E::Output where - T: FnMut() -> R, + T: FnMut() -> R + core::panic::RefUnwindSafe, R: bolero_engine::IntoResult, E: bolero_engine::ScopedEngine, { diff --git a/lib/bolero/src/test/mod.rs b/lib/bolero/src/test/mod.rs index 7e2f534..f832e49 100644 --- a/lib/bolero/src/test/mod.rs +++ b/lib/bolero/src/test/mod.rs @@ -247,7 +247,7 @@ impl TestEngine { #[cfg(feature = "std")] fn run_with_scope(self, test: T, options: driver::Options) where - T: FnMut() -> R, + T: FnMut() -> R + core::panic::RefUnwindSafe, R: bolero_engine::IntoResult, { if options.exhaustive() { @@ -437,7 +437,7 @@ impl bolero_engine::ScopedEngine for TestEngine { fn run(self, test: F, options: driver::Options) -> Self::Output where - F: FnMut() -> R, + F: FnMut() -> R + core::panic::RefUnwindSafe, R: bolero_engine::IntoResult, { self.run_with_scope(test, options);