-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
134 lines (127 loc) · 4.72 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
[package]
name = "tetsy-libp2p"
version = "0.36.0"
authors = ["Parity Technologies <admin@parity.io>", "Tetcoin Developers <support@tetcoin.org>"]
description = "Tetsy peer-to-peer networking library"
license = "MIT"
edition = "2018"
keywords = ["tetcoin", "tetcore", "tetsy-libp2p", "crypto", "networking"]
categories = ["cryptography::cryptocurrencies", "network-programming", "asynchronous"]
homepage = "https://core.tetcoin.org"
repository = "https://github.com/tetcoin/tetsy-libp2p"
documentation = "https://docs.rs/tetsy-libp2p"
[features]
default = [
"deflate",
"dns",
"floodsub",
"identify",
"kad",
"gossipsub",
"mdns",
"mplex",
"noise",
"ping",
"plain",
"pnet",
"relay",
"req-res",
"secp256k1",
"tcp-async-io",
"uds",
"wasm-x",
"websocket",
"remux",
]
deflate = ["tetsy-libp2p-deflate"]
dns = ["tetsy-libp2p-dns"]
floodsub = ["tetsy-libp2p-floodsub"]
identify = ["tetsy-libp2p-identify"]
kad = ["tetsy-libp2p-kad"]
gossipsub = ["tetsy-libp2p-gossipsub"]
mdns = ["tetsy-libp2p-mdns"]
mplex = ["tetsy-libp2p-mplex"]
noise = ["tetsy-libp2p-noise"]
ping = ["tetsy-libp2p-ping"]
plain = ["plaintext"]
pnet = ["tetsy-libp2p-pnet"]
relay = ["tetsy-libp2p-relay"]
req-res = ["request-response"]
tcp-async-io = ["tetsy-libp2p-tcp", "tetsy-libp2p-tcp/async-io"]
tcp-tokio = ["tetsy-libp2p-tcp", "tetsy-libp2p-tcp/tokio"]
uds = ["tetsy-libp2p-uds"]
wasm-x = ["wasm-ext"]
wasm-ext-websocket = ["wasm-x", "wasm-ext/websocket"]
websocket = ["tetsy-libp2p-websocket"]
remux = ["libp2p-remux"]
secp256k1 = ["tetsy-libp2p-core/secp256k1"]
[package.metadata.docs.rs]
all-features = true
[dependencies]
atomic = "0.5.0"
bytes = "1"
futures = "0.3.1"
lazy_static = "1.2"
tetsy-libp2p-core = { version = "0.27.2", path = "core", default-features = false }
tetsy-libp2p-floodsub = { version = "0.28.0", path = "protocols/floodsub", optional = true }
tetsy-libp2p-gossipsub = { version = "0.29.0", path = "./protocols/gossipsub", optional = true }
tetsy-libp2p-identify = { version = "0.28.0", path = "protocols/identify", optional = true }
tetsy-libp2p-kad = { version = "0.29.0", path = "protocols/kad", optional = true }
tetsy-libp2p-mplex = { version = "0.27.1", path = "muxers/mplex", optional = true }
tetsy-libp2p-noise = { version = "0.29.0", path = "transports/noise", optional = true }
tetsy-libp2p-ping = { version = "0.28.0", path = "protocols/ping", optional = true }
plaintext = { version = "0.27.1", path = "transports/plaintext", optional = true }
tetsy-libp2p-pnet = { version = "0.20.0", path = "transports/pnet", optional = true }
tetsy-libp2p-relay = { version = "0.1.0", path = "protocols/relay", optional = true }
request-response = { version = "0.10.0", path = "protocols/request-response", optional = true }
tetsy-libp2p-swarm = { version = "0.28.0", path = "swarm" }
swarm-derive = { version = "0.22.0", path = "swarm-derive" }
tetsy-libp2p-uds = { version = "0.27.0", path = "transports/uds", optional = true }
wasm-ext = { version = "0.27.0", path = "transports/wasm-ext", default-features = false, optional = true }
libp2p-remux = { version = "0.30.1", path = "muxers/remux", optional = true }
multiaddr = { package = "tetsy-multiaddr", version = "0.11.1", path = "misc/multiaddr" }
parking_lot = "0.11.0"
pin-project = "1.0.0"
smallvec = "1.0"
wasm-timer = "0.2.4"
[target.'cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))'.dependencies]
tetsy-libp2p-deflate = { version = "0.27.1", path = "transports/deflate", optional = true }
tetsy-libp2p-dns = { version = "0.27.0", path = "transports/dns", optional = true }
tetsy-libp2p-mdns = { version = "0.29.0", path = "protocols/mdns", optional = true }
tetsy-libp2p-tcp = { version = "0.27.1", path = "transports/tcp", default-features = false, optional = true }
tetsy-libp2p-websocket = { version = "0.28.0", path = "transports/websocket", optional = true }
[dev-dependencies]
async-std = { version = "1.6.2", features = ["attributes"] }
env_logger = "0.8.1"
tokio = { version = "1.0.1", features = ["io-util", "io-std", "macros", "rt", "rt-multi-thread"] }
[workspace]
members = [
"core",
"misc/multiaddr",
"misc/multistream-select",
"misc/peer-id-generator",
"muxers/mplex",
"muxers/remux",
"protocols/floodsub",
"protocols/gossipsub",
"protocols/identify",
"protocols/kad",
"protocols/mdns",
"protocols/ping",
"protocols/relay",
"protocols/request-response",
"swarm",
"swarm-derive",
"transports/deflate",
"transports/dns",
"transports/noise",
"transports/plaintext",
"transports/pnet",
"transports/tcp",
"transports/uds",
"transports/websocket",
"transports/wasm-ext"
]
[[example]]
name = "chat-tokio"
required-features = ["tcp-tokio", "mdns"]