faux

Struct mocking library for Rust (by nrxus)

Faux Alternatives

Similar projects and alternatives to faux

  1. mock_derive

    A mocking library for Rust-lang

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. Weld

    0 faux VS Weld

    Full fake REST API generator written with Rust

  4. mry

    1 faux VS mry

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

  5. pseudo

    1 faux VS pseudo

    A small mocking library for Rust

  6. unimock

    A versatile and developer-friendly trait mocking library

  7. Mockito

    0 faux VS Mockito

    HTTP mocking for Rust! (by lipanski)

  8. wiremock-rs

    HTTP mocking to test Rust applications.

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. mockers

    1 faux VS mockers

    Mocking library for Rust

  11. mock_me

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

  12. galvanic-mock

    A mocking framework for Rust

  13. mock-it

    1 faux VS mock-it

    This library aims to make mocking reliable

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better faux alternative or higher similarity.

faux discussion

Log in or Post with

faux reviews and mentions

Posts with mentions or reviews of faux. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-23.
  • Mocking in Rust: Mockall and alternatives
    7 projects | dev.to | 23 May 2023
    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.
  • Mocking Crates Experience
    1 project | /r/rust | 5 Jan 2023
    I am not a fan of the: "make a trait for every struct so it can be tested" strategy that a lot of mocking libraries or hand rolled mocks do in Rust so I wrote my own library that allows you mock structs directly: https://github.com/nrxus/faux/. Unlike libraries that rely on using traits/dynamic dispatch for mocking this let's your signatures stay as simple as you want them and not incur any runtime cost when doing non-test builds.
  • Mocking trait object without a library
    1 project | /r/rust | 16 Aug 2021
    for a quick shill moment: I did write a mocking library that deliberately does not pollute the original object and tries to be as out of the way as possible: https://github.com/nrxus/faux/. It does work by using macros (don't hate me yet!) but these macros will only be executed when building for test thus not polluting the original objects for production code.
  • faux: a struct mocking library - landing v0.1
    1 project | /r/rust | 19 Apr 2021
    These are the tests for an example: https://github.com/nrxus/faux/blob/master/tests/asynchronous.rs
  • A note from our sponsor - CodeRabbit
    coderabbit.ai | 6 Feb 2025
    Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR. Learn more →

Stats

Basic faux repo stats
4
449
6.5
about 2 months ago

nrxus/faux is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of faux is Rust.


Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you know that Rust is
the 5th most popular programming language
based on number of references?