[package]
edition = "2021"
rust-version = "1.77"
name = "zinc-core"
version = "0.1.2"
build = false
include = [
"Cargo.toml",
"README.md",
"LICENSE",
"CHANGELOG.md",
"SECURITY.md",
"CONTRIBUTING.md",
"CODE_OF_CONDUCT.md",
"assets/**",
"src/**",
"tests/**",
"examples/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core Rust library for Zinc Bitcoin + Ordinals wallet"
homepage = "https://github.com/bitcoiner-dev/zinc-core"
documentation = "https://docs.rs/zinc-core"
readme = "README.md"
keywords = [
"bitcoin",
"ordinals",
"wallet",
"bdk",
"wasm",
]
categories = [
"cryptography::cryptocurrencies",
"wasm",
]
license = "MIT"
repository = "https://github.com/bitcoiner-dev/zinc-core"
[features]
debug = []
default = []
[lib]
name = "zinc_core"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[[example]]
name = "check_esplora"
path = "examples/check_esplora.rs"
[[example]]
name = "psbt_sign_audit"
path = "examples/psbt_sign_audit.rs"
[[example]]
name = "sync_and_balance"
path = "examples/sync_and_balance.rs"
[[example]]
name = "wallet_setup"
path = "examples/wallet_setup.rs"
[[test]]
name = "integration_esplora"
path = "tests/integration_esplora.rs"
[[test]]
name = "multi_account_test"
path = "tests/multi_account_test.rs"
[[test]]
name = "ordinals_balance"
path = "tests/ordinals_balance.rs"
[[test]]
name = "ordinals_client"
path = "tests/ordinals_client.rs"
[[test]]
name = "ordinals_shield"
path = "tests/ordinals_shield.rs"
[[test]]
name = "ordinals_types"
path = "tests/ordinals_types.rs"
[[test]]
name = "persistence"
path = "tests/persistence.rs"
[[test]]
name = "send_flow"
path = "tests/send_flow.rs"
[[test]]
name = "sync_events"
path = "tests/sync_events.rs"
[[test]]
name = "wallet_builder"
path = "tests/wallet_builder.rs"
[[test]]
name = "wallet_flow"
path = "tests/wallet_flow.rs"
[[test]]
name = "wasm_account_test"
path = "tests/wasm_account_test.rs"
[[test]]
name = "wasm_test"
path = "tests/wasm_test.rs"
[dependencies.aes-gcm]
version = "0.10"
[dependencies.argon2]
version = "0.5"
[dependencies.base64]
version = "0.22"
[dependencies.bdk_chain]
version = "0.23"
[dependencies.bdk_wallet]
version = "2.3.0"
[dependencies.bip39]
version = "2.1"
features = ["zeroize"]
[dependencies.bitcoin]
version = "0.32"
features = [
"secp-lowmemory",
"secp-recovery",
"std",
]
default-features = false
[dependencies.console_error_panic_hook]
version = "0.1"
[dependencies.getrandom]
version = "0.2"
features = ["js"]
[dependencies.log]
version = "0.4"
[dependencies.rand]
version = "0.8"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde-wasm-bindgen]
version = "0.6"
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "2.0"
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-wasm]
version = "0.2"
[dependencies.wasm-bindgen]
version = "0.2"
[dependencies.wasm-bindgen-futures]
version = "0.4.58"
[dependencies.zeroize]
version = "1.8"
features = ["derive"]
[dev-dependencies.wasm-bindgen-test]
version = "0.3"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.bdk_esplora]
version = "0.22.1"
features = ["async-https-rustls"]
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.esplora-client]
version = "0.12.2"
features = ["async-https-rustls"]
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.futures-util]
version = "0.3.32"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.reqwest]
version = "0.12.5"
features = [
"json",
"rustls-tls",
]
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1.37"
features = [
"time",
"sync",
"macros",
]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio-tungstenite]
version = "0.24.0"
features = ["rustls-tls-webpki-roots"]
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.mockito]
version = "1.7.1"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tokio]
version = "1.49.0"
features = [
"macros",
"rt-multi-thread",
]
[target.'cfg(target_arch = "wasm32")'.dependencies.bdk_esplora]
version = "0.22.1"
features = ["async-https"]
default-features = false
[target.'cfg(target_arch = "wasm32")'.dependencies.esplora-client]
version = "0.12.2"
features = ["async"]
default-features = false
[target.'cfg(target_arch = "wasm32")'.dependencies.futures-util]
version = "0.3.32"
[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"
[target.'cfg(target_arch = "wasm32")'.dependencies.reqwest]
version = "0.12.5"
features = ["json"]
default-features = false
[target.wasm32-unknown-unknown.dependencies.gloo-timers]
version = "0.3.0"
features = ["futures"]
[lints.clippy]
expect_used = "allow"
panic = "allow"
todo = "deny"
unimplemented = "deny"
unwrap_used = "allow"
[lints.clippy.all]
level = "allow"
priority = -1
[lints.clippy.correctness]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "allow"
priority = -1
[lints.rust]
unsafe_code = "deny"
[profile.release]
opt-level = "s"
lto = true