48 releases

new 0.4.47 May 2, 2025
0.4.45 Mar 28, 2025
0.4.33 Dec 27, 2024
0.4.29 Nov 22, 2024
0.2.0 Mar 6, 2022

#93 in Authentication

Download history 304/week @ 2025-01-12 551/week @ 2025-01-19 284/week @ 2025-01-26 430/week @ 2025-02-02 366/week @ 2025-02-09 348/week @ 2025-02-16 400/week @ 2025-02-23 425/week @ 2025-03-02 490/week @ 2025-03-09 396/week @ 2025-03-16 322/week @ 2025-03-23 113/week @ 2025-03-30 79/week @ 2025-04-06 155/week @ 2025-04-13 455/week @ 2025-04-20 420/week @ 2025-04-27

1,112 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.4.47"

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