#random #fake-data-generator #faker

mockd

Fake data generator library with 130+ functions

61 releases

0.5.3 Mar 28, 2026
0.5.1 Feb 21, 2026
0.4.56 Dec 21, 2025
0.4.55 Nov 21, 2025
0.2.0 Mar 6, 2022

#48 in Email

Download history 146/week @ 2026-04-08 61/week @ 2026-04-15 590/week @ 2026-04-22 88/week @ 2026-05-06 52/week @ 2026-05-13 45/week @ 2026-05-20 245/week @ 2026-05-27 446/week @ 2026-06-03 175/week @ 2026-06-17 285/week @ 2026-06-24 65/week @ 2026-07-01 74/week @ 2026-07-08 88/week @ 2026-07-15 808/week @ 2026-07-22

1,045 downloads per month
Used in 3 crates

MIT license

270KB
11K SLoC

mockd

Crates.io MIT licensed Build Status Rust Docs BuyMeaCoffee GitHubSponsors

Update to fakeit, a Rust port of the famous Go fakeit library with more than 130 functions.

Usage

Add mockd to the dependencies (typically dev-dependencies) in Cargo.toml


[dev-dependencies]
mockd = "0.5.3"

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:

  • address
  • animal
  • beer
  • bool_rand
  • colour
  • company
  • contact
  • currency
  • datetime
  • file
  • generator
  • hacker
  • hipster
  • image
  • internet
  • job
  • language
  • log_level
  • name
  • password
  • payment
  • person
  • status_code
  • unique
  • user_agent
  • vehicle
  • words

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

Dependencies

~0–650KB