Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies, including stable pin-project #75

Merged
merged 4 commits into from
Oct 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@ jobs:
- when:
condition: << parameters.test-unstable >>
steps:
# - run:
# name: Beta
# command: |
# rustup toolchain install beta
# cargo +beta test
- run:
name: Nightly
command: |
rustup toolchain install nightly
cargo +nightly test
- run:
name: Beta
command: |
rustup toolchain install beta
cargo +beta test
- run:
name: Nightly SSL
command: cargo +nightly test
command: cargo +beta test
environment:
SSL: 1

Expand Down
14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ crossbeam = "0.7"
failure = "0.1"
failure_derive = "0.1"
fnv = "1"
futures-core-preview = "0.3.0-alpha.18"
futures-util-preview = "0.3.0-alpha.18"
futures-sink-preview = "0.3.0-alpha.18"
futures-core-preview = "=0.3.0-alpha.19"
futures-util-preview = "=0.3.0-alpha.19"
futures-sink-preview = "=0.3.0-alpha.19"
mio-named-pipes = "0.1.6"
mysql_common = "0.18"
native-tls = "0.2"
percent-encoding = "2.1.0"
pin-project = { version = "0.4.0-alpha.11", features = ["project_attr"] }
pin-project = "0.4.0"
regex = "1"
serde = "1"
serde_json = "1"
# we only need rt-full for tokio::spawn
tokio = { version = "0.2.0-alpha.5", default-features = false, features = ["codec", "io", "net", "sync", "fs", "rt-full"] }
tokio-tls = "0.3.0-alpha.5"
tokio-net = "0.2.0-alpha.5"
tokio = { version = "=0.2.0-alpha.6", default-features = false, features = ["codec", "io", "net", "sync", "fs", "rt-full"] }
tokio-tls = "=0.3.0-alpha.6"
tokio-net = "=0.2.0-alpha.6"
twox-hash = "1"
url = "2.1"

