Cargo Features

[dependencies]
topgg = { version = "1.3.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?

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?
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.

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