hpx_emulation/lib.rs
1#![deny(unused)]
2#![deny(unsafe_code)]
3#![allow(clippy::extra_unused_lifetimes)]
4#![cfg_attr(docsrs, feature(doc_cfg))]
5#![cfg_attr(test, deny(warnings))]
6#![cfg_attr(not(test), warn(unused_crate_dependencies))]
7//! # hpx-emulation
8//!
9//! Browser emulation utilities for hpx.
10//!
11//! This crate provides browser emulation capabilities for the `hpx` HTTP client:
12//!
13//! - **Emulation**: Browser emulation profiles (TLS fingerprinting, HTTP/2 settings).
14//! - **Fingerprint**: Structured browser fingerprint types for comparison, testing,
15//! and custom profile creation.
16
17use hpx as _;
18#[cfg(feature = "emulation-serde")]
19use serde as _;
20
21#[cfg(feature = "emulation")]
22pub mod emulation;
23
24#[cfg(feature = "emulation")]
25pub use self::emulation::{Emulation, EmulationOS, EmulationOption};
26
27/// Structured browser fingerprint types.
28///
29/// Provides type-safe, comparable representations of browser TLS/HTTP2/header
30/// fingerprints, along with utilities for header composition, fingerprint
31/// diffing, and named TLS presets.
32pub mod fingerprint;