Cargo Features
[dependencies]
ezsockets = { version = "0.6.4", default-features = false, features = ["client", "native_client", "wasm_client", "server", "tungstenite", "axum", "tls", "native-tls", "rustls"] }
- default = native_client, server
-
These default features are set whenever
ezsockets
is added without
somewhere in the dependency tree.default-features = false - client native_client wasm_client? = tokio-tungstenite-wasm
- native_client default = client, tokio-tungstenite
-
Affects
client::connect
… - wasm_client = client, fragile
- server default axum? tungstenite? = tokio-tungstenite, tokio-tungstenite-wasm
-
tokio:
Includes basic task execution capabilities
- tungstenite = server
-
Affects
server_runners::tungstenite
… - axum = axum-core, bytes, http-body, hyper, server, sha-1
-
Enables axum ^0.6.1, alloc of futures-util
- tls native-tls? rustls?
- native-tls = tls, tokio-native-tls
-
Enables native-tls of tokio-tungstenite ^0.20.0
- rustls = tls, tokio-rustls
-
Enables rustls-tls-webpki-roots of tokio-tungstenite ^0.20.0
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-core axum?
-
Enables axum-core ^0.3.0
- bytes axum?
- fragile wasm_client?
- http-body axum?
-
Enables http-body ^0.4.5
- hyper axum?
-
Enables hyper ^0.14.23
- sha-1 axum?
- tokio-tungstenite native-tls? native_client rustls? server
-
Enables tokio-tungstenite ^0.20.0
- tokio-tungstenite-wasm client? server
-
Enables tokio-tungstenite-wasm ^0.2.1
- tokio-rustls rustls?
-
Enables tokio-rustls ^0.24.1
- tokio-native-tls native-tls?