Cargo Features
[dependencies]
toy-rpc-ha421 = { version = "0.9.0-beta.1", default-features = false, features = ["server", "client", "tls", "ws_tokio", "ws_async_std", "docs", "serde_bincode", "serde_rmp", "tokio_runtime", "async_std_runtime", "http_tide", "http_actix_web", "http_warp", "http_axum", "wasm", "serde_json", "serde_cbor", "hyper", "tower-service", "anyhow"] }
- default = serde_bincode
-
The
serde_bincode
feature is set by default whenevertoy-rpc-ha421
is added without
somewhere in the dependency tree.default-features = false - server http_actix_web? http_axum? http_tide? http_warp?
-
Enables server of toy-rpc-macros-ha421
Affects
toy-rpc-ha421::server
… - client
-
Enables client of toy-rpc-macros-ha421
Affects
toy-rpc-ha421::client
… - tls = futures-rustls, rustls, tokio-rustls, webpki
- ws_tokio http_actix_web? http_axum? http_warp? = tokio_runtime, tungstenite
-
Enables tokio-runtime of async-tungstenite ^0.17
- ws_async_std http_tide? = async_std_runtime, tungstenite
-
Enables async-std-runtime of async-tungstenite ^0.17
- docs
- serde_bincode default
-
feature flags for codec
- serde_rmp = rmp-serde
- tokio_runtime http_actix_web? http_axum? http_warp? ws_tokio? = tokio, tokio-stream
-
feature flags for runtime
Enables runtime of toy-rpc-macros-ha421
- async_std_runtime http_tide? ws_async_std? = async-std
-
Enables runtime of toy-rpc-macros-ha421
- http_tide = async_std_runtime, server, tide, tide-websockets, ws_async_std
- http_actix_web = actix, actix-http, actix-rt, actix-web, actix-web-actors, server, tokio_runtime, ws_tokio
- http_warp = server, tokio_runtime, warp, ws_tokio
- http_axum = axum, bytes, http-body, server, tokio_runtime, ws_tokio
- wasm
-
Enables wasm-bindgen-futures of async-std
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.
- serde_json implicit feature
-
Enables serde_json
feature gated optional dependecies
- serde_cbor implicit feature
-
Enables serde_cbor
serde_cbor:
CBOR support for serde
- rmp-serde serde_rmp?
- tide http_tide?
- tide-websockets http_tide?
- actix-web http_actix_web?
- actix http_actix_web?
- actix-rt http_actix_web?
- actix-web-actors http_actix_web?
- actix-http http_actix_web?
- warp http_warp?
- axum http_axum?
-
Enables axum ^0.5
- hyper implicit feature
-
Enables hyper ^0.14.11
hyper:
A protective and efficient HTTP library for all
- http-body http_axum?
-
Enables http-body ^0.4.2
- bytes http_axum?
- tower-service implicit feature
-
Enables tower-service
tower-service:
Trait representing an asynchronous, request / response based, client or server
- async-std async_std_runtime? wasm?
- tokio tokio_runtime?
- tokio-stream tokio_runtime?
- tokio-rustls tls?
-
Enables tokio-rustls ^0.25.0
- futures-rustls tls?
-
Enables futures-rustls ^0.25
- rustls tls?
-
Enables rustls ^0.22
- webpki tls?
- anyhow implicit feature
-
Enables anyhow
anyhow:
Flexible concrete Error type built on std::error::Error
- tungstenite ws_async_std? ws_tokio?
-
Enables tungstenite ^0.17
- async-tungstenite ws_async_std? ws_tokio?
-
Enables async-tungstenite ^0.17