From 4a95307f4aed78d5c35e5f9b22cd816348be1c1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20S=C3=A1nchez=20Mu=C3=B1oz?= Date: Sat, 14 Oct 2023 12:44:40 +0200 Subject: [PATCH 1/2] Bump bitflags to 2.6.0 --- Cargo.toml | 2 +- src/lib.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 05bcd4f..df6fde5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ repository = "https://github.com/rust-lang/rustc_apfloat" description = "Rust port of C++ llvm::APFloat library" [dependencies] -bitflags = "1.3.2" +bitflags = "2.6.0" smallvec = { version = "1.11.0", features = ["const_generics", "union"] } [dev-dependencies] diff --git a/src/lib.rs b/src/lib.rs index 8642a22..a1821d7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -54,6 +54,7 @@ bitflags! { /// result of an operation that signals the invalid operation exception /// shall be a quiet NaN." #[must_use] + #[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Debug)] pub struct Status: u8 { const OK = 0x00; const INVALID_OP = 0x01; From 5bfe46050b61f00ff08005ecb6b278ef578553ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20S=C3=A1nchez=20Mu=C3=B1oz?= Date: Sat, 14 Oct 2023 12:55:03 +0200 Subject: [PATCH 2/2] Bump afl to 0.15.10 --- README.md | 2 +- fuzz/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 60ddd5b..d3fb693 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ Example usage: ```sh # Install `cargo-afl` (used below to build/run the fuzzing binary). -cargo install afl +cargo install cargo-afl # Build the fuzzing binary (`target/release/rustc_apfloat-fuzz`). cargo afl build -p rustc_apfloat-fuzz --release diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index 94c7c36..171eb74 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -5,7 +5,7 @@ edition.workspace = true publish = false [dependencies] -afl = "0.12.16" +afl = "0.15.10" clap = { version = "4.1.13", features = ["derive"] } num-traits = "0.2.15" rustc_apfloat = { path = ".." }