Cargo Features

submillisecond = { version = "0.4.1", default-features = false, features = ["cookies", "json", "logging", "query", "template", "websocket"] }
default = logging

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

cookies = serde_json

Enables cookie ^0.17

Affects submillisecond::cookies, submillisecond::session

json = serde_json
logging default = ansi_term, lunatic-log
query = serde_urlencoded

Affects rejection::FailedToDeserializeQueryString

template = askama

Affects submillisecond::template

websocket = base64ct, sha1, tungstenite

Affects submillisecond::websocket

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

ansi_term logging

Enables ansi_term

optional dependencies

askama template?

Enables askama ^0.11

base64ct websocket?
lunatic-log logging
serde_json cookies? json?
serde_urlencoded query?
sha1 websocket?
tungstenite websocket?

Enables tungstenite ^0.19