# 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.82"
name = "blvm-sdk"
version = "0.1.11"
authors = ["Bitcoin Commons Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Bitcoin Commons software developer kit, governance infrastructure and composition framework for Bitcoin"
homepage = "https://github.com/BTCDecoded/blvm-sdk"
documentation = "https://docs.rs/blvm-sdk"
readme = "README.md"
keywords = [
    "bitcoin",
    "governance",
    "cryptography",
    "consensus",
]
categories = [
    "cryptography",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/BTCDecoded/blvm-sdk"

[features]
default = ["node"]
git = ["dep:git2"]
node = [
    "dep:blvm-node",
    "blvm-node/sled",
    "blvm-node/sysinfo",
    "blvm-node/nix",
    "blvm-node/libc",
    "blvm-node/production",
    "blvm-node/governance",
    "blvm-node/utxo-commitments",
    "blvm-node/protocol-verification",
]
registry = [
    "dep:reqwest",
    "dep:flate2",
    "dep:tar",
]
wasm-modules = [
    "dep:wasmtime",
    "node",
    "blvm-node/wasm-modules",
]

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

[[bin]]
name = "blvm-aggregate-signatures"
path = "src/bin/blvm-aggregate-signatures.rs"

[[bin]]
name = "blvm-compose"
path = "src/bin/blvm-compose.rs"

[[bin]]
name = "blvm-keygen"
path = "src/bin/blvm-keygen.rs"

[[bin]]
name = "blvm-registry"
path = "src/bin/blvm-registry.rs"

[[bin]]
name = "blvm-sign"
path = "src/bin/blvm-sign.rs"

[[bin]]
name = "blvm-sign-binary"
path = "src/bin/blvm-sign-binary.rs"

[[bin]]
name = "blvm-verify"
path = "src/bin/blvm-verify.rs"

[[bin]]
name = "blvm-verify-binary"
path = "src/bin/blvm-verify-binary.rs"

[[example]]
name = "demo-module"
path = "examples/demo-module/main.rs"

[[example]]
name = "governance_signing"
path = "examples/governance_signing.rs"

[[example]]
name = "governance_verification"
path = "examples/governance_verification.rs"

[[example]]
name = "hello-module"
path = "examples/hello-module/main.rs"

[[example]]
name = "multisig_workflow"
path = "examples/multisig_workflow.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "=1.0.93"

[dependencies.base64]
version = "=0.21.5"

[dependencies.blvm-node]
version = "0.1.21"
optional = true
default-features = false

[dependencies.blvm-sdk-macros]
version = "=0.1.11"

[dependencies.blvm-secp256k1]
version = ">=0.1, <1"

[dependencies.chrono]
version = "=0.4.35"
features = ["serde"]

[dependencies.clap]
version = "=4.4.11"
features = ["derive"]

[dependencies.flate2]
version = "1.0"
features = ["rust_backend"]
optional = true
default-features = false

[dependencies.git2]
version = "0.18"
optional = true

[dependencies.hex]
version = "=0.4.3"

[dependencies.hmac]
version = "=0.12.1"

[dependencies.pbkdf2]
version = "=0.12.2"

[dependencies.rand]
version = "=0.8.5"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "blocking",
]
optional = true

[dependencies.ripemd]
version = "=0.1.3"

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

[dependencies.serde_json]
version = "=1.0.108"

[dependencies.sha2]
version = "=0.10.9"

[dependencies.tar]
version = "0.4"
optional = true

[dependencies.thiserror]
version = "=1.0.69"

[dependencies.tokio]
version = "=1.48.0"
features = [
    "rt",
    "macros",
    "sync",
    "fs",
]

[dependencies.toml]
version = "=0.8.2"

[dependencies.tracing]
version = "0.1"

[dependencies.wasmtime]
version = "=36.0.9"
features = [
    "wat",
    "cranelift",
    "runtime",
]
optional = true
default-features = false

[dev-dependencies.criterion]
version = "=0.5.1"

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

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ['cfg(feature, values("node", "wasm-modules", "registry", "git"))']
