Cargo Features
[dependencies]
pomfrit = { version = "0.1.9", default-features = false, features = ["exporter", "http1", "http2", "serde"] }
- default = http1, serde
-
These default features are set whenever
pomfrit
is added without
somewhere in the dependency tree.default-features = false - exporter http1 http2? = anyhow, futures-util, hyper, log, parking_lot, tokio
- http1 default = exporter
-
Enables http1 of hyper ^0.14
hyper:
HTTP versions
- http2 = exporter
-
Enables http2 of hyper ^0.14
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.