At the moment this library supports a subset of features, I'm hoping to add more in the future.
You can find the docs here.
[dependencies]
upstash-qstash = "0.1.2"
```rust use qstash::Client; use serde_json::json;
async fn main() -> Result<(), ()> { let qstashclient = upstashqstash::Client::new("your-token".toowned()).expect("Init failed"); let body = serdejson::json!({ "key1": "value1", "key2": "value2" }); match qstashclient .publishjson( "url-or-token".to_owned(), &body, ) .await { Ok(result) => println!("Published {:?}", result), Err(e) => println!("Error: {}", e), } Ok(()) } ```