hpx-browser 2.4.24

Headless browser engine for hpx: HTML parsing, rendering, CDP, and canvas support
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 = "hpx-browser"
version = "2.4.24"
authors = ["Akagi201 <akagi201@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Headless browser engine for hpx: HTML parsing, rendering, CDP, and canvas support"
readme = false
license = "Apache-2.0"
repository = "https://github.com/longcipher/hpx"

[features]
blocker = []
canvas = [
    "dep:skia-safe",
    "dep:png",
    "dep:image",
    "dep:fontdb",
    "dep:rustybuzz",
    "dep:swash",
    "dep:rustfft",
]
cdp = [
    "dep:hpx-yawc",
    "dep:hyper",
    "dep:hyper-util",
    "hpx-yawc/axum",
]
proptest = ["dep:proptest"]
v8 = ["dep:deno_core"]
workers = ["v8"]

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

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

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

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

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

[dependencies.base64]
version = "0.22.1"

[dependencies.chrono]
version = "0.4.44"

[dependencies.deno_core]
version = "0.405.0"
optional = true

[dependencies.fontdb]
version = "0.23.0"
optional = true

[dependencies.futures-util]
version = "0.3.32"

[dependencies.hpx]
version = "2.4.24"

[dependencies.hpx-yawc]
version = "2.4.24"
optional = true

[dependencies.html5ever]
version = "0.39.0"

[dependencies.hyper]
version = "1.10.1"
features = [
    "server",
    "http1",
]
optional = true

[dependencies.hyper-util]
version = "0.1.20"
features = [
    "tokio",
    "server-auto",
]
optional = true

[dependencies.image]
version = "0.25.10"
optional = true

[dependencies.png]
version = "0.18.1"
optional = true

[dependencies.proptest]
version = "1.6.0"
optional = true

[dependencies.rand]
version = "0.10.1"

[dependencies.rand_chacha]
version = "0.10.0"

[dependencies.rand_distr]
version = "0.6.0"

[dependencies.rustfft]
version = "6.4.1"
optional = true

[dependencies.rustybuzz]
version = "0.20.1"
optional = true

[dependencies.scc]
version = "3.8.3"

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

[dependencies.serde_json]
version = "1.0.150"

[dependencies.sha2]
version = "0.11.0"

[dependencies.skia-safe]
version = "0.99.0"
optional = true

[dependencies.swash]
version = "0.2.9"
optional = true

[dependencies.taffy]
version = "0.11.0"

[dependencies.thiserror]
version = "2.0.18"

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

[dependencies.tracing]
version = "0.1.44"

[dependencies.url]
version = "2.5.8"

[dependencies.winnow]
version = "1.0.3"

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

[lints.clippy]
allow_attributes = "deny"
as_ptr_cast_mut = "allow"
borrow_as_ptr = "warn"
branches_sharing_code = "warn"
case_sensitive_file_extension_comparisons = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
clear_with_drain = "warn"
cloned_instead_of_copied = "warn"
cognitive_complexity = "allow"
collection_is_never_read = "warn"
dbg_macro = "deny"
debug_assert_with_mut_call = "allow"
default_trait_access = "allow"
derive_partial_eq_without_eq = "warn"
doc_markdown = "allow"
empty_line_after_doc_comments = "warn"
empty_line_after_outer_attr = "warn"
enum_glob_use = "warn"
equatable_if_let = "warn"
expect_used = "deny"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
fallible_impl_from = "allow"
flat_map_option = "warn"
fn_params_excessive_bools = "allow"
format_push_string = "allow"
future_not_send = "allow"
if_not_else = "warn"
if_then_some_else_none = "warn"
implicit_clone = "warn"
imprecise_flops = "warn"
items_after_statements = "allow"
iter_on_empty_collections = "warn"
iter_on_single_items = "warn"
iter_with_drain = "warn"
iter_without_into_iter = "warn"
large_stack_frames = "warn"
manual_assert = "warn"
manual_clamp = "warn"
manual_is_variant_and = "warn"
manual_let_else = "allow"
manual_string_new = "warn"
match_same_arms = "allow"
missing_const_for_fn = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
mutex_integer = "warn"
naive_bytecount = "warn"
needless_bitwise_bool = "warn"
needless_collect = "allow"
needless_continue = "warn"
needless_for_each = "warn"
needless_pass_by_ref_mut = "warn"
needless_pass_by_value = "allow"
no_effect_underscore_binding = "allow"
non_send_fields_in_send_ty = "allow"
nonstandard_macro_braces = "warn"
option_as_ref_cloned = "warn"
or_fun_call = "warn"
panic = "deny"
path_buf_push_overwrite = "warn"
print_stderr = "deny"
print_stdout = "deny"
read_zero_byte_vec = "warn"
redundant_clone = "warn"
redundant_closure_for_method_calls = "allow"
redundant_else = "warn"
redundant_pub_crate = "allow"
ref_option = "allow"
ref_option_ref = "allow"
result_large_err = "allow"
return_self_not_must_use = "allow"
significant_drop_in_scrutinee = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
single_char_pattern = "warn"
string_lit_as_bytes = "warn"
string_lit_chars_any = "warn"
struct_excessive_bools = "allow"
suboptimal_flops = "warn"
suspicious_operation_groupings = "warn"
todo = "deny"
too_long_first_doc_paragraph = "allow"
too_many_lines = "allow"
trailing_empty_array = "warn"
trait_duplication_in_bounds = "warn"
transmute_undefined_repr = "warn"
trivial_regex = "warn"
trivially_copy_pass_by_ref = "allow"
tuple_array_conversions = "warn"
type_repetition_in_bounds = "warn"
unimplemented = "deny"
uninhabited_references = "warn"
uninlined_format_args = "allow"
unnecessary_self_imports = "warn"
unnecessary_struct_initialization = "warn"
unnecessary_wraps = "allow"
unnested_or_patterns = "warn"
unused_async = "allow"
unused_peekable = "warn"
unused_rounding = "warn"
unwrap_used = "deny"
use_self = "warn"
used_underscore_binding = "allow"
useless_let_if_seq = "warn"
while_float = "warn"
zero_sized_map_values = "warn"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unused_must_use = "deny"

[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1

[lints.rustdoc]
all = "warn"