[package]
edition = "2021"
rust-version = "1.70"
name = "handle-this"
version = "0.2.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Ergonomic error handling with try/catch/throw/inspect/finally syntax and automatic stack traces"
documentation = "https://docs.rs/handle-this"
readme = "README.md"
keywords = [
"error",
"handling",
"try",
"catch",
"macro",
]
categories = [
"rust-patterns",
"development-tools",
"no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/BrandonLeeDotDev/handle-this"
[features]
anyhow = []
default = ["std"]
eyre = []
serde = ["dep:serde"]
std = []
[lib]
name = "handle_this"
path = "src/lib.rs"
[[example]]
name = "bad"
path = "examples/bad.rs"
[[example]]
name = "chain_test"
path = "examples/chain_test.rs"
[[example]]
name = "guard_test"
path = "examples/guard_test.rs"
[[example]]
name = "guarded_any_test"
path = "examples/guarded_any_test.rs"
[[example]]
name = "nested_signal"
path = "examples/nested_signal.rs"
[[example]]
name = "scope_json"
path = "examples/scope_json.rs"
[[example]]
name = "scope_nested_test"
path = "examples/scope_nested_test.rs"
[[example]]
name = "thiserror_example"
path = "examples/thiserror_example.rs"
[[example]]
name = "throw_test"
path = "examples/throw_test.rs"
[[example]]
name = "typed_throw_test"
path = "examples/typed_throw_test.rs"
[[test]]
name = "ui"
path = "tests/ui.rs"
[[bench]]
name = "error_handling"
path = "benches/error_handling.rs"
harness = false
[dependencies.handle-this-macros]
version = "0.2.4"
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dependencies.smallvec]
version = "1.15.1"
default-features = false
[dev-dependencies.anyhow]
version = "1"
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.thiserror]
version = "1"
[dev-dependencies.tokio]
version = "1"
features = [
"rt",
"macros",
]
[dev-dependencies.trybuild]
version = "1.0"