5 unstable releases
Uses new Rust 2024
| 0.3.2 | Dec 6, 2025 |
|---|---|
| 0.3.1 | Jun 18, 2025 |
| 0.3.0 | Jun 17, 2025 |
| 0.2.0 | Jun 17, 2025 |
| 0.1.0 | Jun 17, 2025 |
#982 in Encoding
1,868 downloads per month
Used in 2 crates
(via near-account-id)
38KB
1K
SLoC
Example
#[derive(Arbitrary)]
struct A {
#[arbitrary(with = As::<Option<DisplayFromStr<i32>>>::arbitrary)]
n: Option<String>,
};
let a: A = u.arbitrary()?;
if let Some(n) = a.n {
let _i: i32 = n.parse().unwrap();
}
arbitrary_with
serde_with analog for arbitrary
Dependencies
~0.5–1MB
~19K SLoC