# 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 = "2021"
name = "eggrd"
version = "0.1.2"
build = false
exclude = [
    "loadtest/",
    "worker/",
    "docs/",
    "examples/",
    "tests/",
    ".github/",
    ".ossync.yaml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A drop-in Rust edge proxy that gives any app a secure front door: auth, rate limiting, and hardened response headers, with zero changes to the upstream app."
readme = "README.md"
keywords = [
    "proxy",
    "reverse-proxy",
    "security",
    "waf",
    "rate-limit",
]
categories = [
    "web-programming::http-server",
    "network-programming",
    "command-line-utilities",
]
license = "Apache-2.0"
repository = "https://github.com/lucheeseng827/eggrd"

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

[[bin]]
name = "edgeguard"
path = "src/main.rs"

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.arc-swap]
version = "1"

[dependencies.argon2]
version = "0.5"
features = ["std"]

[dependencies.axum]
version = "0.7"

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1"

[dependencies.governor]
version = "0.6"

[dependencies.http-body-util]
version = "0.1"

[dependencies.hyper]
version = "1"
features = [
    "client",
    "http1",
    "server",
]

[dependencies.hyper-util]
version = "0.1"
features = [
    "client",
    "client-legacy",
    "http1",
    "server",
    "server-auto",
    "tokio",
]

[dependencies.instant-acme]
version = "0.7"

[dependencies.jsonwebtoken]
version = "9"

[dependencies.notify]
version = "6"

[dependencies.rcgen]
version = "0.13"

[dependencies.redis]
version = "1"
features = [
    "tokio-comp",
    "connection-manager",
    "tokio-rustls-comp",
]

[dependencies.regex]
version = "1"

[dependencies.reqwest]
version = "0.12"
features = ["rustls-tls"]
default-features = false

[dependencies.rustls]
version = "0.23"
features = ["ring"]

[dependencies.rustls-pemfile]
version = "2"

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

[dependencies.serde_json]
version = "1"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tokio-rustls]
version = "0.26"

[dependencies.toml]
version = "0.8"

[dependencies.tower]
version = "0.5"
features = ["util"]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "json",
    "env-filter",
]

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

[target."cfg(unix)".dependencies.libc]
version = "0.2"

[profile.release]
opt-level = 3
lto = "thin"
strip = true
