Library Installation

bolero is on and can be added to a project's dev dependencies like so:

$ cargo add --dev bolero

Or add

bolero = "0.9"

to Cargo.toml.

Structured Test Generation

If your crate wishes to implement structured test generation on public data structures, bolero-generator can be added to the main dependencies:

$ cargo add bolero-generator
bolero-generator = "0.9"

The derive attribute can now be used:

fn main() {
#[derive(Debug, bolero_generator::TypeGenerator)]
pub struct Coord3d {
    x: u64,
    y: u64,
    z: u64,