49 releases

new 0.4.48 May 21, 2025
0.4.46 Apr 25, 2025
0.4.45 Mar 28, 2025
0.4.33 Dec 27, 2024
0.2.0 Mar 6, 2022

#78 in Authentication

Download history 392/week @ 2025-01-31 379/week @ 2025-02-07 356/week @ 2025-02-14 317/week @ 2025-02-21 430/week @ 2025-02-28 434/week @ 2025-03-07 507/week @ 2025-03-14 414/week @ 2025-03-21 263/week @ 2025-03-28 83/week @ 2025-04-04 69/week @ 2025-04-11 268/week @ 2025-04-18 561/week @ 2025-04-25 300/week @ 2025-05-02 479/week @ 2025-05-09 147/week @ 2025-05-16

1,490 downloads per month
Used in 4 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.4.48"

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–670KB