-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Cargo.toml
45 lines (37 loc) · 1.34 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
[package]
name = "minsc"
version = "0.2.0"
authors = ["Nadav Ivgi <[email protected]>"]
edition = "2018"
include = [ "/src", "/build.rs", "/LICENSE" ]
description = "A scripting language for Bitcoin"
repository = "https://github.com/shesek/minsc"
homepage = "https://min.sc/"
license = "MIT"
readme = "README.md"
[build-dependencies]
lalrpop = { version = "0.22", features = ["lexer"] }
[dependencies]
miniscript = { version = "12", features = ["compiler"] }
bitcoin = { version = "0.32", features = ["rand-std", "base64"] }
lalrpop-util = "0.22"
base64 = "0.22"
thiserror = "1.0.20"
chrono = "0.4.13"
lazy_static = "1.4.0"
# Optional
serde = { version = "1", features=["derive"], optional = true }
wasm-bindgen = { version = "0.2.65", optional = true }
serde-wasm-bindgen = { version = "0.6", optional = true }
wee_alloc = { version = "0.4.5", optional = true }
console_error_panic_hook = { version = "0.1", optional = true }
# not used directly, needed to enable 'getrandom/js' for the 'wasm' feature
getrandom = { version = "0.2", optional = true }
[features]
wasm = [ "wasm-bindgen", "getrandom", "getrandom/js" ] # wee_alloc? seems to result in larger files
playground = [ "wasm", "serde", "wasm-bindgen/serde-serialize", "serde-wasm-bindgen", "console_error_panic_hook" ]
[lib]
crate-type = ["cdylib", "lib"]
[profile.release]
lto = true
opt-level = "s"