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

bunny-api-tokio

Provides access to the Bunny CDN API asynchronously using tokio

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

Download history 78/week @ 2025-07-19 11/week @ 2025-07-26 23/week @ 2025-08-02 2/week @ 2025-08-16 3/week @ 2025-08-23

369 downloads per month

MIT license

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

  1. add package to your project using cargo

$ cargo add bunny-api-tokio

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

License Crates.io Visitors

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