squarecloud-rs
A lightweight, idiomatic, async Rust client for the SquareCloud API. Deploy applications, manage files and environment variables, provision databases, take snapshots, and organize workspaces, with compile-time type safety and zero-cost async through Tokio.
Installation
[]
= "0.1"
= { = "1", = ["full"] }
Configuration
The client reads API_TOKEN on first use, either from the process environment or a .env file in the working directory.
API_TOKEN=your_squarecloud_api_token
Quick start
use ApiClient;
async
Realtime log streaming
AppResource::realtime() returns a live SSE stream of log and system events:
use StreamExt;
use ;
async
Examples
The examples/ directory contains one file per method, organized by resource:
| Folder | Covers |
|---|---|
apps/ |
info, status, logs, realtime stream, metrics, start/stop/restart, commit, delete, network, domain |
env/ |
list, upsert, overwrite, delete |
files/ |
list, read, write, move, delete |
snapshots/ |
create, list, restore |
deployments/ |
current deploy, history, webhook integration |
database/ |
full lifecycle: create, status, metrics, credentials, snapshots, delete |
workspaces/ |
create, members, permissions, leave, delete |
Contributing
See CONTRIBUTING.md.
License
MIT