This repository was archived by the owner on Aug 21, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathCargo.toml
More file actions
69 lines (60 loc) · 1.78 KB
/
Cargo.toml
File metadata and controls
69 lines (60 loc) · 1.78 KB
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
65
66
67
68
69
[package]
name = "bitcoindevkit"
version = "0.1.13"
repository = "https://github.com/MetaMask/bdk-wasm"
description = "A modern, lightweight, descriptor-based wallet library in WebAssembly for browsers and Node"
keywords = [
"bitcoin",
"wallet",
"descriptor",
"psbt",
"wasm",
"bitcoindevkit",
"bdk",
"browser",
"node",
]
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", "wasm-bindgen-futures"]
debug = ["console_error_panic_hook"]
[dependencies]
wasm-bindgen = "0.2.100"
wasm-bindgen-futures = { version = "0.4.50", optional = true }
anyhow = { version = "1.0.98", default-features = false }
serde = { version = "1.0.219", default-features = false, features = ["derive"] }
serde-wasm-bindgen = "0.6.5"
web-sys = { version = "0.3.77", default-features = false, features = [
"Window",
] }
# Compatibility to compile to WASM
getrandom = { version = "0.2.16", features = ["js"] }
# Bitcoin dependencies
bdk_wallet = { version = "2.0.0" }
bdk_esplora = { version = "0.22.0", default-features = false, features = [
"async-https",
], optional = true }
bitcoin = { version = "0.32.6", default-features = false, features = [
"secp-lowmemory",
] }
# Debug dependencies
console_error_panic_hook = { version = "0.1.7", optional = true }
[dev-dependencies]
wasm-bindgen-test = "0.3.50"
bdk_wallet = { version = "2.0.0", features = ["keys-bip39"] }
[profile.release]
# Tell `rustc` to optimize for small code size.
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true
[package.metadata.wasm-pack.profile.release]
wasm-opt = ["-Oz", "--enable-bulk-memory", "--enable-nontrapping-float-to-int"]