Cargo Features

[dependencies]
revolt-models = { version = "0.7.15", default-features = false, features = ["serde", "schemas", "validator", "rocket", "partials"] }
default = partials, rocket, serde

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

serde default partials

Enables serde, serde of indexmap ^1.9.3 and revolt-permissions

schemas partials

Enables schemas of revolt-permissions and schemars

Spec Generation

validator

Enables validator ^0.16.0

Validation

rocket default

Enables rocket

Rocket

partials default = schemas, serde

Enables revolt_optional_struct

Serialisation