[dependencies.api-code-macros]
version = ">=0.1.0"
[dependencies.chrono]
features = ["serde"]
version = ">=0.4"
[dependencies.getset2]
version = ">=0.4.0"
[dependencies.http]
version = ">=1"
[dependencies.inventory]
version = "~0.3.16"
[dependencies.num_enum]
version = "0.7"
[dependencies.salvo]
default-features = false
features = ["oapi"]
optional = true
version = ">=0.74"
[dependencies.serde]
features = ["derive"]
version = "1"
[dev-dependencies.salvo]
features = ["oapi"]
version = ">=0.74"
[dev-dependencies.serde_json]
version = "^1.0"
[dev-dependencies.tokio]
version = "^1.41"
[[example]]
name = "mix"
path = "examples/mix.rs"
[[example]]
name = "normal"
path = "examples/normal.rs"
[[example]]
name = "salvo"
path = "examples/salvo.rs"
[features]
formatting_options = []
lite = []
salvo = ["dep:salvo"]
try = []
[lib]
name = "api_response"
path = "src/lib.rs"
[package]
authors = ["Andeya Lee <andeyalee@outlook.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["web-programming", "data-structures"]
description = "A consistent structure for API responses, including success and error handling."
documentation = "https://docs.rs/api-response"
edition = "2021"
keywords = ["api", "http", "rpc", "response"]
license = "MIT"
name = "api-response"
readme = "README.md"
repository = "https://github.com/andeya/api-response"
version = "0.14.2"
[[test]]
name = "error_json"
path = "tests/error_json.rs"
[[test]]
name = "success_json"
path = "tests/success_json.rs"