Expand Down
16 changes: 8 additions & 8 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ environment:
PATH: C:\msys64\mingw64\bin\;c:\rust\bin;%PATH%
- TARGET: nightly-i686-pc-windows-gnu
PATH: C:\msys64\mingw32\bin\;c:\rust\bin;%PATH%
# - TARGET: beta-x86_64-pc-windows-msvc
# PATH: C:\msys64\mingw64\bin\;c:\rust\bin;%PATH%
# - TARGET: beta-i686-pc-windows-msvc
# PATH: C:\msys64\mingw32\bin\;c:\rust\bin;%PATH%
# - TARGET: beta-x86_64-pc-windows-gnu
# PATH: C:\msys64\mingw64\bin\;c:\rust\bin;%PATH%
# - TARGET: beta-i686-pc-windows-gnu
# PATH: C:\msys64\mingw32\bin\;c:\rust\bin;%PATH%
- TARGET: beta-x86_64-pc-windows-msvc
PATH: C:\msys64\mingw64\bin\;c:\rust\bin;%PATH%
- TARGET: beta-i686-pc-windows-msvc
PATH: C:\msys64\mingw32\bin\;c:\rust\bin;%PATH%
- TARGET: beta-x86_64-pc-windows-gnu
PATH: C:\msys64\mingw64\bin\;c:\rust\bin;%PATH%
- TARGET: beta-i686-pc-windows-gnu
PATH: C:\msys64\mingw32\bin\;c:\rust\bin;%PATH%
# - TARGET: 1.34.0-x86_64-pc-windows-msvc
# PATH: C:\msys64\mingw64\bin\;c:\rust\bin;%PATH%
# - TARGET: 1.34.0-i686-pc-windows-msvc
Expand Down
2 changes: 1 addition & 1 deletion src/connection_like/read_packet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl<T: ConnectionLike> ReadPacket<T> {
impl<T: ConnectionLike> Future for ReadPacket<T> {
type Output = Result<(T, RawPacket)>;

fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
let this = self.project();
let (packet_opt, stream) = ready!(this.fut.poll(cx));
let packet_opt = packet_opt.transpose()?;
Expand Down
2 changes: 1 addition & 1 deletion src/connection_like/write_packet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl<T: ConnectionLike> WritePacket<T> {
impl<T: ConnectionLike> Future for WritePacket<T> {
type Output = Result<T>;

fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
let this = self.project();
let (stream, seq_id) = ready!(this.fut.poll(cx))?;
let mut conn_like = this.conn_like.take().unwrap().return_stream(stream);
Expand Down
10 changes: 5 additions & 5 deletions src/io/async_tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ where
S: AsyncRead + AsyncWrite + Unpin,
{
fn poll_read(
mut self: Pin<&mut Self>,
self: Pin<&mut Self>,
cx: &mut Context,
buf: &mut [u8],
) -> Poll<Result<usize, IoError>> {
Expand All @@ -57,7 +57,7 @@ where
}

fn poll_read_buf<B>(
mut self: Pin<&mut Self>,
self: Pin<&mut Self>,
cx: &mut Context,
buf: &mut B,
) -> Poll<Result<usize, IoError>>
Expand All @@ -73,16 +73,16 @@ where
S: AsyncRead + AsyncWrite + Unpin,
{
fn poll_write(
mut self: Pin<&mut Self>,
self: Pin<&mut Self>,
cx: &mut Context,
buf: &[u8],
) -> Poll<Result<usize, IoError>> {
self.project().inner.poll_write(cx, buf)
}
fn poll_flush(mut self: Pin<&mut Self>, cx: &mut Context) -> Poll<Result<(), IoError>> {
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Result<(), IoError>> {
self.project().inner.poll_flush(cx)
}
fn poll_shutdown(mut self: Pin<&mut Self>, cx: &mut Context) -> Poll<Result<(), IoError>> {
fn poll_shutdown(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Result<(), IoError>> {
self.project().inner.poll_shutdown(cx)
}
}
Expand Down
13 changes: 5 additions & 8 deletions src/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ impl From<self::async_tls::TlsStream<TcpStream>> for Endpoint {
impl AsyncRead for Endpoint {
#[project]
fn poll_read(
mut self: Pin<&mut Self>,
self: Pin<&mut Self>,
cx: &mut Context,
buf: &mut [u8],
) -> Poll<StdResult<usize, tokio::io::Error>> {
Expand All @@ -149,7 +149,7 @@ impl AsyncRead for Endpoint {

#[project]
fn poll_read_buf<B>(
mut self: Pin<&mut Self>,
self: Pin<&mut Self>,
cx: &mut Context,
buf: &mut B,
) -> Poll<StdResult<usize, tokio::io::Error>>
Expand All @@ -168,7 +168,7 @@ impl AsyncRead for Endpoint {
impl AsyncWrite for Endpoint {
#[project]
fn poll_write(
mut self: Pin<&mut Self>,
self: Pin<&mut Self>,
cx: &mut Context,
buf: &[u8],
) -> Poll<StdResult<usize, tokio::io::Error>> {
Expand All @@ -181,10 +181,7 @@ impl AsyncWrite for Endpoint {
}

#[project]
fn poll_flush(
mut self: Pin<&mut Self>,
cx: &mut Context,
) -> Poll<StdResult<(), tokio::io::Error>> {
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context) -> Poll<StdResult<(), tokio::io::Error>> {
#[project]
match self.project() {
Endpoint::Plain(stream) => stream.poll_flush(cx),
Expand All @@ -195,7 +192,7 @@ impl AsyncWrite for Endpoint {

#[project]
fn poll_shutdown(
mut self: Pin<&mut Self>,
self: Pin<&mut Self>,
cx: &mut Context,
) -> Poll<StdResult<(), tokio::io::Error>> {
#[project]
Expand Down
10 changes: 5 additions & 5 deletions src/io/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl Socket {

impl AsyncRead for Socket {
fn poll_read(
mut self: Pin<&mut Self>,
self: Pin<&mut Self>,
cx: &mut Context,
buf: &mut [u8],
) -> Poll<Result<usize, Error>> {
Expand All @@ -61,7 +61,7 @@ impl AsyncRead for Socket {
}

fn poll_read_buf<B>(
mut self: Pin<&mut Self>,
self: Pin<&mut Self>,
cx: &mut Context,
buf: &mut B,
) -> Poll<Result<usize, Error>>
Expand All @@ -74,16 +74,16 @@ impl AsyncRead for Socket {

impl AsyncWrite for Socket {
fn poll_write(
mut self: Pin<&mut Self>,
self: Pin<&mut Self>,
cx: &mut Context,
buf: &[u8],
) -> Poll<Result<usize, Error>> {
self.project().inner.poll_write(cx, buf)
}
fn poll_flush(mut self: Pin<&mut Self>, cx: &mut Context) -> Poll<Result<(), Error>> {
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Result<(), Error>> {
self.project().inner.poll_flush(cx)
}
fn poll_shutdown(mut self: Pin<&mut Self>, cx: &mut Context) -> Poll<Result<(), Error>> {
fn poll_shutdown(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Result<(), Error>> {
self.project().inner.poll_shutdown(cx)
}
}