[package]
edition = "2021"
name = "secure_boundary"
version = "0.1.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Input validation, request limits, CORS, Fetch Metadata, and browser boundary protections."
documentation = "https://docs.rs/secure_boundary"
readme = "README.md"
keywords = [
"security",
"validation",
"headers",
"axum",
"actix",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/kerberosmansour/SunLitSecurityLibraries"
[features]
actix-web = [
"dep:actix-web",
"dep:actix-http",
"dep:futures-util",
]
axum = [
"dep:axum",
"dep:axum-core",
"dep:tower",
"dep:tower-http",
"dep:http-body-util",
]
default = ["axum"]
html-sanitize = ["dep:ammonia"]
mobile-platform = []
[lib]
name = "secure_boundary"
path = "src/lib.rs"
[[example]]
name = "actix_minimal"
path = "examples/actix_minimal.rs"
required-features = ["actix-web"]
[[test]]
name = "cve_maswe_0058_deep_links"
path = "tests/cve_maswe_0058_deep_links.rs"
[[test]]
name = "cve_maswe_0069_webview_files"
path = "tests/cve_maswe_0069_webview_files.rs"
[[test]]
name = "cve_regression"
path = "tests/cve_regression.rs"
[[test]]
name = "e2e_sunlit_imp_m11"
path = "tests/e2e_sunlit_imp_m11.rs"
[[test]]
name = "e2e_sunlit_m4"
path = "tests/e2e_sunlit_m4.rs"
[[test]]
name = "e2e_sunlit_owasp_m18"
path = "tests/e2e_sunlit_owasp_m18.rs"
[[test]]
name = "e2e_sunlit_owasp_m21"
path = "tests/e2e_sunlit_owasp_m21.rs"
[[test]]
name = "platform_tests"
path = "tests/platform_tests.rs"
[[test]]
name = "prop_deep_link_webview"
path = "tests/prop_deep_link_webview.rs"
[[test]]
name = "prop_validation"
path = "tests/prop_validation.rs"
[[test]]
name = "sg_gate_a_actix_extract"
path = "tests/sg_gate_a_actix_extract.rs"
[[test]]
name = "sg_gate_a_actix_fetch_metadata"
path = "tests/sg_gate_a_actix_fetch_metadata.rs"
[[test]]
name = "sg_gate_a_actix_headers"
path = "tests/sg_gate_a_actix_headers.rs"
[[test]]
name = "sg_gate_a_parity_boundary"
path = "tests/sg_gate_a_parity_boundary.rs"
[[test]]
name = "sg_gate_a_safeurl_cidrs"
path = "tests/sg_gate_a_safeurl_cidrs.rs"
[[test]]
name = "sunlit_boundary_extractors"
path = "tests/sunlit_boundary_extractors.rs"
[[test]]
name = "sunlit_boundary_headers"
path = "tests/sunlit_boundary_headers.rs"
[[test]]
name = "sunlit_boundary_mass_assignment"
path = "tests/sunlit_boundary_mass_assignment.rs"
[[test]]
name = "sunlit_boundary_normalization"
path = "tests/sunlit_boundary_normalization.rs"
[[test]]
name = "sunlit_boundary_strict_serde"
path = "tests/sunlit_boundary_strict_serde.rs"
[[test]]
name = "sunlit_boundary_validation"
path = "tests/sunlit_boundary_validation.rs"
[[test]]
name = "sunlit_imp_depth_limits"
path = "tests/sunlit_imp_depth_limits.rs"
[[test]]
name = "sunlit_imp_header_sanitize"
path = "tests/sunlit_imp_header_sanitize.rs"
[[test]]
name = "sunlit_imp_headers"
path = "tests/sunlit_imp_headers.rs"
[[test]]
name = "sunlit_imp_safe_types"
path = "tests/sunlit_imp_safe_types.rs"
[[test]]
name = "sunlit_imp_xml"
path = "tests/sunlit_imp_xml.rs"
[[test]]
name = "sunlit_owasp_cors"
path = "tests/sunlit_owasp_cors.rs"
[[test]]
name = "sunlit_owasp_fetch_meta"
path = "tests/sunlit_owasp_fetch_meta.rs"
[[test]]
name = "sunlit_owasp_limits"
path = "tests/sunlit_owasp_limits.rs"
[[test]]
name = "sunlit_owasp_sanitize"
path = "tests/sunlit_owasp_sanitize.rs"
[dependencies.actix-http]
version = "3"
optional = true
[dependencies.actix-web]
version = "4"
optional = true
[dependencies.ammonia]
version = "4"
optional = true
[dependencies.axum]
version = "0.8"
optional = true
[dependencies.axum-core]
version = "0.5"
optional = true
[dependencies.base64]
version = "0.22"
[dependencies.bytes]
version = "1"
[dependencies.futures-util]
version = "0.3"
optional = true
[dependencies.http]
version = "1"
[dependencies.http-body-util]
version = "0.1"
optional = true
[dependencies.mime]
version = "0.3"
[dependencies.quick-xml]
version = "0.36"
features = ["serialize"]
[dependencies.secure_errors]
version = "0.1.2"
package = "secure_errors"
[dependencies.security_core]
version = "0.1.2"
package = "security_core"
[dependencies.security_events]
version = "0.1.2"
package = "security_events"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.serde_urlencoded]
version = "0.7"
[dependencies.thiserror]
version = "2"
[dependencies.time]
version = "0.3"
features = [
"serde",
"formatting",
"parsing",
]
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tower]
version = "0.5"
optional = true
[dependencies.tower-http]
version = "0.6"
features = [
"set-header",
"cors",
]
optional = true
[dependencies.unicode-normalization]
version = "0.1"
[dependencies.uuid]
version = "1"
features = [
"v4",
"serde",
"v4",
"serde",
]
[dev-dependencies.actix-web]
version = "4"
[dev-dependencies.axum]
version = "0.8"
features = ["macros"]
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.secure_output]
version = "0.1.2"
package = "secure_output"
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tokio]
version = "1"
features = [
"full",
"full",
]
[dev-dependencies.tower]
version = "0.5"
features = ["util"]
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(kani)"]