# 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"
rust-version = "1.86"
name = "ark-core"
version = "0.9.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core types and utilities for Ark"
readme = "README.md"
keywords = [
    "ark",
    "arkade",
    "bitcoin",
    "wallet",
]
categories = ["cryptography::cryptocurrencies"]
license = "MIT"
repository = "https://github.com/arkade-os/rust-sdk"

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

[dependencies.bech32]
version = "0.11"

[dependencies.bitcoin]
version = "0.32.7"
features = [
    "base64",
    "rand",
    "serde",
]

[dependencies.bs58]
version = "0.5"

[dependencies.hex]
version = "0.4"

[dependencies.musig]
version = "0.32.0-beta.2"
features = ["serde"]
package = "secp256k1"

[dependencies.rand]
version = "0.8"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "1.0"

[dependencies.tracing]
version = "0.1.37"

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.getrandom]
version = "0.2"
features = [
    "wasm-bindgen",
    "js",
]

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.getrandom2]
version = "0.3.1"
features = ["wasm_js"]
package = "getrandom"

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.js-sys]
version = "0.3"

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.web-sys]
version = "0.3.77"
features = [
    "Window",
    "Performance",
]

[lints.clippy]
dbg_macro = "warn"
large_enum_variant = "allow"
print_stderr = "warn"
print_stdout = "warn"
redundant_clone = "warn"
redundant_else = "warn"
too_many_arguments = "allow"
unnecessary_wraps = "warn"
unused_async = "warn"
unwrap_in_result = "warn"
unwrap_used = "warn"
wildcard_enum_match_arm = "warn"

[lints.rust]
unused-import-braces = "warn"
unused-qualifications = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(genproto)"]
