-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cargo.toml
64 lines (56 loc) · 1.64 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[package]
name = "bdk_wasm"
version = "0.1.0"
repository = "https://github.com/MetaMask/bdk-wasm"
description = "A modern, lightweight, descriptor-based wallet library for WASM and JS/TS"
keywords = [
"bitcoin",
"wallet",
"descriptor",
"psbt",
"wasm",
"js",
"typescript",
]
readme = "README.md"
license = "MIT OR Apache-2.0"
authors = ["Bitcoin Developers"]
edition = "2021"
rust-version = "1.73"
[lib]
crate-type = ["cdylib", "rlib"]
[features]
default = []
esplora = ["bdk_esplora"]
debug = ["console_error_panic_hook"]
snap = ["default"]
[dependencies]
wasm-bindgen = "0.2.99"
wasm-bindgen-futures = "0.4.49"
anyhow = "1.0.94"
thiserror = "2.0.6"
serde = { version = "1.0.216", default-features = false, features = ["derive"] }
js-sys = "0.3.76"
serde-wasm-bindgen = "0.6.5"
rmp-serde = "1.3.0"
# Compatibility to compile to WASM
getrandom = { version = "0.2.15", features = ["js"] }
ring = { version = "0.17.8", features = ["wasm32_unknown_unknown_js"] }
gloo-timers = { version = "0.3.0", features = ["futures"] }
# Bitcoin dependencies
bdk_wallet = { version = "1.0.0-beta.6" }
bdk_esplora = { version = "0.20", default-features = false, features = [
"async-https",
], optional = true }
bitcoin = { version = "0.32.5", default-features = false }
miniscript = "12.3.0"
bdk_core = "0.4.0"
# Debug dependencies
console_error_panic_hook = { version = "0.1.7", optional = true }
[dev-dependencies]
wasm-bindgen-test = "0.3.49"
web-sys = { version = "0.3.76", features = ["console"] }
bdk_wallet = { version = "1.0.0-beta.6", features = ["keys-bip39"] }
[profile.release]
# Tell `rustc` to optimize for small code size.
opt-level = "s"