Skip to content

Commit 5476d50

Browse files
authored
Merge pull request #178 from nervosnetwork/bump-to-0.2.4
chore: bump to 0.2.4
2 parents 747125d + c5f3dee commit 5476d50

File tree

8 files changed

+37
-16
lines changed

8 files changed

+37
-16
lines changed

CHANGELOG.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
1-
## 0.2.3
1+
## 0.2.4
2+
3+
### Features
4+
5+
- Remove `fnv` dependence
6+
- Support handshake on molecule with features
7+
- Handle panic shutdown mechanism
8+
- Discovery only publish public ip and "0.0.0.0"
9+
10+
### Bug fix
11+
12+
- Fix error output on listen error
13+
- Fix discovery ipaddr conditions
14+
- Fix yamux possible security issues on malicious attack
15+
16+
## 0.2.3
217

318
### Features
419

Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tentacle"
3-
version = "0.2.3"
3+
version = "0.2.4"
44
license = "MIT"
55
description = "Minimal implementation for a multiplexed p2p network framework."
66
authors = ["piaoliu <441594700@qq.com>", "Nervos Core Dev <dev@nervos.org>"]
@@ -11,9 +11,12 @@ keywords = ["network", "peer-to-peer"]
1111
categories = ["network-programming", "asynchronous"]
1212
edition = "2018"
1313

14+
[package.metadata.docs.rs]
15+
all-features = true
16+
1417
[dependencies]
15-
yamux = { path = "yamux", version = "0.1.12", package = "tokio-yamux" }
16-
secio = { path = "secio", version = "0.1.7", package = "tentacle-secio" }
18+
yamux = { path = "yamux", version = "0.1.13", package = "tokio-yamux" }
19+
secio = { path = "secio", version = "0.1.10", package = "tentacle-secio" }
1720

1821
futures = "0.1"
1922
tokio = "0.1"

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# P2P
22

33
[![Build Status](https://api.travis-ci.org/driftluo/p2p.svg?branch=master)](https://travis-ci.org/driftluo/p2p)
4-
![image](https://img.shields.io/badge/rustc-1.33-blue.svg)
4+
![image](https://img.shields.io/badge/rustc-1.36-blue.svg)
55

66
## Overview
77

@@ -38,7 +38,7 @@ The API of this project is basically usable. However we still need more tests. P
3838

3939
```toml
4040
[dependencies]
41-
tentacle = "0.2"
41+
tentacle = { version = "0.2", feaures = ["molc"] }
4242
```
4343

4444
### Example
@@ -53,13 +53,13 @@ $ git clone https://github.com/nervosnetwork/p2p.git
5353

5454
Listen on 127.0.0.1:1337
5555
```bash
56-
$ RUST_LOG=simple=info,tentacle=debug cargo run --example simple -- server
56+
$ RUST_LOG=simple=info,tentacle=debug cargo run --example simple --feaures molc -- server
5757
```
5858

5959
3. On another terminal:
6060

6161
```bash
62-
$ RUST_LOG=simple=info,tentacle=debug cargo run --example simple
62+
$ RUST_LOG=simple=info,tentacle=debug cargo run --example simple --feaures molc
6363
```
6464

6565
4. Now you can see some data interaction information on the terminal.

protocols/discovery/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tentacle-discovery"
3-
version = "0.2.5"
3+
version = "0.2.6"
44
authors = ["Linfeng Qian <thewawar@gmail.com>"]
55
license = "MIT"
66
description = "p2p discovery protocol main reference bitcoin"
@@ -10,7 +10,7 @@ categories = ["network-programming", "asynchronous"]
1010
edition = "2018"
1111

1212
[dependencies]
13-
p2p = { path = "../..", version = "0.2.0", package = "tentacle" }
13+
p2p = { path = "../..", version = "0.2.4", package = "tentacle" }
1414
bytes = "0.4"
1515
byteorder = "1.2"
1616
futures = "0.1"

protocols/identify/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tentacle-identify"
3-
version = "0.2.6"
3+
version = "0.2.7"
44
authors = ["Qian Linfeng <thewawar@gmail.com>"]
55
license = "MIT"
66
description = "p2p identify protocol"
@@ -10,7 +10,7 @@ categories = ["network-programming", "asynchronous"]
1010
edition = "2018"
1111

1212
[dependencies]
13-
p2p = { path = "../..", version = "0.2.0", package = "tentacle" }
13+
p2p = { path = "../..", version = "0.2.4", package = "tentacle" }
1414
bytes = "0.4"
1515
flatbuffers = { version = "0.6.0", optional = true }
1616
flatbuffers-verifier = { version = "0.2.0", optional = true }

protocols/ping/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tentacle-ping"
3-
version = "0.3.5"
3+
version = "0.3.6"
44
authors = ["Nervos Core Dev <dev@nervos.org>"]
55
license = "MIT"
66
keywords = ["network", "peer-to-peer", "p2p", "ping"]
@@ -10,7 +10,7 @@ description = "ping protocol implementation for tentacle"
1010
edition = "2018"
1111

1212
[dependencies]
13-
p2p = { path = "../..", version = "0.2.0", package = "tentacle" }
13+
p2p = { path = "../..", version = "0.2.4", package = "tentacle" }
1414
log = "0.4"
1515
flatbuffers = { version = "0.6.0", optional = true }
1616
flatbuffers-verifier = { version = "0.2.0", optional = true }

secio/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tentacle-secio"
3-
version = "0.1.9"
3+
version = "0.1.10"
44
license = "MIT"
55
description = "Secio encryption protocol for p2p"
66
authors = ["piaoliu <441594700@qq.com>", "Nervos Core Dev <dev@nervos.org>"]
@@ -9,6 +9,9 @@ keywords = ["network", "peer-to-peer"]
99
categories = ["network-programming", "asynchronous"]
1010
edition = "2018"
1111

12+
[package.metadata.docs.rs]
13+
all-features = true
14+
1215
[dependencies]
1316
bytes = "0.4"
1417
futures = "0.1"

yamux/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tokio-yamux"
3-
version = "0.1.12"
3+
version = "0.1.13"
44
license = "MIT"
55
repository = "https://github.com/nervosnetwork/p2p"
66
description = "Rust implementation of Yamux"

0 commit comments

Comments
 (0)