-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCargo.toml
92 lines (85 loc) · 2.9 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
[package]
name = "internet2"
version = "0.9.0"
license = "Apache-2.0"
authors = ["Dr. Maxim Orlovsky <[email protected]>"]
description = "Rust implementation for the stack of Internet2 protocols"
repository = "https://github.com/internet2-org/rust-internet2"
homepage = "https://github.com/internet2-org"
keywords = ["internet2", "tor", "noise-xk", "privacy", "cryptography"]
categories = ["network-programming", "cryptography", "encoding"]
readme = "README.md"
edition = "2021"
rust-version = "1.70.0"
exclude = [".github", "derive", "contrib", "addr"]
[lib]
name = "internet2"
path = "src/lib.rs"
crate-type = ["rlib", "staticlib"]
[[test]]
name = "brontide"
path = "tests/brontide.rs"
required-features = ["keygen"]
[[test]]
name = "brontozaur"
path = "tests/brontozaur.rs"
required-features = ["keygen"]
# Dependencies
# ============
[dependencies]
# Dependencies on other LNP/BP repositories
# -----------------------------------------
amplify = "3.13.0"
strict_encoding = { version = "0.9.0", default-features = false, features = ["derive"] }
lightning_encoding = "0.9.1"
inet2_addr = { version = "0.9.0", features = ["strict_encoding", "lightning_encoding", "stringly_conversions"], path = "./addr" }
inet2_derive = { version = "0.9.0", default-features = false, optional = true, path = "./derive" }
# Dependencies on core rust-bitcoin & cryptography
# ------------------------------------------------
secp256k1 = "0.24.2"
bitcoin_hashes = "0.11.0"
chacha20 = "0.9"
chacha20poly1305 = "0.9"
# Core rust projects
# ------------------
# This strange naming is a workaround for cargo inability to define required
# features for a dependency. See
# <https://github.com/rust-lang/api-guidelines/issues/180> for the explanation
# and references.
serde_crate = { package = "serde", version = "1.0", features = ["derive"], optional = true }
serde_with = { version = "1.14", features = ["hex"], optional = true }
# Networking deps
# ---------------
# These dependencies are used to provide support for networking URLs in
zmq = { package = "zmq", version = "0.10.0", optional = true }
[dev-dependencies]
torut = "0.2.0"
strict_encoding_test = "0.9.0"
strict_encoding_derive = "0.8.0"
compiletest_rs = "0.9.0"
# Features
# ========
[features]
# Listings
# --------
# By default we use LNP with Tor support and URL support
default = ["tor", "zmq", "derive"]
all = ["derive",
# Serde
"serde", "keygen",
# Networking
"tor", "zmq"]
# Exposing core rust componens
# ----------------------------
# These also include re-assembly of necessary features from dependencies
serde = ["serde_crate", "serde_with", "amplify/serde",
"inet2_addr/serde", "secp256k1/serde", "bitcoin_hashes/serde-std"]
derive = ["inet2_derive"]
keygen = ["secp256k1/rand-std", "inet2_addr/keygen"]
# Networking
# ----------
tor = ["inet2_addr/tor"]
[workspace]
members = [".", "derive", "addr"]
default-members = [".", "derive", "addr"]
exclude = ["dep_test"]