Skip to main content
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.

Installation

Add the crate to your project with Cargo:
cargo add topgg
Or add it to the [dependencies] section of your Cargo.toml directly:
[dependencies]
topgg = "VERSION"
The crate ships with optional feature flags for common web frameworks and Discord libraries. Enable only what you need:
[dependencies]
topgg = { version = "VERSION", features = ["autoposter", "serenity"] }
Available features include autoposter, serenity, serenity-cached, twilight, axum, actix-web, rocket, and warp. Check crates.io for the current version.

Community and support

For bug reports or feature requests, open an issue on the GitHub repository. For general API questions, join the Top.gg Discord server at discord.gg/dbl.