Cargo Features

[dependencies]
via = { version = "2.0.0-beta.7", default-features = false, features = ["http1", "http2", "rustls"] }
default = http1

The http1 feature is set by default whenever via is added without default-features = false somewhere in the dependency tree.

http1 default

Enables http1 of hyper

hyper:

HTTP versions

http2

Enables http2 of hyper

rustls

Enables tokio-rustls

Affects acceptor::rustls