# Aurabase Rust SDK Reference (crate `aurabase`, folder aurabase-rs/) > Cargo crate: aurabase (monorepo directory `aurabase-rs/`, Apache 2.0 / MIT license) > Documentation: https://aurabase.dev/en/docs/sdk-rust > Designed for high-performance async Rust architectures (tokio, axum, actix-web). ## Cargo.toml ```toml [dependencies] aurabase = "0.1" tokio = { version = "1", features = ["full"] } serde = { version = "1", features = ["derive"] } serde_json = "1.0" ``` ## Usage ```rust use aurabase::AuraClient; use serde::{Deserialize, Serialize}; #[derive(Debug, Serialize, Deserialize)] struct Post { id: String, title: String, published: bool, } #[tokio::main] async fn main() -> Result<(), Box> { // The URL identifies the project directly (no separate project_id argument) let aura = AuraClient::new( &std::env::var("NEXT_PUBLIC_AURABASE_URL")?, &std::env::var("NEXT_PUBLIC_AURABASE_ANON_KEY")?, None, ); // Type-safe PostgreSQL query let res = aura .db() .from::("posts") .select("id,title,published") .eq("published", "true") .order("created_at", "desc") .limit(10) .execute() .await? .into_result()?; println!("Fetched posts: {:?}", res); Ok(()) } ``` ## Exposed Services The `AuraClient` instance exposes: - `.db()`: PostgREST queries, mutations, filters, and RPC. - `.auth()` / `.auth_admin()`: Sign-up, JWT sessions, OAuth, MFA, and admin management. - `.storage()`: S3 buckets, multipart uploads, signed URLs, and downloads. - `.realtime()` / `.channel(name)`: WebSocket subscriptions to CDC events and presence. - `.functions()`: Invocation and deployment of WASM or Deno Edge Functions. - `.ai()`: LLM proxy, pgvector embeddings, and native RAG. - `.notifications()`: Multi-channel email, SMS, push, and webhooks.