# 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"
rust-version = "1.95"
name = "browser-web3-signer-core"
version = "0.2.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Chain-agnostic engine for browser-based wallet signing: pending-request store, local HTTP bridge, and browser launcher."
readme = "README.md"
keywords = [
    "web3",
    "wallet",
    "signer",
    "ethereum",
    "tron",
]
categories = ["cryptography::cryptocurrencies"]
license = "MIT"
repository = "https://github.com/nikicat/browser-web3-signer"
resolver = "2"

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

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

[dependencies.axum]
version = "0.8"

[dependencies.hex]
version = "0.4"

[dependencies.opener]
version = "0.8"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "sync",
    "time",
    "signal",
    "net",
    "process",
]

[dependencies.tower-http]
version = "0.7"
features = ["cors"]

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2"
features = ["serde"]

[dependencies.uuid]
version = "1"
features = [
    "v4",
    "serde",
]

[dev-dependencies.reqwest]
version = "0.13"
features = ["json"]
default-features = false

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "sync",
    "time",
    "signal",
    "net",
    "process",
    "test-util",
]

[lints.clippy]
absolute_paths = "warn"
as_underscore = "warn"
assertions_on_constants = "warn"
clone_on_ref_ptr = "warn"
dbg_macro = "warn"
doc_markdown = "allow"
empty_enum_variants_with_brackets = "warn"
empty_structs_with_brackets = "warn"
exit = "warn"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
filetype_is_file = "warn"
format_push_string = "warn"
future_not_send = "allow"
if_then_some_else_none = "warn"
infinite_loop = "warn"
let_underscore_must_use = "warn"
manual_assert = "warn"
map_err_ignore = "warn"
mem_forget = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
mixed_read_write_in_expression = "warn"
mod_module_files = "warn"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
mutex_atomic = "warn"
needless_pass_by_value = "warn"
needless_raw_strings = "warn"
panic_in_result_fn = "warn"
path_buf_push_overwrite = "warn"
pathbuf_init_then_push = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
redundant_clone = "warn"
redundant_pub_crate = "allow"
redundant_type_annotations = "warn"
rest_pat_in_fully_bound_structs = "warn"
shadow_same = "warn"
significant_drop_tightening = "allow"
str_to_string = "warn"
string_add = "warn"
todo = "warn"
try_err = "warn"
unimplemented = "warn"
unnecessary_self_imports = "warn"
unneeded_field_pattern = "warn"
unused_async = "warn"
unwrap_in_result = "warn"
use_debug = "warn"
verbose_file_reads = "warn"

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

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

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

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

[lints.rust]
elided_lifetimes_in_paths = "warn"
let_underscore_drop = "warn"
unreachable_pub = "warn"
unsafe_code = "deny"
unused_qualifications = "warn"
