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/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 = ".." } 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;