#sdk #cloud #aiven #infra

aiven_rs

This is a rust sdk to interact with aiven-cloud apis

6 releases

new 0.3.0 Oct 17, 2020
0.2.3 Sep 1, 2020
0.2.2 Jul 23, 2020
0.2.0 Apr 18, 2020
0.1.0 Apr 17, 2020

#94 in WebAssembly

33 downloads per month

MIT license

400KB
7.5K SLoC

aiven-rs

An async rust-sdk for Aiven

rust aiven

Linux Crates.io Docs.rs codecov


Resources

Getting Started

use aiven_rs::{cloud::types::ResClouds, AivenClient};

#[tokio::main]
async fn main() {
  env_logger::init();
  // use std::env;
  // 
  // let token = env::var("AIVEN_TOKEN").expect("Please set env variable to read AIVEN_TOKEN");
  // let client = AivenClient::from_token("https://api.aiven.io", "v1", &token);

  let client = AivenClient::new("https://api.aiven.io", "v1");
  let cloud_api = client.cloud();
  let output: ResClouds = cloud_api.list_all().await.unwrap();
  for cloud in &output.clouds {
    println!("{:?}", cloud.cloud_name);
  }
}

License

This project is licensed under

Dependencies

~5.5–10MB
~238K SLoC