@@ -3,7 +3,7 @@ name = "libp2p"
3
3
edition = " 2021"
4
4
rust-version = " 1.56.1"
5
5
description = " Peer-to-peer networking library"
6
- version = " 0.42 .0"
6
+ version = " 0.43 .0"
7
7
authors = [
" Parity Technologies <[email protected] >" ]
8
8
license = " MIT"
9
9
repository = " https://github.com/libp2p/rust-libp2p"
@@ -12,6 +12,7 @@ categories = ["network-programming", "asynchronous"]
12
12
13
13
[features ]
14
14
default = [
15
+ " autonat" ,
15
16
" deflate" ,
16
17
" dns-async-std" ,
17
18
" floodsub" ,
@@ -34,6 +35,8 @@ default = [
34
35
" websocket" ,
35
36
" yamux" ,
36
37
]
38
+ autonat = [" libp2p-autonat" ]
39
+ dcutr = [" libp2p-dcutr" , " libp2p-metrics/dcutr" ]
37
40
deflate = [" libp2p-deflate" ]
38
41
dns-async-std = [" libp2p-dns" , " libp2p-dns/async-std" ]
39
42
dns-tokio = [" libp2p-dns" , " libp2p-dns/tokio" ]
@@ -48,18 +51,19 @@ noise = ["libp2p-noise"]
48
51
ping = [" libp2p-ping" , " libp2p-metrics/ping" ]
49
52
plaintext = [" libp2p-plaintext" ]
50
53
pnet = [" libp2p-pnet" ]
51
- relay = [" libp2p-relay" ]
54
+ relay = [" libp2p-relay" , " libp2p-metrics/relay " ]
52
55
request-response = [" libp2p-request-response" ]
53
56
rendezvous = [" libp2p-rendezvous" ]
54
57
tcp-async-io = [" libp2p-tcp" , " libp2p-tcp/async-io" ]
55
58
tcp-tokio = [" libp2p-tcp" , " libp2p-tcp/tokio" ]
56
59
uds = [" libp2p-uds" ]
57
- wasm-bindgen = [" futures-timer/wasm-bindgen" , " instant/wasm-bindgen" , " parking_lot/wasm-bindgen " , " getrandom/js" , " rand/wasm-bindgen" ]
60
+ wasm-bindgen = [" futures-timer/wasm-bindgen" , " instant/wasm-bindgen" , " getrandom/js" , " rand/wasm-bindgen" ]
58
61
wasm-ext = [" libp2p-wasm-ext" ]
59
62
wasm-ext-websocket = [" wasm-ext" , " libp2p-wasm-ext/websocket" ]
60
63
websocket = [" libp2p-websocket" ]
61
64
yamux = [" libp2p-yamux" ]
62
65
secp256k1 = [" libp2p-core/secp256k1" ]
66
+ serde = [" libp2p-core/serde" , " libp2p-kad/serde" , " libp2p-gossipsub/serde" ]
63
67
64
68
[package .metadata .docs .rs ]
65
69
all-features = true
@@ -72,44 +76,49 @@ futures-timer = "3.0.2" # Explicit dependency to be used in `wasm-bindgen` featu
72
76
getrandom = " 0.2.3" # Explicit dependency to be used in `wasm-bindgen` feature
73
77
instant = " 0.1.11" # Explicit dependency to be used in `wasm-bindgen` feature
74
78
lazy_static = " 1.2"
75
- libp2p-core = { version = " 0.31.0" , path = " core" , default-features = false }
76
- libp2p-floodsub = { version = " 0.33.0" , path = " protocols/floodsub" , optional = true }
77
- libp2p-gossipsub = { version = " 0.35.0" , path = " ./protocols/gossipsub" , optional = true }
78
- libp2p-identify = { version = " 0.33.0" , path = " protocols/identify" , optional = true }
79
- libp2p-kad = { version = " 0.34.0" , path = " protocols/kad" , optional = true }
80
- libp2p-metrics = { version = " 0.3.0" , path = " misc/metrics" , optional = true }
81
- libp2p-mplex = { version = " 0.31.0" , path = " muxers/mplex" , optional = true }
82
- libp2p-noise = { version = " 0.34.0" , path = " transports/noise" , optional = true }
83
- libp2p-ping = { version = " 0.33.0" , path = " protocols/ping" , optional = true }
84
- libp2p-plaintext = { version = " 0.31.0" , path = " transports/plaintext" , optional = true }
79
+
80
+ libp2p-autonat = { version = " 0.2.0" , path = " protocols/autonat" , optional = true }
81
+ libp2p-core = { version = " 0.32.0" , path = " core" , default-features = false }
82
+ libp2p-dcutr = { version = " 0.1.0" , path = " protocols/dcutr" , optional = true }
83
+ libp2p-floodsub = { version = " 0.34.0" , path = " protocols/floodsub" , optional = true }
84
+ libp2p-identify = { version = " 0.34.0" , path = " protocols/identify" , optional = true }
85
+ libp2p-kad = { version = " 0.35.0" , path = " protocols/kad" , optional = true }
86
+ libp2p-metrics = { version = " 0.4.0" , path = " misc/metrics" , optional = true }
87
+ libp2p-mplex = { version = " 0.32.0" , path = " muxers/mplex" , optional = true }
88
+ libp2p-noise = { version = " 0.35.0" , path = " transports/noise" , optional = true }
89
+ libp2p-ping = { version = " 0.34.0" , path = " protocols/ping" , optional = true }
90
+ libp2p-plaintext = { version = " 0.32.0" , path = " transports/plaintext" , optional = true }
85
91
libp2p-pnet = { version = " 0.22.0" , path = " transports/pnet" , optional = true }
86
- libp2p-relay = { version = " 0.6 .0" , path = " protocols/relay" , optional = true }
87
- libp2p-rendezvous = { version = " 0.3 .0" , path = " protocols/rendezvous" , optional = true }
88
- libp2p-request-response = { version = " 0.15 .0" , path = " protocols/request-response" , optional = true }
89
- libp2p-swarm = { version = " 0.33 .0" , path = " swarm" }
90
- libp2p-swarm-derive = { version = " 0.26.1 " , path = " swarm-derive" }
91
- libp2p-uds = { version = " 0.31 .0" , path = " transports/uds" , optional = true }
92
- libp2p-wasm-ext = { version = " 0.31 .0" , path = " transports/wasm-ext" , default-features = false , optional = true }
93
- libp2p-yamux = { version = " 0.35 .0" , path = " muxers/yamux" , optional = true }
94
- multiaddr = { version = " 0.13 .0" }
95
- parking_lot = " 0.11 .0"
92
+ libp2p-relay = { version = " 0.7 .0" , path = " protocols/relay" , optional = true }
93
+ libp2p-rendezvous = { version = " 0.4 .0" , path = " protocols/rendezvous" , optional = true }
94
+ libp2p-request-response = { version = " 0.16 .0" , path = " protocols/request-response" , optional = true }
95
+ libp2p-swarm = { version = " 0.34 .0" , path = " swarm" }
96
+ libp2p-swarm-derive = { version = " 0.27.0 " , path = " swarm-derive" }
97
+ libp2p-uds = { version = " 0.32 .0" , path = " transports/uds" , optional = true }
98
+ libp2p-wasm-ext = { version = " 0.32 .0" , path = " transports/wasm-ext" , default-features = false , optional = true }
99
+ libp2p-yamux = { version = " 0.36 .0" , path = " muxers/yamux" , optional = true }
100
+ multiaddr = { version = " 0.14 .0" }
101
+ parking_lot = " 0.12 .0"
96
102
pin-project = " 1.0.0"
97
103
rand = " 0.7.3" # Explicit dependency to be used in `wasm-bindgen` feature
98
104
smallvec = " 1.6.1"
99
105
100
106
[target .'cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))' .dependencies ]
101
- libp2p-deflate = { version = " 0.31.0" , path = " transports/deflate" , optional = true }
102
- libp2p-dns = { version = " 0.31.0" , path = " transports/dns" , optional = true , default-features = false }
103
- libp2p-mdns = { version = " 0.34.0" , path = " protocols/mdns" , optional = true }
104
- libp2p-tcp = { version = " 0.31.0" , path = " transports/tcp" , default-features = false , optional = true }
105
- libp2p-websocket = { version = " 0.33.0" , path = " transports/websocket" , optional = true }
107
+ libp2p-deflate = { version = " 0.32.0" , path = " transports/deflate" , optional = true }
108
+ libp2p-dns = { version = " 0.32.0" , path = " transports/dns" , optional = true , default-features = false }
109
+ libp2p-mdns = { version = " 0.35.0" , path = " protocols/mdns" , optional = true }
110
+ libp2p-tcp = { version = " 0.32.0" , path = " transports/tcp" , default-features = false , optional = true }
111
+ libp2p-websocket = { version = " 0.34.0" , path = " transports/websocket" , optional = true }
112
+
113
+ [target .'cfg(not(target_os = "unknown"))' .dependencies ]
114
+ libp2p-gossipsub = { version = " 0.36.0" , path = " protocols/gossipsub" , optional = true }
106
115
107
116
[dev-dependencies ]
108
117
async-std = { version = " 1.6.2" , features = [" attributes" ] }
109
118
async-trait = " 0.1"
110
119
env_logger = " 0.9.0"
111
120
structopt = " 0.3.21"
112
- tokio = { version = " 1.0.1 " , features = [" io-util" , " io-std" , " macros" , " rt" , " rt-multi-thread" ] }
121
+ tokio = { version = " 1.15 " , features = [" io-util" , " io-std" , " macros" , " rt" , " rt-multi-thread" ] }
113
122
114
123
[workspace ]
115
124
members = [
@@ -119,6 +128,8 @@ members = [
119
128
" misc/peer-id-generator" ,
120
129
" muxers/mplex" ,
121
130
" muxers/yamux" ,
131
+ " protocols/dcutr" ,
132
+ " protocols/autonat" ,
122
133
" protocols/floodsub" ,
123
134
" protocols/gossipsub" ,
124
135
" protocols/rendezvous" ,
0 commit comments