forked from MetaMask/bdk-wasm
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
58 lines (49 loc) · 1.64 KB
/
Cargo.toml
File metadata and controls
58 lines (49 loc) · 1.64 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
[package]
name = "bitcoindevkit"
version = "0.3.0"
repository = "https://github.com/bitcoindevkit/bdk-wasm"
description = "A modern, lightweight, descriptor-based wallet library in WebAssembly for browsers and Node"
keywords = ["bitcoin", "descriptor", "wasm", "browser", "node"]
readme = "README.md"
license = "MIT OR Apache-2.0"
authors = ["Bitcoin Developers"]
edition = "2021"
rust-version = "1.83"
[lib]
crate-type = ["cdylib", "rlib"]
[features]
default = []
esplora = ["bdk_esplora", "wasm-bindgen-futures"]
debug = ["console_error_panic_hook"]
[dependencies]
wasm-bindgen = "0.2.117"
wasm-bindgen-futures = { version = "0.4.67", optional = true }
anyhow = { version = "1.0.102", default-features = false }
serde = { version = "1.0.228", default-features = false, features = ["derive"] }
serde-wasm-bindgen = "0.6.5"
web-sys = { version = "0.3.94", default-features = false, features = [
"Window",
] }
# Compatibility to compile to WASM
getrandom = { version = "0.2.17", features = ["js"] }
# Bitcoin dependencies
bdk_wallet = { version = "2.3.0" }
bdk_esplora = { version = "0.22.2", default-features = false, features = [
"async-https",
], optional = true }
bitcoin = { version = "0.32.8", 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.67"
[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"]