Rust Mock

Open-source Rust projects categorized as Mock

Top 8 Rust Mock Projects

  • Mockito

    HTTP mocking for Rust! (by lipanski)

  • httpmock

    HTTP mocking library for Rust. (by alexliesenfeld)

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • faux

    Struct mocking library for Rust

    Project mention: Mocking in Rust: Mockall and alternatives | | 2023-05-23

    Faux allows you to create mock versions of a struct without complicating your code. Like many mocking libraries, faux is only recommended for testing purposes. Mock objects in production may be unstable and cause production problems.

  • Weld

    Full fake REST API generator written with Rust

  • unimock

    A versatile and developer-friendly trait mocking library

  • mock_me

    MockMe is a tool used to mock dependencies / function calls when running unit (lib) tests in Rust.

  • mry

    A simple mocking library for structs, traits, and function.

    Project mention: Mocking in Rust: Mockall and alternatives | | 2023-05-23

    Mry allows you to easily create mock objects for unit testing. You can integrate Mry with any testing framework for Rust. Including the inbuilt testing framework, cargo test.

  • InfluxDB

    Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.

  • mock-it

    This library aims to make mocking reliable

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-05-23.

Rust Mock related posts


What are some of the best open-source Mock projects in Rust? This list will help you:

Project Stars
1 Mockito 570
2 httpmock 377
3 faux 361
4 Weld 269
5 unimock 52
6 mock_me 43
7 mry 39
8 mock-it 39
Updating dependencies is time-consuming.
Solutions like Dependabot or Renovate update but don't merge dependencies. You need to do it manually while it could be fully automated! Add a Merge Queue to your workflow and stop caring about PR management & merging. Try Mergify for free.