3 releases (stable)
Uses new Rust 2024
| 2.0.0 | Dec 31, 2025 |
|---|---|
| 1.8.0 | Jun 5, 2025 |
| 0.1.0 | Jun 5, 2025 |
#1071 in Web programming
Used in 2 crates
160KB
5K
SLoC
avina-lib
API bindings written in Rust for LRZ-specific features of the Openstack-based LRZ Compute Cloud, https://cc.lrz.de, first and foremost the budgeting system.
Usage
To use the library add the following to your Cargo.toml under [dependencies]:
avina = 2
After that you create a Token and Api object to interact with the API:
use avina::{Token, Api};
// let token = Token::from_str("abcdefg...").unwrap();
let token = Token::new(
auth_url.as_str(),
username.as_str(),
password.as_str(),
project_name.as_str(),
user_domain_name.as_str(),
project_domain_id.as_str(),
).unwrap();
let api = Api::new("https://cc.lrz.de:1337/api", token, None, None).unwrap();
println!("{:?}", api.user.me());
Dependencies
~7–26MB
~326K SLoC