5 releases (3 breaking)
Uses new Rust 2024
| 0.4.0 | Jun 25, 2025 |
|---|---|
| 0.3.0 | May 24, 2025 |
| 0.2.1 | May 20, 2025 |
| 0.2.0 | May 20, 2025 |
| 0.1.0 | May 19, 2025 |
#1489 in Web programming
369 downloads per month
22KB
300 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::{BunnyClient, error::Error};
#[tokio::main]
async fn main() -> Result<(), Error> {
let mut client = BunnyClient::new("api_key").await?;
Ok(())
}
bunny-api-tokio
A Rust library providing asynchronous access to the Bunny CDN API using Tokio.
Issues/PRs
Issues and PRs can be submitted on the GitHub mirror
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.4.0"
Dependencies
~6–20MB
~221K SLoC