Cargo Features

[dependencies]
revolt_rocket_okapi = { version = "0.10.0", default-features = false, features = ["preserve_order", "swagger", "rapidoc", "uuid", "msgpack", "secrets"] }
default = preserve_order

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

preserve_order default

Preserve the order of items in schema and other part of the OpenAPI documentation.

Enables preserve_order of revolt_okapi and schemars

swagger

Feature to enable Swagger UI for rendering documentation Project: https://github.com/swagger-api/swagger-ui

Affects revolt_rocket_okapi::swagger_ui

rapidoc

Feature to enable RapiDoc for rendering documentation Project: https://github.com/mrin9/RapiDoc

Affects revolt_rocket_okapi::rapidoc

uuid

Allow the use of UUIDs

Enables uuid of rocket and schemars

msgpack

Re-export Rocket feature flag https://docs.rs/rocket/0.5.0-rc.1/rocket/serde/msgpack/struct.MsgPack.html

Enables msgpack of rocket

secrets

Re-export Rocket feature flag https://rocket.rs/v0.5-rc/guide/requests/#secret-key

Enables secrets of rocket