httpjail 0.6.2

Monitor and restrict HTTP/HTTPS requests from processes
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 = "httpjail"
version = "0.6.2"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Monitor and restrict HTTP/HTTPS requests from processes"
readme = "README.md"
keywords = [
    "network",
    "security",
    "proxy",
    "monitoring",
    "sandbox",
]
categories = [
    "command-line-utilities",
    "network-programming",
    "development-tools",
]
license = "CC0-1.0"
repository = "https://github.com/coder/httpjail"

[package.metadata.cargo-udeps.ignore]
dev = ["serial_test"]

[features]
isolated-cleanup-tests = []

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0.103"

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

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

[dependencies.bytes]
version = "1.11"

[dependencies.camino]
version = "1.1.11"

[dependencies.chrono]
version = "0.4"

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

[dependencies.ctrlc]
version = "3.4"

[dependencies.dirs]
version = "6.0.0"

[dependencies.filetime]
version = "0.2"

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

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

[dependencies.hyper-rustls]
version = "0.27.7"

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

[dependencies.lru]
version = "0.18.2"

[dependencies.rand]
version = "0.8.6"

[dependencies.rcgen]
version = "0.13"

[dependencies.rustls]
version = "0.23.45"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.simple-dns]
version = "0.7"

[dependencies.tempfile]
version = "3.8"

[dependencies.tls-parser]
version = "0.12.2"

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

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

[dependencies.tracing]
version = "0.1"

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

[dependencies.url]
version = "2.5"

[dependencies.v8]
version = "129"

[dependencies.webpki-roots]
version = "0.26"

[dev-dependencies.assert_cmd]
version = "2.0"

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

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

[dev-dependencies.pprof]
version = "0.15"
features = [
    "protobuf-codec",
    "criterion",
]

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

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

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

[target.'cfg(target_os = "linux")'.dependencies.libc]
version = "0.2"

[target.'cfg(target_os = "linux")'.dependencies.socket2]
version = "0.5"

[target.'cfg(target_os = "macos")'.dependencies.libc]
version = "0.2"

[profile.bench]
debug = 2
inherits = "release"

[profile.fast]
opt-level = 1
lto = false
codegen-units = 16
inherits = "release"