# 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"
rust-version = "1.92"
name = "rift-http-proxy"
version = "0.3.0"
authors = ["Rift Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rift: high-performance HTTP chaos engineering proxy with Lua/Rhai/JavaScript scripting for fault injection."
homepage = "https://github.com/EtaCassiopeia/rift"
readme = "README.md"
keywords = [
    "proxy",
    "http",
    "chaos",
    "fault-injection",
    "kubernetes",
]
categories = [
    "network-programming",
    "web-programming::http-server",
    "development-tools::testing",
]
license = "Apache-2.0"
repository = "https://github.com/EtaCassiopeia/rift"

[features]
default = [
    "redis-backend",
    "lua",
    "javascript",
]
javascript = ["boa_engine"]
lua = ["mlua"]
redis-backend = [
    "redis",
    "r2d2",
]

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

[[bin]]
name = "rift-http-proxy"
path = "src/main.rs"

[[bin]]
name = "rift-verify"
path = "src/bin/verify.rs"

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.async-trait]
version = "0.1"

[dependencies.base64]
version = "0.22"

[dependencies.boa_engine]
version = "0.20"
optional = true

[dependencies.bytes]
version = "1.7"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.clap]
version = "4.5"
features = [
    "derive",
    "env",
]

[dependencies.crossbeam]
version = "0.8"

[dependencies.futures]
version = "0.3"

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

[dependencies.hyper]
version = "1.5"
features = ["full"]

[dependencies.hyper-rustls]
version = "0.27"
features = [
    "http1",
    "ring",
    "native-tokio",
    "tls12",
    "logging",
]
default-features = false

[dependencies.hyper-util]
version = "0.1"
features = ["full"]

[dependencies.lazy_static]
version = "1.4"

[dependencies.libc]
version = "0.2"

[dependencies.matchit]
version = "0.9"

[dependencies.mlua]
version = "0.10"
features = [
    "luajit",
    "serialize",
]
optional = true

[dependencies.num_cpus]
version = "1.16"

[dependencies.once_cell]
version = "1.19"

[dependencies.parking_lot]
version = "0.12"

[dependencies.prometheus]
version = "0.13"

[dependencies.r2d2]
version = "0.8"
optional = true

[dependencies.rand]
version = "0.8"

[dependencies.redis]
version = "0.26"
optional = true
default-features = false

[dependencies.regex]
version = "1.11"

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

[dependencies.rhai]
version = "=1.21.0"
features = [
    "sync",
    "serde",
]

[dependencies.rustls]
version = "0.23"
features = [
    "ring",
    "std",
    "tls12",
    "logging",
]
default-features = false

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

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_json_path]
version = "0.7"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.similar]
version = "2.6"

[dependencies.socket2]
version = "0.5"

[dependencies.sxd-document]
version = "0.3"

[dependencies.sxd-xpath]
version = "0.4"

[dependencies.thiserror]
version = "2.0"

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

[dependencies.tokio-rustls]
version = "0.26"
features = [
    "ring",
    "tls12",
    "logging",
]
default-features = false

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

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-appender]
version = "0.2"

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

[dependencies.urlencoding]
version = "2.1"

[dev-dependencies.assert-json-diff]
version = "2.0"

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

[dev-dependencies.once_cell]
version = "1.19"

[dev-dependencies.port_check]
version = "0.2"

[dev-dependencies.reqwest]
version = "0.12"
features = ["json"]

[dev-dependencies.serial_test]
version = "3.0"

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

[dev-dependencies.testcontainers]
version = "0.23"

[dev-dependencies.testcontainers-modules]
version = "0.11"
features = ["redis"]

[dev-dependencies.tokio-test]
version = "0.4"

[dev-dependencies.tracing-test]
version = "0.2"

[dev-dependencies.uuid]
version = "1.8"
features = ["v4"]
