wafrift-encoding 0.3.1

Payload encoding strategies and header obfuscation for WAF evasion.
Documentation
# 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 = "2024"
name = "wafrift-encoding"
version = "0.3.1"
authors = ["Santh Project <security@santh.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Payload encoding strategies and header obfuscation for WAF evasion."
readme = "README.md"
keywords = [
    "waf",
    "encoding",
    "evasion",
    "security",
    "pentest",
]
categories = [
    "encoding",
    "network-programming",
    "web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/santhsecurity/wafrift"
resolver = "2"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.base64]
version = "0.22.1"

[dependencies.brotli]
version = "8"

[dependencies.flate2]
version = "1"

[dependencies.hex]
version = "0.4.3"

[dependencies.rand]
version = "0.8"

[dependencies.serde]
version = "1"
features = [
    "derive",
    "derive",
]

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"

[dependencies.unicode-normalization]
version = "0.1"

[dependencies.urlencoding]
version = "2"

[dependencies.wafrift-types]
version = "0.3.1"

[dev-dependencies.base64]
version = "0.22.1"

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.hex]
version = "0.4.3"

[dev-dependencies.proptest]
version = "1.11.0"

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

[dev-dependencies.urlencoding]
version = "2"

[dev-dependencies.wafrift-content-type]
version = "0.3.1"

[lints.clippy]
assertions_on_constants = "allow"
doc_lazy_continuation = "allow"
too_many_arguments = "allow"

[lints.rust]
unsafe_code = "warn"
unused_must_use = "deny"