api-response 0.17.0

A consistent structure for API responses, including success and error handling.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "api-response"
version = "0.17.0"
authors = ["Andeya Lee <andeyalee@outlook.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A consistent structure for API responses, including success and error handling."
documentation = "https://docs.rs/api-response"
readme = "README.md"
keywords = [
    "api",
    "http",
    "rpc",
    "response",
]
categories = [
    "web-programming",
    "data-structures",
]
license = "MIT"
repository = "https://github.com/andeya/api-response"

[features]
lite = []
salvo = ["dep:salvo"]
try = []

[lib]
name = "api_response"
path = "src/lib.rs"

[[example]]
name = "mix"
path = "examples/mix.rs"

[[example]]
name = "normal"
path = "examples/normal.rs"

[[example]]
name = "salvo"
path = "examples/salvo.rs"

[[test]]
name = "error_json"
path = "tests/error_json.rs"

[[test]]
name = "success_json"
path = "tests/success_json.rs"

[dependencies.api-response-macros]
version = ">=0.17.0"

[dependencies.chrono]
version = ">=0.4"
features = ["serde"]

[dependencies.getset2]
version = ">=0.4.0"

[dependencies.http]
version = ">=1"

[dependencies.inventory]
version = "~0.3.16"

[dependencies.num_enum]
version = "0.7"

[dependencies.quick-xml]
version = "0.37.2"
features = ["serialize"]

[dependencies.salvo]
version = ">=0.93"
features = ["oapi"]
optional = true
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dev-dependencies.salvo]
version = ">=0.93"
features = ["oapi"]

[dev-dependencies.serde_json]
version = "^1.0"

[dev-dependencies.tokio]
version = "^1.41"