Skip to content

Commit 96ed53b

Browse files
authored
Merge pull request #320 from nervosnetwork/bump-to-0.4.0-alpha1
chore: bump to 0.4.0-alpha1
2 parents 33896ca + 92e7e91 commit 96ed53b

File tree

9 files changed

+47
-14
lines changed

9 files changed

+47
-14
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 0.4.0-alpha.1
2+
3+
### Features
4+
- Upgrade tokio to 1.x(#293)
5+
- Upgrade toolchain to 1.51.0(#315)
6+
- Change `Multi(Vec<Id>)` to `Filter(Box<Fn(ID) -> bool)`(#312)
7+
- Introduce `parking_lot` to tentacle priority channel(#316)
8+
- Support `/Memory/port` to test(#318)
9+
- Use no hash map to usize key map(#325)
10+
111
## 0.3.8
212

313
### Bug Fix

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ fuzz:
2424
cargo +nightly fuzz run yamux_frame_codec -- -max_total_time=60
2525

2626
build:
27-
$(Change_Work_Path) && RUSTFLAGS='-F warnings' cargo build --all --features ws
28-
$(Change_Work_Path) && RUSTFLAGS='-F warnings' cargo build --all --features ws,unstable
27+
$(Change_Work_Path) && RUSTFLAGS='-W warnings' cargo build --all --features ws
28+
$(Change_Work_Path) && RUSTFLAGS='-W warnings' cargo build --all --features ws,unstable
2929

3030
examples:
3131
$(Change_Work_Path) && cargo build --examples --all --features unstable

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Tentacle
22

33
[![Build Status](https://travis-ci.com/nervosnetwork/tentacle.svg?branch=master)](https://travis-ci.com/nervosnetwork/tentacle)
4-
![image](https://img.shields.io/badge/rustc-1.46-blue.svg)
4+
![image](https://img.shields.io/badge/rustc-1.51-blue.svg)
55

66
## Overview
77

multiaddr/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tentacle-multiaddr"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
authors = ["driftluo <driftluo@foxmail.com>"]
55
edition = "2018"
66

secio/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tentacle-secio"
3-
version = "0.4.5"
3+
version = "0.5.0"
44
license = "MIT"
55
description = "Secio encryption protocol for p2p"
66
authors = ["piaoliu <driftluo@foxmail.com>", "Nervos Core Dev <dev@nervos.org>"]

tentacle/Cargo.toml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tentacle"
3-
version = "0.3.8"
3+
version = "0.4.0-alpha.1"
44
license = "MIT"
55
description = "Minimal implementation for a multiplexed p2p network framework."
66
authors = ["piaoliu <driftluo@foxmail.com>", "Nervos Core Dev <dev@nervos.org>"]
@@ -16,8 +16,8 @@ all-features = false
1616
no-default-features = true
1717

1818
[dependencies]
19-
yamux = { path = "../yamux", version = "0.2.12", default-features = false, package = "tokio-yamux"}
20-
secio = { path = "../secio", version = "0.4.5", package = "tentacle-secio" }
19+
yamux = { path = "../yamux", version = "0.3.0", default-features = false, package = "tokio-yamux"}
20+
secio = { path = "../secio", version = "0.5.0", package = "tentacle-secio" }
2121

2222
futures = { version = "0.3.0" }
2323
tokio = { version = "1.0.0" }
@@ -26,7 +26,6 @@ log = "0.4"
2626
bytes = "1.0.0"
2727
thiserror = "1.0"
2828
once_cell = "1.0"
29-
rand = "0.7"
3029
nohash-hasher = "0.2"
3130

3231
parking_lot = { version = "0.11", optional = true }
@@ -35,12 +34,16 @@ futures-timer = { version = "3.0.2", optional = true }
3534
async-std = { version = "1", features = ["unstable"], optional = true }
3635
async-io = { version = "1", optional = true }
3736

38-
multiaddr = { path = "../multiaddr", package = "tentacle-multiaddr", version = "0.2.0" }
37+
multiaddr = { path = "../multiaddr", package = "tentacle-multiaddr", version = "0.3.0" }
3938
molecule = "0.7.0"
4039

4140
# upnp
4241
igd = { version = "0.11", optional = true }
4342

43+
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
44+
# rand 0.8 not support wasm32
45+
rand = "0.7"
46+
4447
[target.'cfg(target_arch = "wasm32")'.dependencies]
4548
js-sys = "0.3"
4649
wasm-bindgen = "0.2"
@@ -64,7 +67,7 @@ futures-test = "0.3.5"
6467
nix = "0.13.0"
6568

6669
[features]
67-
default = ["tokio-runtime", "tokio-timer", "upnp"]
70+
default = ["tokio-runtime", "tokio-timer"]
6871
ws = ["tokio-tungstenite"]
6972
upnp = ["igd"]
7073
unstable = []

tentacle/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Tentacle
22

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

66
## Overview
77

tentacle/src/lib.rs

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,25 @@
6969
//! 6. Run [`Service`] just like other stream, maybe keep a [`Control`] on some place which want to
7070
//! communicate with background [`Service`]
7171
//!
72+
//! ### Feature flags
73+
//! Tentacle uses the Feature flag to enable some optional functions and split the smallest dependencies
74+
//! for use as much as possible. Users can choose the dependencies they want according to their needs.
75+
//!
76+
//! Related to runtime :
77+
//! - `tokio-runtime`: Enable by default, use tokio runtime
78+
//! - `tokio-timer`: Enable by default, use tokio inner timer
79+
//!
80+
//! - `async-timer`: use async-io timer
81+
//! - `async-runtime`: use async-std runtime
82+
//!
83+
//! - `generic-timer`: use futures-timer
84+
//! - `wasm-timer`: only use on Browser WebAssembly platform
85+
//!
86+
//! Function related:
87+
//! - `ws`: Enable websocket protocol support
88+
//! - `upnp`: Enable upnp protocol, automatically try to register the port to the gateway
89+
//! - `unstable`: Enable the feature that has not yet decided to stabilize the API
90+
//! - `parking_lot`: Enable priority channel use `parking_lot`
7291
//!
7392
//! [`MetaBuilder`]: crate::builder::MetaBuilder
7493
//! [`ServiceBuilder`]: crate::builder::ServiceBuilder
@@ -123,7 +142,8 @@ pub(crate) mod transports;
123142
pub mod utils;
124143

125144
mod channel;
126-
#[doc(hidden)]
145+
#[cfg_attr(not(feature = "unstable"), doc(hidden))]
146+
#[allow(missing_docs)]
127147
pub mod runtime;
128148

129149
#[cfg(all(not(target_arch = "wasm32"), feature = "upnp"))]

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.2.12"
3+
version = "0.3.0"
44
license = "MIT"
55
repository = "https://github.com/nervosnetwork/tentacle"
66
description = "Rust implementation of Yamux"

0 commit comments

Comments
 (0)