#tokio #api-client #cdn #async #bunny

bunny-api-tokio

Provides access to the Bunny CDN API asynchronously using tokio

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

Download history 244/week @ 2025-05-16

244 downloads per month

MIT license

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

  1. add package to your project using cargo

$ cargo add bunny-api-tokio

  1. 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

License Crates.io Visitors

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