quickcheck_derive 0.3.0

Derives quickcheck traits
Documentation

NOTICE

Before using this crate, please evaluate quickcheck's official derive crate.

quickcheck_derive

Travis (.org) Crates.io

This crate adds a derive for the Arbitrary trait from the quickcheck crate.

Requirements

You need the following dependencies in your Cargo.toml:

  • quickcheck >= 0.7
  • rand

Usage

#[macro_use]
extern crate quickcheck_derive;

#[derive(Arbitrary,Clone)]
struct Data {
    foo: i32,
    bar: String,
}