# 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.96"
name = "ladon"
version = "0.2.7"
authors = ["Melon Ask"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast multi-chain HD wallet CLI and address-pool daemon: EVM, Bitcoin, Solana"
homepage = "https://github.com/melonask/ladon"
readme = "README.md"
keywords = [
    "crypto",
    "hd-wallet",
    "ethereum",
    "bitcoin",
    "solana",
]
categories = [
    "command-line-utilities",
    "cryptography",
]
license = "MIT"
repository = "https://github.com/melonask/ladon"

[features]
default = [
    "pool",
    "sqlite",
]
full = [
    "sqlite",
    "postgres",
]
pg = ["postgres"]
pool = [
    "dep:tokio",
    "dep:sqlx",
    "dep:ulid",
    "dep:chrono",
]
postgres = [
    "pool",
    "sqlx/postgres",
]
sqlite = [
    "pool",
    "sqlx/sqlite",
]

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

[[bin]]
name = "ladon"
path = "src/main.rs"
required-features = ["pool"]

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

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

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

[dependencies.aes-gcm]
version = "0.10"

[dependencies.anyhow]
version = "1.0"

[dependencies.base64]
version = "0.22"

[dependencies.bip39]
version = "2.2"
features = ["rand"]

[dependencies.bitcoin]
version = "0.32"
features = [
    "std",
    "rand",
]
default-features = false

[dependencies.chrono]
version = "0.4"
features = ["clock"]
optional = true
default-features = false

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

[dependencies.ed25519-dalek]
version = "2.2"

[dependencies.hex]
version = "0.4"

[dependencies.hmac]
version = "0.13"

[dependencies.rand]
version = "0.10"

[dependencies.scrypt]
version = "0.12"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.11"

[dependencies.solana-pubkey]
version = "4.2"
features = [
    "curve25519",
    "sha2",
]

[dependencies.sqlx]
version = "0.9"
features = [
    "runtime-tokio",
    "tls-rustls",
    "any",
    "uuid",
    "chrono",
]
optional = true
default-features = false

[dependencies.thiserror]
version = "2.0"

[dependencies.tiny-keccak]
version = "2.0"
features = ["keccak"]

[dependencies.tokio]
version = "1.52"
features = [
    "rt-multi-thread",
    "macros",
    "time",
    "signal",
]
optional = true

[dependencies.toml]
version = "1.1"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "fmt",
]

[dependencies.ulid]
version = "1.2"
optional = true

[dependencies.zeroize]
version = "1.8"
features = ["derive"]

[dev-dependencies.serde_json]
version = "1.0"

[dev-dependencies.tokio]
version = "1.52"
features = [
    "rt-multi-thread",
    "macros",
    "time",
    "signal",
]

[lints.rust]
unused_must_use = "deny"

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true
