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
fullfeature is set by default wheneveronebot-apiis added withoutsomewhere in the dependency tree.default-features = false - 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
-
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?