1 unstable release
Uses new Rust 2024
| 0.1.0 | Dec 26, 2025 |
|---|
#22 in #big-query
Used in 2 crates
28KB
399 lines
armature-gcp
Google Cloud Platform services integration for the Armature framework.
Features
- Cloud Storage - Object storage
- Firestore - NoSQL database
- Pub/Sub - Message queues
- Secret Manager - Secrets management
- BigQuery - Data warehouse
Installation
[dependencies]
armature-gcp = "0.1"
Quick Start
use armature_gcp::{StorageClient, FirestoreClient, PubSubClient};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Cloud Storage
let storage = StorageClient::new().await?;
storage.upload("bucket", "object", bytes).await?;
// Firestore
let firestore = FirestoreClient::new("project-id").await?;
firestore.set("collection", "doc", data).await?;
// Pub/Sub
let pubsub = PubSubClient::new("project-id").await?;
pubsub.publish("topic", message).await?;
Ok(())
}
Authentication
Credentials are loaded from:
GOOGLE_APPLICATION_CREDENTIALSenvironment variable- Default application credentials
- Compute Engine metadata service
License
MIT OR Apache-2.0
Dependencies
~7–33MB
~412K SLoC