# 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 = "orion-error"
version = "0.7.1"
authors = ["wukong <sec-wukong@outlook.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Struct Error for Large Project"
readme = "README.md"
keywords = [
    "error",
    "utilities",
]
categories = ["rust-patterns"]
license = "MIT"
repository = "https://github.com/galaxio-labs/orion-error"

[features]
anyhow = ["dep:anyhow"]
default = [
    "log",
    "derive",
]
derive = ["dep:orion-error-derive"]
log = ["dep:log"]
serde = ["dep:serde"]
serde_json = ["dep:serde_json"]
toml = ["dep:toml"]
tracing = ["dep:tracing"]

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

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

[[example]]
name = "order_case"
path = "examples/order_case.rs"
required-features = ["derive"]

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

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

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

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

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

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

[dependencies.derive_more]
version = "2.1"
features = ["from"]

[dependencies.log]
version = "0.4"
optional = true

[dependencies.orion-error-derive]
version = "0.7.0"
optional = true

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "rc",
]
optional = true

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

[dependencies.thiserror]
version = "2.0"

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

[dependencies.tracing]
version = "0.1"
optional = true

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.parse-display-derive]
version = "0.10"

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