aerro 0.3.0

Cross-service gRPC error framework for Rust.
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"
rust-version = "1.85"
name = "aerro"
version = "0.3.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cross-service gRPC error framework for Rust."
homepage = "https://github.com/ae2rs/aerro"
documentation = "https://docs.rs/aerro"
readme = "README.md"
keywords = [
    "grpc",
    "tonic",
    "prost",
    "error",
    "trace",
]
categories = [
    "network-programming",
    "rust-patterns",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ae2rs/aerro"
resolver = "2"

[features]
anyhow = ["dep:anyhow"]
compat-json = [
    "dep:serde",
    "dep:serde_json",
]
default = [
    "macro",
    "tracing",
]
eyre = ["dep:eyre"]
macro = ["dep:aerro-macros"]
tracing = [
    "dep:tracing",
    "dep:tracing-opentelemetry",
    "dep:opentelemetry",
]

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

[[example]]
name = "basic"
path = "examples/basic.rs"
required-features = ["macro"]

[[example]]
name = "compat"
path = "examples/compat.rs"
required-features = [
    "macro",
    "compat-json",
]

[[example]]
name = "exposure"
path = "examples/exposure.rs"
required-features = ["macro"]

[[example]]
name = "handler"
path = "examples/handler.rs"
required-features = ["macro"]

[[example]]
name = "trace_chain"
path = "examples/trace_chain.rs"
required-features = ["macro"]

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

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

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

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

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

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

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

[[bench]]
name = "error_path"
path = "benches/error_path.rs"
harness = false

[dependencies.aerro-macros]
version = "0.3.0"
optional = true

[dependencies.anyhow]
version = "1"
optional = true

[dependencies.bincode]
version = "2.0"
features = [
    "std",
    "derive",
]
default-features = false

[dependencies.bytes]
version = "1.7"

[dependencies.eyre]
version = "0.6"
optional = true

[dependencies.opentelemetry]
version = "0.26"
optional = true
default-features = false

[dependencies.prost]
version = "0.13"

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

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.smallvec]
version = "1.13"
features = [
    "const_generics",
    "union",
]

[dependencies.thiserror]
version = "2"

[dependencies.tonic]
version = "0.13"
features = [
    "codegen",
    "prost",
    "transport",
]
default-features = false

[dependencies.tracing]
version = "0.1"
optional = true
default-features = false

[dependencies.tracing-opentelemetry]
version = "0.27"
optional = true
default-features = false

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
default-features = false

[dev-dependencies.dhat]
version = "0.3"

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
]

[dev-dependencies.trybuild]
version = "1"

[build-dependencies.tonic-build]
version = "0.13"
features = ["prost"]
default-features = false

[lints.clippy]