{"id":57576,"library":"proptest-derive","title":"Proptest-Derive","description":"Custom-derive for the Arbitrary trait of proptest, enabling automatic test case generation.","status":"active","version":"0.8.0","language":"rust","source_language":null,"source_url":"https://github.com/proptest-rs/proptest","tags":["testing","property-based","derive","proptest"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nproptest-derive = \"0.8.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add proptest-derive","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Arbitrary","correct":"use proptest_derive::Arbitrary;"}],"quickstart":{"code":"use proptest::prelude::*;\nuse proptest_derive::Arbitrary;\n\n#[derive(Arbitrary, Debug)]\nstruct Point { x: i32, y: i32 }\n\nproptest! {\n    #[test]\n    fn test_point(p: Point) {\n        assert!(p.x.abs() < 1000);\n    }\n}","lang":"rust","description":"Derive Arbitrary for a struct to use in property-based tests."},"warnings":[{"fix":"Add `proptest` to dev-dependencies and use `#[cfg(test)]` for test modules.","message":"Requires the `proptest` crate as a dependency.","severity":"gotcha","affected_versions":">=0.8.0"}],"env_vars":null,"search_vec":"'arbitrari':9 'automat':14 'base':21 'case':16 'custom':5 'custom-der':4 'deriv':3,6,22 'enabl':13 'generat':17 'properti':20 'property-bas':19 'proptest':2,12,23 'proptest-der':1 'test':15,18 'trait':10","created_at":"2026-06-16T15:49:17.751015+00:00","updated_at":"2026-06-16T15:49:17.751015+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://proptest-rs.github.io/proptest/proptest-derive/index.html","github":"https://github.com/proptest-rs/proptest","docs":"https://docs.rs/proptest-derive/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}