Cargo Features

[dependencies]
pasetors = { version = "0.6.8", default-features = false, features = ["std", "v2", "v3", "v4", "paserk", "serde"] }
default = paserk, std, v4

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

std default = regex, serde_json, time

Affects pasetors::claims, pasetors::footer, pasetors::public, pasetors::local

v2 = ed25519-compact, orion

Affects pasetors::version2

v3 = p384, rand_core, sha2

Affects pasetors::version3

v4 default = ed25519-compact, orion

Affects pasetors::version4, pasetors::public, pasetors::local

paserk default = orion

Affects pasetors::paserk

Features from optional dependencies

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

serde_json std
serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework

p384 v3?
rand_core v3?
regex std
sha2 v3?
time std
ed25519-compact v2? v4
orion paserk v2? v4