#testing #mocking #utilities #rp-supabase-mock

rp-supabase-mock

Mock client for supabase auth module, useful for tests

7 releases

Uses new Rust 2024

0.2.3 Mar 23, 2025
0.2.2 Mar 16, 2025
0.2.1 Jan 4, 2025
0.2.0 Nov 24, 2024
0.1.2 Oct 26, 2024

#1037 in Network programming

Download history 142/week @ 2025-01-02 9/week @ 2025-01-09 14/week @ 2025-02-13 114/week @ 2025-03-13 136/week @ 2025-03-20 13/week @ 2025-03-27 8/week @ 2025-04-03

271 downloads per month
Used in rp-supabase-auth

MIT/Apache

16KB
126 lines

Supabase Rust utilities

A collection of Rust crates for interacting with Supabase APIs, including Authentication, Realtime, and PostgREST.

Overview

This repository is a Cargo workspace containing multiple Rust crates that provide clients and utilities for working with Supabase services in Rust. The crates included are:

Getting Started

To use any of these crates, add them as dependencies in your Cargo.toml file:

[dependencies]
rp-supabase-auth = "0.1.0"
rp-postgrest-error = "0.1.0"
rp-supabase-realtime = "0.1.0"
rp-supabase-client = "0.1.0"

Development guide

  1. Install Rust
  2. All tasks and actions are managed by cargo xtask. Try running cargo xtask --help to see all the available commands.
  3. cargo xtask fmt -- format the code
  4. cargo xtask test -- my_test_name -- run specific tests

Supabase instance for local development

  1. Install Supabase CLI
  2. Run supabase start to run local supabase instance

Dependencies

~17–28MB
~433K SLoC