mocktail is a minimal crate for mocking HTTP and gRPC servers in Rust, with native support for streaming.
This is an early stage alpha, subject to bugs and breaking changes.
Features
- Mocks HTTP and gRPC servers
- Mocks defined in Rust using a simple, ergonomic API
- Provides first-class support for streaming
- Supports gRPC unary, client-streaming, server-streaming, and bidirectional-streaming methods
- Match requests to mock responses using built-in matchers or custom matchers
- Fully asynchronous