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
somewhere in the dependency tree.default-features = false - 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