Cargo Features
[dependencies]
topgg = { version = "1.4.2", 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 whenevertopgg
is added without
somewhere in the dependency tree.default-features = false - api default autoposter? = chrono, reqwest, serde_json
- autoposter = api, tokio
- serenity serenity-cached? = paste
-
Enables serenity
- serenity-cached = 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.