-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathCargo.toml
46 lines (39 loc) · 1.12 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
[package]
name = "bitcoin-scriptexec"
version = "0.0.0"
edition = "2021"
description = "Bitcoin Script interpreter/executor"
authors = ["Steven Roose <[email protected]>"]
license = "CC0-1.0"
[lib]
crate-type = ["cdylib", "rlib"]
[[bin]]
name = "btcexec"
path = "src/main.rs"
required-features = ["cli"]
[features]
default = ["cli", "wasm"]
json = ["serde", "serde_json", "bitcoin/serde"]
cli = ["json", "clap"]
wasm = [
"json",
"wasm-bindgen",
"serde-wasm-bindgen",
"console_error_panic_hook",
"getrandom/js",
]
[dependencies]
bitcoin = "0.32.5"
lazy_static = "1.4.0"
# cli
clap = { version = "4.5.23", features = ["derive"], optional = true }
# wasm
serde = { version = "1.0.216", features = ["derive"], optional = true }
serde_json = { version = "1.0.133", optional = true }
wasm-bindgen = { version = "0.2.99", optional = true }
serde-wasm-bindgen = { version = "0.6.5", optional = true }
console_error_panic_hook = { version = "0.1.7", optional = true }
# I think we need to mention this for secp256k1-sys to work
getrandom = { version = "0.2.15", optional = true }
[dev-dependencies]
bincode = { version = "1.3.3" }