-
-
Notifications
You must be signed in to change notification settings - Fork 38
/
Cargo.toml
54 lines (49 loc) · 2.23 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
[package]
name = "lnpbp"
version = "0.9.0"
license = "MIT"
authors = ["Dr. Maxim Orlovsky <[email protected]>"]
description = "LNP/BP Core Library implementing LNPBP specifications & standards"
repository = "https://github.com/LNP-BP/rust-lnpbp"
homepage = "https://github.com/LNP-BP"
keywords = ["bitcoin", "lightning", "lnp-bp", "layer-3", "cryptography"]
categories = ["cryptography::cryptocurrencies"]
readme = "README.md"
edition = "2021"
exclude = [".github", "contrib"]
[lib]
name = "lnpbp"
path = "src/lib.rs"
crate-type = ["rlib", "staticlib"]
[[bin]]
name = "lnpbp"
path = "src/bin/lnpbp.rs"
required-features = ["cli"]
[dependencies]
amplify = { version = "3.13.0", features = ["stringly_conversions", "std"] }
strict_encoding = "0.9.0"
lnpbp_bech32 = { version = "0.9.0", path = "bech32" }
lnpbp_chain = { version = "0.9.0", path = "chain" }
lnpbp_elgamal = { version = "0.9.0", path = "elgamal", optional = true }
lnpbp_identity = { version = "0.9.0", path = "identity", optional = true }
serde_crate = { package = "serde", version = "1", features = ["derive"], optional = true }
serde_with = { version = "1.14", features = ["hex"], optional = true }
# serde_with_macros = { version = "~1.2.0", optional = true } # Fix for the problem in 1.3.0
clap = { version = "~3.2.23", features = ["derive"], optional = true } # Used by cli only
serde_yaml = { version = "0.9", optional = true } # Used by cli only
serde_json = { version = "1", optional = true } # Used by cli only
base64-compat = { version = "1", optional = true } # Used by cli only
base58 = { version = "0.2", optional = true } # Used by cli only
colorize = { version = "0.1.0", optional = true } # Used by cli only
[features]
default = ["zip"]
all = ["serde", "elgamal", "identity", "zip", "cli"]
cli = ["clap", "serde", "identity", "base64-compat", "base58", "serde_yaml", "serde_json", "amplify/hex", "colorize"]
serde = ["serde_crate", "serde_with", "amplify/serde",
"lnpbp_bech32/serde", "lnpbp_chain/serde"]
identity = ["lnpbp_identity"]
elgamal = ["lnpbp_elgamal"] # Provides ElGamal encryption module from this library
zip = ["lnpbp_bech32/zip"]
[workspace]
members = [".", "bech32", "chain", "elgamal", "identity"]
default-members = [".", "bech32", "chain", "elgamal", "identity"]