Cargo Features

[dependencies]
rocket = { version = "0.5.1", default-features = false, features = ["tls", "mtls", "http2", "secrets", "json", "msgpack", "uuid"] }
default = http2

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

tls mtls?

Enables tls of rocket_http

Affects config::Config.tls

mtls = tls

Enables mtls of rocket_http

Affects tls::MutualTls, rocket::mtls

http2 default

Enables http2 of rocket_http

secrets

Enables private-cookies of rocket_http

Affects config::Config.secret_key

json = serde_json

Enables tokio

Affects serde::json

msgpack = rmp-serde

Enables tokio

Affects serde::msgpack

uuid = uuid_

Enables uuid of rocket_http

Affects serde::uuid

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.

serde_json json?

Enables serde_json

Serialization dependencies.

rmp-serde msgpack?
uuid_ uuid?

Enables uuid