mirror of
https://github.com/stoatchat/rust-okapi.git
synced 2026-07-01 21:44:49 -04:00
49 lines
1.7 KiB
TOML
49 lines
1.7 KiB
TOML
[package]
|
|
name = "revolt_rocket_okapi"
|
|
description = "OpenAPI (AKA Swagger) document generation for Rocket applications"
|
|
repository = "https://github.com/revoltchat/okapi"
|
|
version = "0.9.1"
|
|
authors = ["Graham Esau <gesau@hotmail.co.uk>"]
|
|
edition = "2018"
|
|
license = "MIT"
|
|
readme = "../README.md"
|
|
keywords = ["rust", "openapi", "swagger", "rocket"]
|
|
categories = ["web-programming"]
|
|
|
|
[dependencies]
|
|
rocket = { version = "0.5.0-rc.2", default-features = false, features = ["json"] }
|
|
schemars = { version = "0.8" }
|
|
revolt_okapi = { version = "0.9.1", path = "../okapi" }
|
|
revolt_rocket_okapi_codegen = { version = "=0.9.1", path = "../rocket-okapi-codegen" }
|
|
serde = "1.0"
|
|
serde_json = "1.0"
|
|
log = "0.4"
|
|
# Rocket dependency but not re-exported
|
|
# See issue: https://github.com/GREsau/schemars/issues/104
|
|
# time = { version = "0.2.27" }
|
|
# Rocket dependency but not re-exported
|
|
either = "1"
|
|
|
|
[features]
|
|
default = ["preserve_order"]
|
|
|
|
# Preserve the order of items in schema and other part of the OpenAPI documentation.
|
|
preserve_order = ["schemars/preserve_order", "revolt_okapi/preserve_order"]
|
|
# Feature to enable Swagger UI for rendering documentation
|
|
# Project: https://github.com/swagger-api/swagger-ui
|
|
swagger = []
|
|
# Feature to enable RapiDoc for rendering documentation
|
|
# Project: https://github.com/mrin9/RapiDoc
|
|
rapidoc = []
|
|
# Allow the use of UUIDs
|
|
uuid = ["rocket/uuid", "schemars/uuid"]
|
|
# Re-export Rocket feature flag
|
|
# https://docs.rs/rocket/0.5.0-rc.1/rocket/serde/msgpack/struct.MsgPack.html
|
|
msgpack = ["rocket/msgpack"]
|
|
# Re-export Rocket feature flag
|
|
# https://rocket.rs/v0.5-rc/guide/requests/#secret-key
|
|
secrets = ["rocket/secrets"]
|
|
|
|
[package.metadata.docs.rs]
|
|
features = ["swagger", "rapidoc"]
|