Update atomic requirement from 0.4.6 to 0.5.0 (#1766)

* Update atomic requirement from 0.4.6 to 0.5.0

Updates the requirements on [atomic](https://github.com/Amanieu/atomic-rs) to permit the latest version.
- [Release notes](https://github.com/Amanieu/atomic-rs/releases)
- [Commits](https://github.com/Amanieu/atomic-rs/compare/v0.4.6...v0.5.0)

Signed-off-by: dependabot[bot] <support@github.com>

* .github/workflows: Update Rust nightly

* misc/multistream-select: Don't mention private item in public doc

* .github/workflows: Update renamed doc flag

* core/src/connection/pool: Don't mention private item in public doc

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Inden <mail@max-inden.de>
This commit is contained in:
dependabot[bot] 2020-09-17 10:41:23 +02:00 committed by GitHub
parent 5099ab592f
commit 3c72b07e55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 13 deletions

View File

@ -85,9 +85,9 @@ jobs:
- name: Install nightly Rust - name: Install nightly Rust
# TODO: intra-doc links are available on nightly only # TODO: intra-doc links are available on nightly only
# see https://doc.rust-lang.org/nightly/rustdoc/lints.html#intra_doc_link_resolution_failure # see https://doc.rust-lang.org/nightly/rustdoc/lints.html#intra_doc_link_resolution_failure
run: rustup default nightly-2020-05-20 run: rustup default nightly-2020-09-17
- name: Check rustdoc links - name: Check rustdoc links
run: RUSTDOCFLAGS="--deny intra_doc_link_resolution_failure" cargo doc --verbose --workspace --no-deps --document-private-items run: RUSTDOCFLAGS="--deny broken_intra_doc_links" cargo doc --verbose --workspace --no-deps --document-private-items
integration-test: integration-test:
name: Integration tests name: Integration tests

View File

@ -58,7 +58,7 @@ secp256k1 = ["libp2p-core/secp256k1"]
all-features = true all-features = true
[dependencies] [dependencies]
atomic = "0.4.6" atomic = "0.5.0"
bytes = "0.5" bytes = "0.5"
futures = "0.3.1" futures = "0.3.1"
lazy_static = "1.2" lazy_static = "1.2"

View File

@ -750,7 +750,7 @@ pub enum PoolConnection<'a, TInEvent, TConnInfo, TPeerId> {
Established(EstablishedConnection<'a, TInEvent, TConnInfo>), Established(EstablishedConnection<'a, TInEvent, TConnInfo>),
} }
/// A pending connection in a [`Pool`]. /// A pending connection in a pool.
pub struct PendingConnection<'a, TInEvent, TConnInfo, TPeerId> { pub struct PendingConnection<'a, TInEvent, TConnInfo, TPeerId> {
entry: manager::PendingEntry<'a, TInEvent, TConnInfo>, entry: manager::PendingEntry<'a, TInEvent, TConnInfo>,
pending: &'a mut FnvHashMap<ConnectionId, (ConnectedPoint, Option<TPeerId>)>, pending: &'a mut FnvHashMap<ConnectionId, (ConnectedPoint, Option<TPeerId>)>,
@ -781,7 +781,7 @@ impl<TInEvent, TConnInfo, TPeerId>
} }
} }
/// An established connection in a [`Pool`]. /// An established connection in a pool.
pub struct EstablishedConnection<'a, TInEvent, TConnInfo> { pub struct EstablishedConnection<'a, TInEvent, TConnInfo> {
entry: manager::EstablishedEntry<'a, TInEvent, TConnInfo>, entry: manager::EstablishedEntry<'a, TInEvent, TConnInfo>,
} }
@ -861,7 +861,7 @@ where
} }
} }
/// An iterator over established connections in a [`Pool`]. /// An iterator over established connections in a pool.
pub struct EstablishedConnectionIter<'a, I, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr, TConnInfo, TPeerId> { pub struct EstablishedConnectionIter<'a, I, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr, TConnInfo, TPeerId> {
pool: &'a mut Pool<TInEvent, TOutEvent, THandler, TTransErr, THandlerErr, TConnInfo, TPeerId>, pool: &'a mut Pool<TInEvent, TOutEvent, THandler, TTransErr, THandlerErr, TConnInfo, TPeerId>,
ids: I ids: I

View File

@ -34,12 +34,11 @@ use std::{convert::TryFrom as _, io, iter, mem, pin::Pin, task::{Context, Poll}}
/// returned `Future` resolves with the name of the negotiated protocol and /// returned `Future` resolves with the name of the negotiated protocol and
/// a [`Negotiated`] I/O stream. /// a [`Negotiated`] I/O stream.
/// ///
/// The chosen message flow for protocol negotiation depends on the numbers /// The chosen message flow for protocol negotiation depends on the numbers of
/// of supported protocols given. That is, this function delegates to /// supported protocols given. That is, this function delegates to serial or
/// [`dialer_select_proto_serial`] or [`dialer_select_proto_parallel`] /// parallel variant based on the number of protocols given. The number of
/// based on the number of protocols given. The number of protocols is /// protocols is determined through the `size_hint` of the given iterator and
/// determined through the `size_hint` of the given iterator and thus /// thus an inaccurate size estimate may result in a suboptimal choice.
/// an inaccurate size estimate may result in a suboptimal choice.
/// ///
/// Within the scope of this library, a dialer always commits to a specific /// Within the scope of this library, a dialer always commits to a specific
/// multistream-select protocol [`Version`], whereas a listener always supports /// multistream-select protocol [`Version`], whereas a listener always supports
@ -401,4 +400,3 @@ where
} }
} }
} }