[package]
edition = "2021"
name = "secure_errors"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Secure error handling with public-safe responses, incident IDs, and panic boundaries."
documentation = "https://docs.rs/secure_errors"
readme = "README.md"
keywords = [
"security",
"errors",
"incident",
"axum",
"actix",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/kerberosmansour/SunLitSecurityLibraries"
[features]
actix-web = ["dep:actix-web"]
axum = [
"dep:axum-core",
"dep:tower-layer",
]
default = ["axum"]
[lib]
name = "secure_errors"
path = "src/lib.rs"
[[example]]
name = "actix_error_minimal"
path = "examples/actix_error_minimal.rs"
required-features = ["actix-web"]
[[test]]
name = "e2e_sunlit_imp_m15"
path = "tests/e2e_sunlit_imp_m15.rs"
[[test]]
name = "e2e_sunlit_m2"
path = "tests/e2e_sunlit_m2.rs"
[[test]]
name = "sg_gate_a_actix_errors"
path = "tests/sg_gate_a_actix_errors.rs"
[[test]]
name = "sg_gate_a_parity_errors"
path = "tests/sg_gate_a_parity_errors.rs"
[[test]]
name = "sunlit_errors_leakage"
path = "tests/sunlit_errors_leakage.rs"
[[test]]
name = "sunlit_errors_mapping"
path = "tests/sunlit_errors_mapping.rs"
[[test]]
name = "sunlit_errors_panic"
path = "tests/sunlit_errors_panic.rs"
[[test]]
name = "sunlit_imp_error_mapping"
path = "tests/sunlit_imp_error_mapping.rs"
[dependencies.actix-web]
version = "4"
optional = true
[dependencies.axum-core]
version = "0.5"
optional = true
[dependencies.http]
version = "1"
[dependencies.security_core]
version = "0.1.0"
package = "security_core"
[dependencies.security_events]
version = "0.1.0"
package = "security_events"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2"
[dependencies.tower-layer]
version = "0.3"
optional = true
[dependencies.tracing]
version = "0.1"
[dev-dependencies.actix-web]
version = "4"
[dev-dependencies.axum]
version = "0.8"
[dev-dependencies.http]
version = "1"
[dev-dependencies.http-body-util]
version = "0.1"
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tokio]
version = "1"
features = ["full"]
[dev-dependencies.tower]
version = "0.5"
features = ["util"]