topgg 1.4.2

The official Rust wrapper for the Top.gg API
Documentation
#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_cfg))]

mod snowflake;

cfg_if::cfg_if! {
  if #[cfg(feature = "api")] {
    mod client;
    mod error;
    mod util;

    #[cfg(feature = "autoposter")]
    pub(crate) use client::InnerClient;

    /// Bot-related traits and structs.
    pub mod bot;

    /// User-related structs.
    pub mod user;

    #[doc(inline)]
    pub use bot::Stats;
    pub use client::Client;
    pub use error::{Error, Result};
    pub use snowflake::Snowflake; // for doc purposes
  }
}

cfg_if::cfg_if! {
  if #[cfg(feature = "autoposter")] {
    /// Autoposter-related traits and structs.
    #[cfg_attr(docsrs, doc(cfg(feature = "autoposter")))]
    pub mod autoposter;

    #[doc(inline)]
    pub use autoposter::{Autoposter, SharedStats};
  }
}

cfg_if::cfg_if! {
  if #[cfg(feature = "webhook")] {
    mod webhook;

    pub use webhook::*;
  }
}