# 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"
rust-version = "1.81.0"
name = "error-rail"
version = "0.5.1"
authors = ["jeong-il suk <wjddlf211@naver.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ErrorRail is a no_std compatible Error Handling library for the Rust language."
readme = "README.md"
keywords = [
    "error",
    "error-handling",
    "no_std",
]
categories = [
    "algorithms",
    "no-std",
]
license = "Apache-2.0"
repository = "https://github.com/but212/error-rail"

[package.metadata]
msrv = "1.81.0"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
    "--generate-link-to-definition",
]

[features]
default = []
full = [
    "serde",
    "std",
]
serde = [
    "dep:serde",
    "smallvec/serde",
]
std = []

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

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

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

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

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

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

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

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

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

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "alloc",
]
optional = true
default-features = false

[dependencies.smallvec]
version = "1.15.1"

[dev-dependencies.criterion]
version = "0.7.0"

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