fake 5.1.0

An easy to use library and command line for generating fake data like name, number, address, lorem, dates, etc.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::{Dummy, Fake};
use rand::RngExt;

impl<T, U, const N: usize> Dummy<U> for [T; N]
where
    T: Dummy<U>,
{
    fn dummy_with_rng<R: RngExt + ?Sized>(config: &U, rng: &mut R) -> Self {
        std::array::from_fn(|_| Fake::fake_with_rng::<T, _>(config, rng))
    }
}