A collection of Rust crates for interacting with Supabase APIs, including Authentication, Realtime, and PostgREST.
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"
- Install Rust
- All tasks and actions are managed by
cargo xtask
. Try runningcargo xtask --help
to see all the available commands. cargo xtask fmt
-- format the codecargo xtask test -- my_test_name
-- run specific tests
- Install Supabase CLI
- Run
supabase start
to run local supabase instance