quickcheck_derive

Crates.ioquickcheck_derive
lib.rsquickcheck_derive
version0.3.0
sourcesrc
created_at2017-09-28 00:38:10.530679
updated_at2020-10-20 16:25:40.625921
descriptionDerives quickcheck traits
homepage
repositoryhttps://github.com/panicbit/quickcheck_derive
max_upload_size
id33727
size19,085
(panicbit)

documentation

README

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,
}
Commit count: 31

cargo fmt