# 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-cli"
version = "2.5.4"
authors = ["Akagi201 <akagi201@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CLI for hpx — high-performance HTTP client and download engine"
readme = false
license = "Apache-2.0"
repository = "https://github.com/longcipher/hpx"

[[bin]]
name = "hpx"
path = "src/main.rs"
doc = false

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

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

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

[dependencies.eyre]
version = "0.6.12"

[dependencies.futures]
version = "0.3.32"

[dependencies.hpx]
version = "2.5.4"
features = [
    "http1",
    "http2",
    "ws",
    "json",
    "stream",
    "tracing",
    "boring-tls",
    "cookies",
    "form",
    "multipart",
]

[dependencies.hpx-browser]
version = "2.5.4"
features = ["cdp"]

[dependencies.hpx-dl]
version = "2.5.4"

[dependencies.hpx-yawc]
version = "2.5.4"
features = ["proxy"]

[dependencies.http]
version = "1.4.2"

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

[dependencies.serde_json]
version = "1.0.150"

[dependencies.tokio]
version = "1.52.1"
features = [
    "rt-multi-thread",
    "macros",
    "io-std",
    "io-util",
    "signal",
    "fs",
    "time",
    "process",
]

[dependencies.tracing-subscriber]
version = "0.3.23"

[dependencies.url]
version = "2.5.8"

[dependencies.uuid]
version = "1.23.4"

[dev-dependencies.axum]
version = "0.8.9"
features = ["ws"]

[dev-dependencies.proptest]
version = "1.6.0"

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

[dev-dependencies.tokio]
version = "1.52.1"
features = [
    "net",
    "time",
    "process",
]

[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"
