forked from ElementsProject/rust-elements
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
57 lines (46 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
[package]
name = "elements"
version = "0.18.0"
authors = ["Andrew Poelstra <[email protected]>"]
description = "Library with support for de/serialization, parsing and executing on data structures and network messages related to Elements"
license = "CC0-1.0"
homepage = "https://github.com/ElementsProject/rust-elements/"
repository = "https://github.com/ElementsProject/rust-elements/"
documentation = "https://docs.rs/elements/"
[features]
default = [ "json-contract" ]
integration = [ "elementsd" ]
json-contract = [ "serde_json" ]
"serde-feature" = [
"bitcoin/use-serde",
"secp256k1-zkp/use-serde",
"serde"
]
"fuzztarget" = []
[dependencies]
bitcoin = "0.27"
secp256k1-zkp = { version = "0.4.0", features = [ "global-context", "hashes" ] }
slip21 = "0.2.0"
# While this dependency is included in bitcoin, we need this to use the macros.
# We should probably try keep this one in sync with the bitcoin version,
# to avoid requiring two version of bitcoin_hashes.
bitcoin_hashes = "0.10.0"
# Used for ContractHash::from_json_contract.
serde_json = { version = "1.0", optional = true }
serde = { version = "1.0", features=["derive"], optional = true }
# This should be an optional dev-dependency (only needed for integration tests),
# but dev-dependency cannot be optional, and without optionality older toolchain try to compile it and fails
elementsd = { version="0.3.0", features=["0_21_0","bitcoind_22_0"], optional = true }
[dev-dependencies]
rand = "0.6.5"
serde_test = "1.0"
serde_json = "1.0"
ryu = "<1.0.5"
bincode = "1.3"
base64 = "0.13.0"
[[example]]
name = "pset_blind_coinjoin"
[[example]]
name = "raw_blind"
[[example]]
name = "tx"