8 releases
Uses new Rust 2024
| 0.3.0 | May 18, 2025 |
|---|---|
| 0.2.3 | Mar 23, 2025 |
| 0.2.1 | Jan 4, 2025 |
| 0.2.0 | Nov 24, 2024 |
| 0.1.2 | Oct 26, 2024 |
#620 in Authentication
Used in rp-supabase-auth
14KB
123 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:
- rp-supabase-auth: A client library for Supabase's Authentication API.
- rp-postgrest-error: Error parsing and handling for PostgREST and PostgreSQL responses.
- rp-supabase-realtime: A client library for Supabase's Realtime API.
- rp-supabase-client: A client for Supabase's PostgREST API with authenticated requests.
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"
Examples
Check out our examples directory for complete working examples of how to use each crate. The examples cover:
- Authentication and user management
- Real-time database updates
- Broadcast messaging
- Presence tracking
- JWT token management
- Database operations
Each example is self-contained and includes detailed documentation about its use case and how to run it.
Development guide
- Install Rust
- All tasks and actions are managed by
cargo xtask. Try runningcargo xtask --helpto see all the available commands. cargo xtask fmt-- format the codecargo xtask test -- my_test_name-- run specific tests
Supabase instance for local development
- Install Supabase CLI
- Run
supabase startto run local supabase instance
Dependencies
~12–26MB
~360K SLoC