stubr: Wiremock in Rust

This page summarizes the projects mentioned and recommended in the original post on /r/rust

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • wiremock-rs

    HTTP mocking to test Rust applications.

  • A few weeks ago I was another victim of the RIIR (Rewrite It In Rust) agenda. I got inspired by the awesome wiremock-rs. At first sight, I saw it hadn't the ability to start a mock server from json stubs. That's the kind of functionality I'm intensively using in my daily job of Java developer ; may it be for contract testing with Spring Cloud Contract or for mocking external services in integration (sometimes perf) tests.

  • spring-cloud-contract

    Support for Consumer Driven Contracts in Spring

  • A few weeks ago I was another victim of the RIIR (Rewrite It In Rust) agenda. I got inspired by the awesome wiremock-rs. At first sight, I saw it hadn't the ability to start a mock server from json stubs. That's the kind of functionality I'm intensively using in my daily job of Java developer ; may it be for contract testing with Spring Cloud Contract or for mocking external services in integration (sometimes perf) tests.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • stubr

    Rust implementation of Wiremock (by beltram)

  • I also set up an incremental benchmark to track down progresses made in each version of stubr. I also did a (very naive) benchmark of stubr against the original Java Wiremock here. Though too simple and not very objective (Wiremock not optimized at all), it still highlights a mean cpu usage divided by 4 and a mean memory usage divided by 100+ more a slightly better and steadier throughput.

  • clap-rs

    A full featured, fast Command Line Argument Parser for Rust

  • It also comes in different flavours: * a Rust crate e.g. Stubr::start("tests/stubs/ping.json").await * a cli installable with cargo install stubr-cli and with completion files generation thanks to clap * a Docker image * a Helm chart with HPA (Horizontal Pod Autoscaler)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Build Your Own curl - Rust

    2 projects | dev.to | 23 Mar 2024
  • CLI Contexts

    1 project | dev.to | 27 Dec 2023
  • I made an alternative --help renderer for clap based applications

    2 projects | /r/rust | 18 Jul 2023
  • Build a HTTP server with Rust and tokio - Part 1: serving static files

    2 projects | dev.to | 21 May 2023
  • ideas (best practices) for handling per-file options when using clap

    2 projects | /r/rust | 18 May 2023