Rust SDK
FoPost Rust SDK for Rust applications.
Rust SDK
Coming Soon
The OwlStack Rust SDK is currently in development. Sign up for updates at owlstack.app to be notified when it's available.
What to Expect
The Rust SDK will provide a native Rust client for the OwlStack API, designed for:
- Async/await with
tokioruntime support - Strong typing with Rust's type system
- Zero-cost abstractions
- Available via
cargo add owlstack
Preview
use owlstack::{Client, Platform, PublishRequest};
#[tokio::main]
async fn main() -> Result<(), owlstack::Error> {
let client = Client::new(std::env::var("OWLSTACK_API_KEY")?);
let results = client
.publish(PublishRequest {
content: "Hello from Rust!".into(),
platforms: vec![Platform::Twitter, Platform::LinkedIn],
hashtags: vec!["rust".into(), "automation".into()],
..Default::default()
})
.await?;
for result in &results {
println!("{}: {}", result.platform, result.url);
}
Ok(())
}In the Meantime
You can use the OwlStack REST API directly from any Rust application using reqwest.