Crates.io | data-faking |
lib.rs | data-faking |
version | 0.1.2 |
source | src |
created_at | 2024-03-23 04:16:49.861634 |
updated_at | 2024-05-28 16:55:25.551147 |
description | Generate massive amounts of fake data |
homepage | |
repository | https://github.com/Data-Construct/faking |
max_upload_size | |
id | 1183240 |
size | 2,084,666 |
Generate massive amounts of fake (but realistic) data for testing and development.
Try using our playground for your data gen needs, it supports code gen for much more than rust and javascript.
Note: We try to generate realistic data. The generated names, addresses, emails, phone numbers, and/or other data might be coincidentally valid information. Please do not send any of your messages / calls to them from your test setup.
cargo add data-faking
use data_faking as faking;
fn main() {
println!("{}", faking::defaults::types::f64());
}
npm i --save-dev data-faking
import * as faking from "data-faking";
console.log(faking.f64());
If you want consistent results, you can set your own seed:
faking::utils::seeder::set_seed(2);
println!("{}", faking::defaults::types::f64());
faking.set_seed(BigInt(2));
console.log(faking.f64());
The following data generators do not support seeded generation: