Cargo Features
[dependencies]
gotham = { version = "0.7.4", default-features = false, features = ["derive", "http2", "rustls", "session", "testing"] }
- default = derive, http2, session, testing
-
These default features are set whenever
gotham
is added without
somewhere in the dependency tree.default-features = false - derive default = gotham_derive
- http2 default
-
Enables http2 of hyper ^0.14.12
- rustls = tokio-rustls
-
Affects
gotham::tls
… - session default = bincode, linked-hash-map
-
Affects
middleware::session
… - testing default
-
Enables client of hyper ^0.14.12
hyper:
Client/Server
Affects
gotham::test
,plain::test
,tls::test
…
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.