supabase-client-storage 0.2.0

Storage HTTP client for supabase-client
Documentation

Supabase Storage HTTP client.

This crate provides an HTTP client for the Supabase Storage API. It communicates with Storage REST endpoints at /storage/v1/....

Usage

use supabase_client_sdk::prelude::*;

let client = SupabaseClient::new(config).await?;
let storage = client.storage()?;

// Bucket operations
let buckets = storage.list_buckets().await?;
storage.create_bucket("photos", BucketOptions::new().public(true)).await?;

// File operations
let file_api = storage.from("photos");
file_api.upload("photo.png", data, FileOptions::new().content_type("image/png")).await?;
let bytes = file_api.download("photo.png").await?;