-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
51 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "tentacle-multiaddr" | ||
version = "0.3.3" | ||
version = "0.3.4" | ||
authors = ["driftluo <[email protected]>"] | ||
edition = "2021" | ||
license = "MIT" | ||
|
@@ -9,9 +9,9 @@ description = "Mini Implementation of multiaddr" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
unsigned-varint = "0.7" | ||
unsigned-varint = "0.8" | ||
bytes = "1.0" | ||
bs58 = "0.4.0" | ||
bs58 = "0.5.0" | ||
sha2 = "0.10.0" | ||
serde = "1" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "tentacle-secio" | ||
version = "0.6.1" | ||
version = "0.6.2" | ||
license = "MIT" | ||
description = "Secio encryption protocol for p2p" | ||
authors = ["piaoliu <[email protected]>", "Nervos Core Dev <[email protected]>"] | ||
|
@@ -23,28 +23,30 @@ tokio-util = { version = "0.7.0", features = ["codec"] } | |
log = "0.4.1" | ||
async-trait = { version = "0.1", optional = true } | ||
|
||
molecule = "0.7.0" | ||
molecule = "0.8.0" | ||
|
||
unsigned-varint = "0.7" | ||
bs58 = "0.4.0" | ||
secp256k1 = "0.24" | ||
unsigned-varint = "0.8" | ||
bs58 = "0.5.0" | ||
secp256k1 = "0.29" | ||
rand = "0.8" | ||
|
||
[target.'cfg(unix)'.dependencies] | ||
openssl = "0.10.25" | ||
openssl-sys = "0.9" | ||
|
||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies] | ||
rand = "0.8" | ||
ring = "0.16.5" | ||
ring = "0.17" | ||
|
||
[target.'cfg(target_arch = "wasm32")'.dependencies] | ||
# wait x25519-dalek upgrade rand core | ||
rand_core = { version = "0.5" } | ||
rand = { version = "0.7", features = ["wasm-bindgen"] } | ||
rand_core = { version = "0.6" } | ||
getrandom = { version = "0.2", features = ["js"] } | ||
sha2 = "0.10.0" | ||
hmac = "0.12.0" | ||
x25519-dalek = "1.1" | ||
chacha20poly1305 = { version = "0.10", default-features = false, features = ["alloc", "rand_core"]} | ||
x25519-dalek = { version = "2" } | ||
chacha20poly1305 = { version = "0.10", default-features = false, features = [ | ||
"alloc", | ||
"rand_core", | ||
] } | ||
|
||
[features] | ||
openssl-vendored = ["openssl/vendored"] | ||
|
@@ -55,9 +57,9 @@ criterion = "0.3" | |
tokio = { version = "1.0.0", features = ["net", "rt", "rt-multi-thread"] } | ||
sha2 = "0.10.0" | ||
hmac = "0.12.0" | ||
x25519-dalek = "1.1" | ||
x25519-dalek = "2" | ||
chacha20poly1305 = "0.10" | ||
rand_core = { version = "0.5" } | ||
rand_core = { version = "0.6" } | ||
once_cell = "1.8.0" | ||
proptest = "1" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "tentacle" | ||
version = "0.5.0-alpha.1" | ||
version = "0.6.0" | ||
license = "MIT" | ||
description = "Minimal implementation for a multiplexed p2p network framework." | ||
authors = ["piaoliu <[email protected]>", "Nervos Core Dev <[email protected]>"] | ||
|
@@ -11,14 +11,14 @@ categories = ["network-programming", "asynchronous"] | |
edition = "2021" | ||
|
||
[package.metadata.docs.rs] | ||
features = [ "tokio-runtime", "tokio-timer", "upnp", "ws", "unstable", "tls" ] | ||
features = ["tokio-runtime", "tokio-timer", "upnp", "ws", "unstable", "tls"] | ||
all-features = false | ||
no-default-features = true | ||
rustc-args = ["--cfg", "docsrs"] | ||
|
||
[dependencies] | ||
yamux = { path = "../yamux", version = "0.3.0", default-features = false, package = "tokio-yamux"} | ||
secio = { path = "../secio", version = "0.6.0", package = "tentacle-secio" } | ||
yamux = { path = "../yamux", version = "0.3.0", default-features = false, package = "tokio-yamux" } | ||
secio = { path = "../secio", version = "0.6.2", package = "tentacle-secio" } | ||
|
||
futures = { version = "0.3.0" } | ||
tokio = { version = "1.0.0", features = ["macros"] } | ||
|
@@ -31,13 +31,13 @@ once_cell = "1.0" | |
nohash-hasher = "0.2" | ||
|
||
parking_lot = { version = "0.12", optional = true } | ||
tokio-tungstenite = { version = "0.16", optional = true } | ||
tokio-tungstenite = { version = "0.21", optional = true } | ||
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.3.0" } | ||
molecule = "0.7.0" | ||
multiaddr = { path = "../multiaddr", package = "tentacle-multiaddr", version = "0.3.4" } | ||
molecule = "0.8.0" | ||
|
||
# upnp | ||
igd = { version = "0.12", optional = true } | ||
|
@@ -48,7 +48,7 @@ tokio-rustls = { version = "0.24.0", optional = true } | |
[target.'cfg(not(target_arch = "wasm32"))'.dependencies] | ||
# rand 0.8 not support wasm32 | ||
rand = "0.8" | ||
socket2 = { version = "0.4.0", features = ["all"] } | ||
socket2 = { version = "0.5.0", features = ["all"] } | ||
|
||
[target.'cfg(target_arch = "wasm32")'.dependencies] | ||
js-sys = "0.3" | ||
|
@@ -59,7 +59,12 @@ wasm-bindgen-futures = "0.4" | |
libc = "0.2" | ||
|
||
[target.'cfg(windows)'.dependencies] | ||
winapi = { version = "0.3.7", features = ["minwindef", "ws2def", "winerror", "heapapi"]} | ||
winapi = { version = "0.3.7", features = [ | ||
"minwindef", | ||
"ws2def", | ||
"winerror", | ||
"heapapi", | ||
] } | ||
|
||
[dev-dependencies] | ||
env_logger = "0.6.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters