Cargo Features

[dependencies]
paseto = { version = "2.0.2+1.0.3", default-features = false, features = ["v1", "v2", "easy_tokens_chrono", "easy_tokens_time"] }
default = easy_tokens_chrono, v1, v2

These default features are set whenever paseto is added without default-features = false somewhere in the dependency tree.

v1 default = openssl

Affects paseto::v1

v2 default = blake2, chacha20poly1305

Affects paseto::v2

easy_tokens_chrono default = chrono, serde_json

Affects paseto::tokens

easy_tokens_time = serde_json, time

Affects paseto::tokens

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.

blake2 v2

Enables blake2 ^0.9.1

chacha20poly1305 v2

Enables chacha20poly1305 ^0.8.0

chrono easy_tokens_chrono
time easy_tokens_time?

Enables time ^0.2

openssl v1
serde_json easy_tokens_chrono easy_tokens_time?