bunny_api_tokio/lib.rs
1//! This library provides access to the Bunny API asynchronously using tokio, it's not fully implemented but PRs are welcome.
2//!
3//! # Getting started
4//! 1. add package to your project using cargo
5//!
6//! `$ cargo add bunny-api-tokio`
7//!
8//! 2. Start coding
9//!
10//! ```
11//! use bunny_api_tokio::{BunnyClient, error::Error};
12//!
13//! #[tokio::main]
14//! async fn main() -> Result<(), Error> {
15//! let mut client = BunnyClient::new("api_key").await?;
16//!
17//! Ok(())
18//! }
19//! ```
20#![deny(missing_docs)]
21
22#[cfg(feature = "bunnynet")]
23mod bunny;
24#[cfg(feature = "bunnynet")]
25pub use bunny::BunnyClient;
26#[cfg(feature = "edge_storage")]
27pub mod edge_storage;
28#[cfg(feature = "edge_storage")]
29pub use edge_storage::EdgeStorageClient;
30pub mod error;