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 default-features = false somewhere in the dependency tree.

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.

gotham_derive derive
bincode session
linked-hash-map session
tokio-rustls rustls?

Enables tokio-rustls ^0.23