-
Notifications
You must be signed in to change notification settings - Fork 984
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick commits from master to stable-futures (#1296)
* Implement Debug for (ed25519|secp256k1)::(Keypair|SecretKey) (#1285) * Fix possible arithmetic overflow in libp2p-kad. (#1291) When the number of active queries exceeds the (internal) JOBS_MAX_QUERIES limit, which is only supposed to bound the number of concurrent queries relating to background jobs, an arithmetic overflow occurs. This is fixed by using saturating subtraction. * protocols/plaintext: Add example on how to upgrade with PlainTextConfig1 (#1286) * [mdns] - Support for long mDNS names (Bug #1232) (#1287) * Dead code -- commenting out with a note referencing future implementation * Adding "std" feature so that cargo can build in other directories (notably `misc/mdns`, so that I could run these tests) * Permitting `PeerID` to be built from an `Identity` multihash * The length limit for DNS labels is 63 characters, as per RFC1035 * Allocates the vector with capacity for the service name plus additional QNAME encoding bytes * Added support for encoding/decoding peer IDs with an encoded length greater than 63 characters * Removing "std" from ring features Co-Authored-By: Pierre Krieger <[email protected]> * Retaining MAX_INLINE_KEY_LENGTH with comment about future usage * `segment_peer_id` consumes `peer_id` ... plus an early return for IDs that don't need to be segmented * Fixing logic * Bump most dependencies (#1268) * Bump most dependencies This actually builds 😊. * Bump all dependencies Includes the excellent work of @rschulman in #1265. * Remove use of ed25519-dalek fork * Monomorphize more dependencies * Add compatibility hack for rand Cargo allows a crate to depend on multiple versions of another, but `cargo-web` panics in that situation. Use a wrapper crate to work around the panic. * Use @tomaka’s idea for using a newer `rand` instead of my own ugly hack. * Switch to Parity master as its dependency-bumping PR has been merged. * Update some depenendencies again * Remove unwraps and `#[allow(deprecated)]`. * Remove spurious changes to dependencies Bumping minor or patch versions is not needed, and increases likelyhood of merge conflicts. * Remove some redundant Cargo.toml changes * Replace a retry loop with an expect `ed25519::SecretKey::from_bytes` will never fail for 32-byte inputs. * Revert changes that don’t belong in this PR * Remove using void to bypass ICE (#1295) * Publish 0.13.0 (#1294)
- Loading branch information
Showing
36 changed files
with
322 additions
and
170 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
name = "libp2p" | ||
edition = "2018" | ||
description = "Peer-to-peer networking library" | ||
version = "0.12.0" | ||
version = "0.13.0" | ||
authors = ["Parity Technologies <[email protected]>"] | ||
license = "MIT" | ||
repository = "https://github.com/libp2p/rust-libp2p" | ||
|
@@ -16,39 +16,39 @@ secp256k1 = ["libp2p-core/secp256k1", "libp2p-secio/secp256k1"] | |
[dependencies] | ||
bytes = "0.4" | ||
futures = "0.1" | ||
multiaddr = { package = "parity-multiaddr", version = "0.5.0", path = "misc/multiaddr" } | ||
multihash = { package = "parity-multihash", version = "0.1.0", path = "misc/multihash" } | ||
multiaddr = { package = "parity-multiaddr", version = "0.5.1", path = "misc/multiaddr" } | ||
multihash = { package = "parity-multihash", version = "0.1.4", path = "misc/multihash" } | ||
lazy_static = "1.2" | ||
libp2p-mplex = { version = "0.12.0", path = "muxers/mplex" } | ||
libp2p-identify = { version = "0.12.0", path = "protocols/identify" } | ||
libp2p-kad = { version = "0.12.0", path = "protocols/kad" } | ||
libp2p-floodsub = { version = "0.12.0", path = "protocols/floodsub" } | ||
libp2p-ping = { version = "0.12.0", path = "protocols/ping" } | ||
libp2p-plaintext = { version = "0.12.0", path = "protocols/plaintext" } | ||
libp2p-core = { version = "0.12.0", path = "core" } | ||
libp2p-core-derive = { version = "0.12.0", path = "misc/core-derive" } | ||
libp2p-secio = { version = "0.12.0", path = "protocols/secio", default-features = false } | ||
libp2p-swarm = { version = "0.2.0", path = "swarm" } | ||
libp2p-uds = { version = "0.12.0", path = "transports/uds" } | ||
libp2p-wasm-ext = { version = "0.5.0", path = "transports/wasm-ext" } | ||
libp2p-yamux = { version = "0.12.0", path = "muxers/yamux" } | ||
parking_lot = "0.8" | ||
libp2p-mplex = { version = "0.13.0", path = "muxers/mplex" } | ||
libp2p-identify = { version = "0.13.0", path = "protocols/identify" } | ||
libp2p-kad = { version = "0.13.0", path = "protocols/kad" } | ||
libp2p-floodsub = { version = "0.13.0", path = "protocols/floodsub" } | ||
libp2p-ping = { version = "0.13.0", path = "protocols/ping" } | ||
libp2p-plaintext = { version = "0.13.0", path = "protocols/plaintext" } | ||
libp2p-core = { version = "0.13.0", path = "core" } | ||
libp2p-core-derive = { version = "0.13.0", path = "misc/core-derive" } | ||
libp2p-secio = { version = "0.13.0", path = "protocols/secio", default-features = false } | ||
libp2p-swarm = { version = "0.3.0", path = "swarm" } | ||
libp2p-uds = { version = "0.13.0", path = "transports/uds" } | ||
libp2p-wasm-ext = { version = "0.6.0", path = "transports/wasm-ext" } | ||
libp2p-yamux = { version = "0.13.0", path = "muxers/yamux" } | ||
parking_lot = "0.9.0" | ||
smallvec = "0.6" | ||
tokio-codec = "0.1" | ||
tokio-executor = "0.1" | ||
tokio-io = "0.1" | ||
wasm-timer = "0.1" | ||
|
||
[target.'cfg(not(any(target_os = "emscripten", target_os = "unknown")))'.dependencies] | ||
libp2p-deflate = { version = "0.4.0", path = "protocols/deflate" } | ||
libp2p-dns = { version = "0.12.0", path = "transports/dns" } | ||
libp2p-mdns = { version = "0.12.0", path = "misc/mdns" } | ||
libp2p-noise = { version = "0.10.0", path = "protocols/noise" } | ||
libp2p-tcp = { version = "0.12.0", path = "transports/tcp" } | ||
libp2p-websocket = { version = "0.12.0", path = "transports/websocket", optional = true } | ||
libp2p-deflate = { version = "0.5.0", path = "protocols/deflate" } | ||
libp2p-dns = { version = "0.13.0", path = "transports/dns" } | ||
libp2p-mdns = { version = "0.13.0", path = "misc/mdns" } | ||
libp2p-noise = { version = "0.11.0", path = "protocols/noise" } | ||
libp2p-tcp = { version = "0.13.0", path = "transports/tcp" } | ||
libp2p-websocket = { version = "0.13.0", path = "transports/websocket", optional = true } | ||
|
||
[dev-dependencies] | ||
env_logger = "0.6.0" | ||
env_logger = "0.7.1" | ||
tokio = "0.1" | ||
tokio-stdin-stdout = "0.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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
name = "libp2p-core" | ||
edition = "2018" | ||
description = "Core traits and structs of libp2p" | ||
version = "0.12.0" | ||
version = "0.13.0" | ||
authors = ["Parity Technologies <[email protected]>"] | ||
license = "MIT" | ||
repository = "https://github.com/libp2p/rust-libp2p" | ||
|
@@ -11,22 +11,22 @@ categories = ["network-programming", "asynchronous"] | |
|
||
[dependencies] | ||
asn1_der = "0.6.1" | ||
bs58 = "0.2.0" | ||
bs58 = "0.3.0" | ||
bytes = "0.4" | ||
ed25519-dalek = "1.0.0-pre.1" | ||
ed25519-dalek = "1.0.0-pre.2" | ||
failure = "0.1" | ||
fnv = "1.0" | ||
futures-timer = "0.3" | ||
lazy_static = "1.2" | ||
log = "0.4" | ||
multiaddr = { package = "parity-multiaddr", version = "0.5.0", path = "../misc/multiaddr" } | ||
multihash = { package = "parity-multihash", version = "0.1.0", path = "../misc/multihash" } | ||
multistream-select = { version = "0.5.0", path = "../misc/multistream-select" } | ||
multihash = { package = "parity-multihash", version = "0.1.4", path = "../misc/multihash" } | ||
multistream-select = { version = "0.6.0", path = "../misc/multistream-select" } | ||
futures-preview = { version = "0.3.0-alpha.18", features = ["compat", "io-compat"] } | ||
parking_lot = "0.8" | ||
parking_lot = "0.9.0" | ||
protobuf = "2.8" | ||
quick-error = "1.2" | ||
rand = "0.6" | ||
rand = "0.7" | ||
rw-stream-sink = { version = "0.1.1", path = "../misc/rw-stream-sink" } | ||
libsecp256k1 = { version = "0.3.1", optional = true } | ||
sha2 = "0.8.0" | ||
|
@@ -37,17 +37,17 @@ void = "1" | |
zeroize = "1" | ||
|
||
[target.'cfg(not(any(target_os = "emscripten", target_os = "unknown")))'.dependencies] | ||
ring = { version = "^0.16", features = ["alloc", "std"], default-features = false } | ||
untrusted = { version = "0.6" } | ||
ring = { version = "0.16.9", features = ["alloc", "std"], default-features = false } | ||
untrusted = "0.7.0" | ||
|
||
[dev-dependencies] | ||
async-std = "0.99" | ||
libp2p-swarm = { version = "0.2.0", path = "../swarm" } | ||
libp2p-tcp = { version = "0.12.0", path = "../transports/tcp" } | ||
libp2p-mplex = { version = "0.12.0", path = "../muxers/mplex" } | ||
libp2p-secio = { version = "0.12.0", path = "../protocols/secio" } | ||
rand = "0.6" | ||
quickcheck = "0.8" | ||
libp2p-swarm = { version = "0.3.0", path = "../swarm" } | ||
libp2p-tcp = { version = "0.13.0", path = "../transports/tcp" } | ||
libp2p-mplex = { version = "0.13.0", path = "../muxers/mplex" } | ||
libp2p-secio = { version = "0.13.0", path = "../protocols/secio" } | ||
rand = "0.7.2" | ||
quickcheck = "0.9.0" | ||
wasm-timer = "0.2" | ||
assert_matches = "1.3" | ||
|
||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
name = "libp2p-core-derive" | ||
edition = "2018" | ||
description = "Procedural macros of libp2p-core" | ||
version = "0.12.0" | ||
version = "0.13.0" | ||
authors = ["Parity Technologies <[email protected]>"] | ||
license = "MIT" | ||
repository = "https://github.com/libp2p/rust-libp2p" | ||
|
@@ -17,4 +17,4 @@ syn = { version = "0.15.22", default-features = false, features = ["clone-impls" | |
quote = "0.6" | ||
|
||
[dev-dependencies] | ||
libp2p = { version = "0.12.0", path = "../.." } | ||
libp2p = { version = "0.13.0", path = "../.." } |
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,7 +1,7 @@ | ||
[package] | ||
name = "libp2p-mdns" | ||
edition = "2018" | ||
version = "0.12.0" | ||
version = "0.13.0" | ||
description = "Implementation of the libp2p mDNS discovery method" | ||
authors = ["Parity Technologies <[email protected]>"] | ||
license = "MIT" | ||
|
@@ -14,8 +14,8 @@ async-std = "0.99" | |
data-encoding = "2.0" | ||
dns-parser = "0.8" | ||
futures-preview = "0.3.0-alpha.18" | ||
libp2p-core = { version = "0.12.0", path = "../../core" } | ||
libp2p-swarm = { version = "0.2.0", path = "../../swarm" } | ||
libp2p-core = { version = "0.13.0", path = "../../core" } | ||
libp2p-swarm = { version = "0.3.0", path = "../../swarm" } | ||
log = "0.4" | ||
multiaddr = { package = "parity-multiaddr", version = "0.5.0", path = "../multiaddr" } | ||
net2 = "0.2" | ||
|
Oops, something went wrong.