8 releases

new 0.4.4 May 15, 2024
0.4.3 Dec 16, 2023
0.4.1 Dec 5, 2022
0.4.0 Oct 1, 2022
0.1.1 Feb 27, 2022

#181 in HTTP client

Download history 154/week @ 2024-01-23 93/week @ 2024-01-30 786/week @ 2024-02-06 646/week @ 2024-02-13 671/week @ 2024-02-20 357/week @ 2024-02-27 580/week @ 2024-03-05 472/week @ 2024-03-12 562/week @ 2024-03-19 327/week @ 2024-03-26 544/week @ 2024-04-02 419/week @ 2024-04-09 494/week @ 2024-04-16 705/week @ 2024-04-23 1578/week @ 2024-04-30 97/week @ 2024-05-07

3,007 downloads per month
Used in hcaptcha

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.4"

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