Skip to content

Commit

Permalink
Merge pull request #320 from nervosnetwork/bump-to-0.4.0-alpha1
Browse files Browse the repository at this point in the history
chore: bump to 0.4.0-alpha1
  • Loading branch information
driftluo authored May 6, 2021
2 parents 33896ca + 92e7e91 commit 96ed53b
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 14 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## 0.4.0-alpha.1

### Features
- Upgrade tokio to 1.x(#293)
- Upgrade toolchain to 1.51.0(#315)
- Change `Multi(Vec<Id>)` to `Filter(Box<Fn(ID) -> bool)`(#312)
- Introduce `parking_lot` to tentacle priority channel(#316)
- Support `/Memory/port` to test(#318)
- Use no hash map to usize key map(#325)

## 0.3.8

### Bug Fix
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ fuzz:
cargo +nightly fuzz run yamux_frame_codec -- -max_total_time=60

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

examples:
$(Change_Work_Path) && cargo build --examples --all --features unstable
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Tentacle

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

## Overview

Expand Down
2 changes: 1 addition & 1 deletion multiaddr/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tentacle-multiaddr"
version = "0.2.0"
version = "0.3.0"
authors = ["driftluo <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion secio/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tentacle-secio"
version = "0.4.5"
version = "0.5.0"
license = "MIT"
description = "Secio encryption protocol for p2p"
authors = ["piaoliu <[email protected]>", "Nervos Core Dev <[email protected]>"]
Expand Down
15 changes: 9 additions & 6 deletions tentacle/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tentacle"
version = "0.3.8"
version = "0.4.0-alpha.1"
license = "MIT"
description = "Minimal implementation for a multiplexed p2p network framework."
authors = ["piaoliu <[email protected]>", "Nervos Core Dev <[email protected]>"]
Expand All @@ -16,8 +16,8 @@ all-features = false
no-default-features = true

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

futures = { version = "0.3.0" }
tokio = { version = "1.0.0" }
Expand All @@ -26,7 +26,6 @@ log = "0.4"
bytes = "1.0.0"
thiserror = "1.0"
once_cell = "1.0"
rand = "0.7"
nohash-hasher = "0.2"

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

multiaddr = { path = "../multiaddr", package = "tentacle-multiaddr", version = "0.2.0" }
multiaddr = { path = "../multiaddr", package = "tentacle-multiaddr", version = "0.3.0" }
molecule = "0.7.0"

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

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
# rand 0.8 not support wasm32
rand = "0.7"

[target.'cfg(target_arch = "wasm32")'.dependencies]
js-sys = "0.3"
wasm-bindgen = "0.2"
Expand All @@ -64,7 +67,7 @@ futures-test = "0.3.5"
nix = "0.13.0"

[features]
default = ["tokio-runtime", "tokio-timer", "upnp"]
default = ["tokio-runtime", "tokio-timer"]
ws = ["tokio-tungstenite"]
upnp = ["igd"]
unstable = []
Expand Down
2 changes: 1 addition & 1 deletion tentacle/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Tentacle

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

## Overview

Expand Down
22 changes: 21 additions & 1 deletion tentacle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,25 @@
//! 6. Run [`Service`] just like other stream, maybe keep a [`Control`] on some place which want to
//! communicate with background [`Service`]
//!
//! ### Feature flags
//! Tentacle uses the Feature flag to enable some optional functions and split the smallest dependencies
//! for use as much as possible. Users can choose the dependencies they want according to their needs.
//!
//! Related to runtime :
//! - `tokio-runtime`: Enable by default, use tokio runtime
//! - `tokio-timer`: Enable by default, use tokio inner timer
//!
//! - `async-timer`: use async-io timer
//! - `async-runtime`: use async-std runtime
//!
//! - `generic-timer`: use futures-timer
//! - `wasm-timer`: only use on Browser WebAssembly platform
//!
//! Function related:
//! - `ws`: Enable websocket protocol support
//! - `upnp`: Enable upnp protocol, automatically try to register the port to the gateway
//! - `unstable`: Enable the feature that has not yet decided to stabilize the API
//! - `parking_lot`: Enable priority channel use `parking_lot`
//!
//! [`MetaBuilder`]: crate::builder::MetaBuilder
//! [`ServiceBuilder`]: crate::builder::ServiceBuilder
Expand Down Expand Up @@ -123,7 +142,8 @@ pub(crate) mod transports;
pub mod utils;

mod channel;
#[doc(hidden)]
#[cfg_attr(not(feature = "unstable"), doc(hidden))]
#[allow(missing_docs)]
pub mod runtime;

#[cfg(all(not(target_arch = "wasm32"), feature = "upnp"))]
Expand Down
2 changes: 1 addition & 1 deletion yamux/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tokio-yamux"
version = "0.2.12"
version = "0.3.0"
license = "MIT"
repository = "https://github.com/nervosnetwork/tentacle"
description = "Rust implementation of Yamux"
Expand Down

0 comments on commit 96ed53b

Please sign in to comment.