Cargo Features

[dependencies]
onebot-api = { version = "1.2.2", default-features = false, features = ["full", "websocket", "websocket-reverse", "http", "http-post", "sse", "combiner", "quick_operation", "selector", "rustls", "native-tls"] }
default = full

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

full default = combiner, http, http-post, quick_operation, rustls, selector, sse, websocket, websocket-reverse
websocket full = tokio-tungstenite

Affects communication::ws

websocket-reverse full = axum

Affects communication::ws_reverse

http full

Enables reqwest

Affects communication::http

http-post full = axum, hex, hmac, sha1

Affects communication::http_post

sse full = eventsource-stream

Enables stream of reqwest

Affects communication::sse

combiner full

Affects communication::combiner

quick_operation full

Affects onebot-api::quick_operation

selector full

Affects onebot-api::selector

rustls full

Enables rustls of reqwest, rustls-tls-webpki-roots of tokio-tungstenite

native-tls

Enables native-tls of reqwest and tokio-tungstenite

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.

axum http-post? websocket-reverse?
tokio-tungstenite native-tls? rustls? websocket?
eventsource-stream sse?
hmac http-post?

Enables hmac ^0.12.1

sha1 http-post?

Enables sha1 ^0.10.6

hex http-post?