2 releases

0.13.5 Oct 9, 2025
0.13.4 Oct 1, 2025

#781 in Testing

Download history 1011/week @ 2025-11-29 821/week @ 2025-12-06 560/week @ 2025-12-13 426/week @ 2025-12-20 445/week @ 2025-12-27 953/week @ 2026-01-03 1224/week @ 2026-01-10 1124/week @ 2026-01-17 1250/week @ 2026-01-24 1255/week @ 2026-01-31 1062/week @ 2026-02-07 664/week @ 2026-02-14 748/week @ 2026-02-21 1230/week @ 2026-02-28 789/week @ 2026-03-07 943/week @ 2026-03-14

3,839 downloads per month
Used in 2 crates (via hydro_lang)

MIT license

1MB
22K SLoC

Rust 9K SLoC // 0.0% comments C++ 8K SLoC // 0.1% comments C 5.5K SLoC // 0.1% comments Shell 99 SLoC // 0.2% comments Python 62 SLoC // 0.2% comments

bolero

Build Status Latest version Documentation License

fuzz and property testing front-end for Rust

Book

A copy of the Bolero Book can be found here: http://camshaft.github.io/bolero

Quick Start

  1. Install subcommand and add a dependency

    $ cargo add --dev bolero
    $ cargo install -f cargo-bolero
    
  2. Write a test using bolero::check! macro:

    pub fn buggy_add(x: u32, y: u32) -> u32 {
        if x == 12976 && y == 14867 {
            return x.wrapping_sub(y);
        }
        return x.wrapping_add(y);
    }
    
    #[test]
    fn fuzz_add() {
        bolero::check!()
            .with_type()
            .cloned()
            .for_each(|(a, b)| buggy_add(a, b) == a.wrapping_add(b));
    }
    
  3. Run the test with cargo bolero

    $ cargo bolero test fuzz_add
    
    # ... some moments later ...
    
    ======================== Test Failure ========================
    
    Input:
    (
        12976,
        14867,
    )
    
    Error:
    test returned `false`
    
    ==============================================================
    

Linux Installation

cargo-bolero needs a couple of libraries installed to compile. If these libraries aren't available the requirement can be relaxed by executing cargo install cargo-bolero --no-default-features -f

Debian/Ubuntu

$ sudo apt install binutils-dev libunwind-dev

Dependencies

~2.2–3.5MB
~74K SLoC