# 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 = "specters"
version = "4.1.10"
authors = ["Jared Boynton"]
build = false
exclude = [
    "lib/boringssl/",
    "bindings/",
    "scripts/",
    ".github/",
    ".cargo/",
    "examples/",
    "justfile",
    "**/.DS_Store",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust HTTP client with browser-like Chrome and Firefox fingerprints across TLS, HTTP/1.1, HTTP/2, HTTP/3, and WebSockets"
readme = "README.md"
keywords = [
    "http-client",
    "chrome",
    "tls",
    "fingerprint",
    "llm",
]
categories = [
    "network-programming",
    "web-programming::http-client",
]
license = "MIT"
repository = "https://github.com/jaredboynton/specter"

[features]
default = []
mimalloc = ["dep:mimalloc"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.atomic-waker]
version = "1"

[dependencies.base64]
version = "0.22.1"

[dependencies.boring]
version = "4"

[dependencies.boring-sys]
version = "4"

[dependencies.brotli]
version = "8"

[dependencies.bytes]
version = "1"

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

[dependencies.flate2]
version = "1"

[dependencies.foreign-types-shared]
version = "0.3"

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

[dependencies.getrandom]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.http]
version = "1"

[dependencies.http-body]
version = "1"

[dependencies.httparse]
version = "1"

[dependencies.libc]
version = "0.2"

[dependencies.mimalloc]
version = "0.1"
optional = true
default-features = false

[dependencies.parking_lot]
version = "0.12"

[dependencies.pin-project-lite]
version = "0.2"

[dependencies.psl]
version = "2"

[dependencies.rustls-native-certs]
version = "0.8"

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_urlencoded]
version = "0.7"

[dependencies.sha2]
version = "0.10"

[dependencies.socket2]
version = "0.6"
features = ["all"]

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "net",
    "time",
    "sync",
    "rt-multi-thread",
    "macros",
    "fs",
    "io-util",
]

[dependencies.tokio-boring]
version = "4"

[dependencies.tracing]
version = "0.1"

[dependencies.zstd]
version = "0.13"

[dev-dependencies.fastwebsockets]
version = "0.10.0"

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

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

[dev-dependencies.rcgen]
version = "0.14.5"

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

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

[dev-dependencies.tokio-tungstenite]
version = "0.24"
features = [
    "connect",
    "rustls-tls-webpki-roots",
]
default-features = false

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

[profile.bench]
inherits = "release"

[profile.dev]
debug = "line-tables-only"
split-debuginfo = "unpacked"
incremental = true

[profile.dev.package."*"]
debug = 0

[profile.dev.build-override]
opt-level = 3
codegen-units = 16

[profile.release]
lto = "thin"
codegen-units = 1
debug = "line-tables-only"

[profile.test]
debug = "line-tables-only"
split-debuginfo = "unpacked"
incremental = true

[profile.test.package."*"]
debug = 0

[profile.test.build-override]
opt-level = 3
codegen-units = 16
