-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
93 lines (71 loc) · 2.82 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[package]
name = "lightning-signer-core"
license = "Apache-2.0"
version = "0.1.0-5"
authors = ["Devrandom <[email protected]>", "Ken Sedgwick <[email protected]>"]
edition = "2018"
description = "A library for implementing a Lightning signer, which externalizes and secures cryptographic operations."
homepage = "https://gitlab.com/lightning-signer/docs/"
repository = "https://gitlab.com/lightning-signer/validating-lightning-signer"
readme = "../README.md"
rust-version = "1.45.2"
[features]
default = ["std", "env_logger", "debug"]
no-std = ["lightning/no-std", "lightning-invoice/no-std", "bitcoin/no-std", "core2/alloc"]
std = ["lightning/std", "lightning-invoice/std", "bitcoin/std", "bitcoin/rand"]
serde = ["bitcoin/serde"]
secp-lowmemory = ["bitcoin/secp-lowmemory"]
# if you use tonic, this is convenient for auto-conversion of MySigner Status to tonic::Status
grpc = ["tonic"]
# Turn this feature on to run `cargo test`, which launches the functional tests
test_utils = ["use_backtrace", "lightning/_test_utils", "lightning/unsafe_revoked_tx_signing", "bitcoin/bitcoinconsensus"]
debug = ["log_pretty_print", "debug_enforcement_state"]
use_backtrace = ["backtrace"]
log_pretty_print = []
# trace the enforcement_state at debug level
debug_enforcement_state = []
[lib]
name = "lightning_signer"
path = "src/lib.rs"
[dependencies]
core2 = { version = "0.3.0", optional = true, default-features = false }
# Disable default enabled “std” feature
anyhow = { version = "1.0", default-features = false }
# Disable default enabled “use_std” feature
scopeguard = { version = "1.1.0", default-features = false }
# Don't use "std" feature
log = "0.4.14"
env_logger = { version = "0.9.0", optional = true }
backtrace = { version = "0.3", optional = true }
tonic = { version = "0.6.2", optional = true, default-features = false }
hashbrown = "0.11" # match hashbrown dependency version via lightning
itertools = { version = "0.10", default-features = false }
[dev-dependencies]
paste = "1.0"
# For logging in unit tests
test-log = "0.2.8"
# TODO point this and lightning-invoice at next release
[dependencies.lightning]
git = "https://github.com/lightningdevkit/rust-lightning.git"
rev = "af7c2920e1e5ae4ba3f522730e5cce99bedacc8c"
#path = "../../rust-lightning/lightning"
version = "0.0.112"
default-features = false
features = ["grind_signatures"]
[dependencies.lightning-invoice]
git = "https://github.com/lightningdevkit/rust-lightning.git"
rev = "af7c2920e1e5ae4ba3f522730e5cce99bedacc8c"
#path = "../../rust-lightning/lightning-invoice"
version = "0.20.0"
default-features = false
[dependencies.bitcoin]
version = "0.29"
default-features = false
[[bin]]
name = "example_main"
path = "src/example_main.rs"
required-features = ["use_backtrace"]
[[test]]
name = "functional_test"
path = "tests/functional_test.rs"
required-features = ["test_utils"]