apollo-errors 0.7.0

Structured error handling with automatic format conversion
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 = "2024"
name = "apollo-errors"
version = "0.7.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Structured error handling with automatic format conversion"
readme = false
keywords = [
    "apollo-platform",
    "error",
    "error-handling",
    "derive",
]
categories = [
    "rust-patterns",
    "web-programming",
]
license = "Elastic-2.0"
repository = "https://github.com/apollographql/apollo-platform-rs"
resolver = "2"

[features]
default = []
tower = [
    "dep:tower",
    "dep:http-body",
    "dep:http-body-util",
    "dep:bytes",
    "dep:pin-project-lite",
]

[lib]
name = "apollo_errors"
path = "src/lib.rs"
proc-macro = false

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.apollo-errors-derive]
version = "0.5.0"

[dependencies.bytes]
version = "1.0"
optional = true

[dependencies.http]
version = "1.0"

[dependencies.http-body]
version = "1.0"
optional = true

[dependencies.http-body-util]
version = "0.1"
optional = true

[dependencies.linkme]
version = "0.3"

[dependencies.miette]
version = "7.0"
features = ["fancy"]

[dependencies.pin-project-lite]
version = "0.2"
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.simple-mermaid]
version = "0.2.0"
optional = true

[dependencies.tower]
version = "0.5"
optional = true

[dev-dependencies.bytes]
version = "1.0"

[dev-dependencies.http-body]
version = "1.0"

[dev-dependencies.http-body-util]
version = "0.1"

[dev-dependencies.insta]
version = "1.0"
features = [
    "json",
    "yaml",
]

[dev-dependencies.tokio]
version = "1.0"
features = [
    "rt",
    "macros",
]

[dev-dependencies.tower]
version = "0.5"
features = ["util"]

[dev-dependencies.tower-test]
version = "0.4"