supabase-client-storage
Storage HTTP client for supabase-client.
Note: This crate is part of the
supabase-client-sdkworkspace. Most users should depend onsupabase-client-sdkwith thestoragefeature rather than using this crate directly.
Key Features
SupabaseClientStorageExtextension trait — adds.storage()toSupabaseClientStorageClient— Supabase Object Storage HTTP client via reqwest- Bucket management: create, list, get, update, empty, delete
- File operations: upload, download, update, list, move, copy, remove
- File metadata (
info) and existence checking (exists) - Signed URLs for time-limited access and delegated uploads
- Public URL construction for public buckets
- Image transform options (resize, quality, format) on download, public URL, and signed URLs
Usage
use SupabaseClientStorageExt;
use ;
let storage = client.storage?;
// Upload a file
let file_api = storage.from;
let data = read?;
file_api.upload.await?;
// Download
let bytes = file_api.download.await?;
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.