# 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.11.0" authors = ["Andeya Lee "] build = 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", ] license = "MIT" repository = "https://github.com/andeya/api-response" [lib] name = "api_response" path = "src/lib.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.http] version = ">=1" [dependencies.inventory] version = "~0.3.15" [dependencies.num_enum] version = "0.7" [dependencies.salvo] version = ">=0.74" features = ["oapi"] optional = true default-features = false [dependencies.serde] version = "1" features = ["derive"] [dev-dependencies.salvo] version = ">=0.74" features = ["oapi"] [dev-dependencies.serde_json] version = "^1.0" [dev-dependencies.tokio] version = "^1.41" [features] salvo = ["dep:salvo"] try = []