| Crates.io | mockd |
| lib.rs | mockd |
| version | 0.4.53 |
| created_at | 2022-02-27 09:37:48.666554+00 |
| updated_at | 2025-09-22 14:57:24.98855+00 |
| description | Fake data generator library with 130+ functions |
| homepage | |
| repository | https://github.com/jerus-org/mockd |
| max_upload_size | |
| id | 540287 |
| size | 283,505 |
Update to fakeit, a Rust port of the famous Go fakeit library with more than 130 functions.
Add mockd to the dependencies (typically dev-dependencies) in Cargo.toml
[dev-dependencies]
mockd = "0.4.53"
The contact info struct contains a phone number and email string.
let credit_card = mockd::payment::credit_card();
println!("Credit card: {:#?}", credit_card);
Mockd provides mock data in the following categories:
Each category is enabled by a feature of the same name. All features can be enabled using the feature "all".
Full documentation is available at docs.rs