doppel 0.0.2

Intercept secrets in byte payloads, replace them with structurally-equivalent fakes, and transparently restore originals in streaming responses.
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"
rust-version = "1.85"
name = "doppel"
version = "0.0.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Intercept secrets in byte payloads, replace them with structurally-equivalent fakes, and transparently restore originals in streaming responses."
documentation = "https://docs.rs/doppel"
readme = "README.md"
keywords = [
    "secrets",
    "redaction",
    "proxy",
    "anonymization",
    "llm",
]
categories = [
    "cryptography",
    "network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/mackenney/doppel"

[package.metadata.release]
tag = true
tag-prefix = ""

[[package.metadata.release.pre-release-replacements]]
file = "../CHANGELOG.md"
search = "Unreleased"
replace = "{{version}}"

[[package.metadata.release.pre-release-replacements]]
file = "../CHANGELOG.md"
search = "ReleaseDate"
replace = "{{date}}"

[[package.metadata.release.pre-release-replacements]]
file = "../CHANGELOG.md"
search = '\.\.\.HEAD'
replace = "...{{tag_name}}"
exactly = 1

[[package.metadata.release.pre-release-replacements]]
file = "../CHANGELOG.md"
search = "<!-- next-header -->"
replace = """
<!-- next-header -->

## [Unreleased] - ReleaseDate"""
exactly = 1

[[package.metadata.release.pre-release-replacements]]
file = "../CHANGELOG.md"
search = "<!-- next-url -->"
replace = """
<!-- next-url -->
[Unreleased]: {{repository}}/compare/{{tag_name}}...HEAD"""
exactly = 1

[features]
async = [
    "dep:futures-core",
    "dep:bytes",
]

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

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

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

[dependencies.aho-corasick]
version = "1"

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1"
optional = true

[dependencies.chacha20poly1305]
version = "0.10"

[dependencies.futures-core]
version = "0.3"
optional = true

[dependencies.hex]
version = "0.4"

[dependencies.hmac]
version = "0.12"

[dependencies.log]
version = "0.4"

[dependencies.rand]
version = "0.8"
features = [
    "std",
    "std_rng",
]

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.subtle]
version = "2"

[dependencies.thiserror]
version = "1"

[dependencies.toml]
version = "0.8"

[dependencies.zeroize]
version = "1"
features = ["derive"]

[dev-dependencies.futures]
version = "0.3"

[dev-dependencies.rand]
version = "0.8"
features = [
    "std",
    "std_rng",
]

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.zeroize]
version = "1"
features = ["derive"]