1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#![doc = include_str!("../DOCS_README.md")]

mod enums;
mod endpoints;
mod error;

#[cfg(feature="async")]
mod api_async;

#[cfg(not(feature="async"))]
mod api;

#[cfg(feature="async")]
pub use api_async::BBApi;

#[cfg(not(feature="async"))]
pub use api::BBApi;

pub use error::Error;
pub use endpoints::{ServerData, Leaderboard, Player, Clan};
pub use enums::*;

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn server_list() {
        let api = api::BBApi::default();
        if let Err(e) = api.server_list() {
            panic!("{e}");
        }
    }
}