Cargo Features
[dependencies]
web-push = { version = "0.10.2", default-features = false, features = ["isahc-client", "hyper-client"] }
- default = isahc-client
-
The
isahc-client
feature is set by default wheneverweb-push
is added without
somewhere in the dependency tree.default-features = false - isahc-client default = isahc
-
futures are only used for read_to_end() in isach client.
Enables futures-io of futures-lite ^1.12
Affects
clients::isahc_client
… - hyper-client = hyper, hyper-tls
-
use features = ["hyper-client"], default-features = false for about 300kb size decrease.
Affects
clients::hyper_client
…
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.
- hyper hyper-client?
-
Enables hyper ^0.14
- hyper-tls hyper-client?
-
Enables hyper-tls ^0.5
- isahc isahc-client
- futures-lite isahc-client
-
Enables futures-lite ^1.12