Cargo Features

[dependencies]
topgg = { version = "1.4.1", default-features = false, features = ["api", "autoposter", "serenity", "serenity-cached", "twilight", "twilight-cached", "webhook", "rocket", "axum", "warp", "actix-web"] }
default = api

The api feature is set by default whenever topgg is added without default-features = false somewhere in the dependency tree.

api default autoposter? = chrono, reqwest, serde_json
autoposter = api, tokio
serenity serenity-cached? = paste

Enables serenity

serenity-cached = serenity

Enables cache of serenity

serenity:

Enables the cache, which stores the data received from Discord gateway to provide access to complete guild data, channels, users and more without needing HTTP requests.

twilight twilight-cached? = twilight-model
twilight-cached = twilight, twilight-cache-inmemory
webhook actix-web? axum? rocket? warp? = urlencoding
rocket = webhook

Enables rocket

axum = async-trait, serde_json, webhook

Enables axum

warp = async-trait, webhook

Enables warp

actix-web = webhook

Enables actix-web

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

paste serenity?
reqwest api
tokio autoposter?
urlencoding webhook?
twilight-model twilight?
twilight-cache-inmemory twilight-cached?
chrono api
serde_json api axum?
async-trait axum? warp?