> ## Documentation Index
> Fetch the complete documentation index at: https://docs.top.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Top.gg Rust SDK: Community Library

> A community-maintained Rust crate for the Top.gg API. Post bot stats, retrieve bot data, and query the Top.gg API from your Rust Discord bot.

The Top.gg Rust SDK is a community-maintained crate that wraps the Top.gg REST API for Rust applications. It is not maintained by the Top.gg core team. The crate is published on [crates.io](https://crates.io/crates/topgg).

## Installation

Add the crate to your project with Cargo:

```bash theme={null}
cargo add topgg
```

Or add it to the `[dependencies]` section of your `Cargo.toml` directly:

```toml theme={null}
[dependencies]
topgg = "VERSION"
```

The crate ships with optional feature flags for common web frameworks and Discord libraries. Enable only what you need:

```toml theme={null}
[dependencies]
topgg = { version = "VERSION", features = ["autoposter", "serenity"] }
```

Available features include `autoposter`, `serenity`, `serenity-cached`, `twilight`, `axum`, `actix-web`, `rocket`, and `warp`. Check [crates.io](https://crates.io/crates/topgg) for the current version.

## Community and support

For bug reports or feature requests, open an issue on the [GitHub repository](https://github.com/top-gg/rust-sdk). For general API questions, join the Top.gg Discord server at [discord.gg/dbl](https://discord.gg/dbl).
