Skip to main content

alien_sdk/
lib.rs

1//! Alien SDK for Rust.
2//!
3//! Cloud-agnostic bindings for storage, KV, queues, vault, commands, and more.
4//! Works on AWS, GCP, Azure, Kubernetes, and locally.
5//!
6//! This is the public-facing crate for Alien app developers. It re-exports
7//! everything from [`alien_bindings`], giving users the `alien_sdk` import path.
8//!
9//! # Example
10//!
11//! ```no_run
12//! use alien_sdk::AlienContext;
13//!
14//! #[tokio::main]
15//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
16//!     let ctx = AlienContext::init().await?;
17//!
18//!     ctx.on_command("hello", |params: serde_json::Value| async move {
19//!         Ok(serde_json::json!({ "message": "Hello!" }))
20//!     });
21//!
22//!     ctx.run().await?;
23//!     Ok(())
24//! }
25//! ```
26
27pub use alien_bindings::*;