4 releases (2 breaking)
Uses new Rust 2024
new 0.3.0 | May 24, 2025 |
---|---|
0.2.1 | May 20, 2025 |
0.2.0 | May 20, 2025 |
0.1.0 | May 19, 2025 |
#5 in #cdn
244 downloads per month
16KB
169 lines
This library provides access to the Bunny API asynchronously using tokio, it's not fully implemented but PRs are welcome.
Getting started
- add package to your project using cargo
$ cargo add bunny-api-tokio
- Start coding
use bunny_api_tokio::{Client, error::Error};
#[tokio::main]
async fn main() -> Result<(), Error> {
let mut client = Client::new("api_key").await?;
Ok(())
}
bunny-api-tokio
A Rust library providing asynchronous access to the Bunny CDN API using Tokio.
Features
- Async-first: Built with Tokio for non-blocking API calls.
- Edge Storage API: Supports Bunny's edge storage operations.
- Lightweight: Pure Rust implementation with minimal dependencies.
Usage
Add to your Cargo.toml
:
[dependencies]
bunny-api-tokio = "0.2.0"
Dependencies
~6–18MB
~229K SLoC