Skip to content

Commit 00a6a3d

Browse files
soulstomppjonhoo
authored andcommitted
Dependency upgrades (jonhoo#7)
1 parent 8e2050f commit 00a6a3d

File tree

3 files changed

+20
-24
lines changed

3 files changed

+20
-24
lines changed

Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ codecov = { repository = "jonhoo/msql-srv", branch = "master", service = "github
2323
maintenance = { status = "experimental" }
2424

2525
[dependencies]
26-
nom = "4.0.0-beta3"
26+
nom = "4.2.3"
2727
mysql_common = "0.5"
2828
byteorder = "1"
2929
chrono = "0.4"
3030

3131
[dev-dependencies]
32-
postgres = "0.15"
33-
mysql = "15.1.0"
34-
mysql_async = "0.14"
35-
slab = "0.4"
36-
tokio-core = "0.1"
37-
futures = "0.1"
32+
postgres = "0.15.2"
33+
mysql = "16.0.0"
34+
mysql_async = "0.19.0"
35+
slab = "0.4.2"
36+
tokio = "0.1.19"
37+
futures = "0.1.26"

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ install:
5656
# install Rust
5757
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
5858
- rustup-init -yv --default-toolchain %channel% --default-host %target%
59-
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin
59+
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin;c:\MinGW\bin
6060
- rustc -vV
6161
- cargo -vV
6262

tests/async.rs

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@ extern crate msql_srv;
44
extern crate mysql_async;
55
extern crate mysql_common as myc;
66
extern crate nom;
7-
extern crate tokio_core;
7+
extern crate tokio;
88

99
use futures::{Future, IntoFuture};
1010
use mysql_async::prelude::*;
1111
use std::io;
1212
use std::net;
1313
use std::thread;
14-
use tokio_core::reactor::Core;
1514

1615
use msql_srv::{
1716
Column, ErrorKind, MysqlIntermediary, MysqlShim, ParamParser, QueryResultWriter,
@@ -93,7 +92,7 @@ where
9392

9493
fn test<C, F>(self, c: C)
9594
where
96-
F: IntoFuture<Item = (), Error = mysql_async::errors::Error>,
95+
F: IntoFuture<Item = (), Error = mysql_async::error::Error>,
9796
C: FnOnce(mysql_async::Conn) -> F,
9897
{
9998
let listener = net::TcpListener::bind("127.0.0.1:0").unwrap();
@@ -103,15 +102,11 @@ where
103102
MysqlIntermediary::run_on_tcp(self, s)
104103
});
105104

106-
let mut core = Core::new().unwrap();
107-
let handle = core.handle();
108-
let db = core
109-
.run(mysql_async::Conn::new(
110-
&format!("mysql://127.0.0.1:{}", port),
111-
&handle,
112-
))
113-
.unwrap();
114-
core.run(c(db).into_future()).unwrap();
105+
tokio::runtime::current_thread::block_on_all(
106+
mysql_async::Conn::new(format!("mysql://127.0.0.1:{}", port)).and_then(|conn| c(conn)),
107+
)
108+
.unwrap();
109+
115110
jh.join().unwrap().unwrap();
116111
}
117112
}
@@ -222,10 +217,11 @@ fn error_response() {
222217
db.query("SELECT a, b FROM foo").then(|r| {
223218
match r {
224219
Ok(_) => assert!(false),
225-
Err(mysql_async::errors::Error(
226-
mysql_async::errors::ErrorKind::Server(ref state, code, ref msg),
227-
_,
228-
)) => {
220+
Err(mysql_async::error::Error::Server(mysql_async::error::ServerError {
221+
code,
222+
message: ref msg,
223+
ref state,
224+
})) => {
229225
assert_eq!(
230226
state,
231227
&String::from_utf8(err.0.sqlstate().to_vec()).unwrap()

0 commit comments

Comments
 (0)