From ee449d351bd92ae0c10df7807d96c88082dfd101 Mon Sep 17 00:00:00 2001 From: Ryan Leckey Date: Fri, 28 Jun 2019 21:39:36 -0700 Subject: [PATCH] Update dependencies --- Cargo.toml | 3 +-- sqlx-postgres-mock/Cargo.toml | 3 +-- sqlx-postgres-protocol/Cargo.toml | 4 ++-- sqlx-postgres/Cargo.toml | 11 ++++++----- src/main.rs | 5 +++-- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 18ee943f..fbaa7f07 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,10 +16,9 @@ description = "Asynchronous and expressive database client in pure Rust." edition = "2018" [dependencies] -runtime = "=0.3.0-alpha.4" +runtime = "=0.3.0-alpha.6" sqlx-core = { path = "sqlx-core" } sqlx-postgres = { path = "sqlx-postgres" } -failure = "0.1" env_logger = "0.6.1" bytes = "0.4.12" diff --git a/sqlx-postgres-mock/Cargo.toml b/sqlx-postgres-mock/Cargo.toml index 18568189..389cc3c9 100644 --- a/sqlx-postgres-mock/Cargo.toml +++ b/sqlx-postgres-mock/Cargo.toml @@ -7,6 +7,5 @@ description = "Mock the PostgreSQL wire protocol. Used internally to test and be edition = "2018" [dependencies] -runtime = "=0.3.0-alpha.4" +runtime = "=0.3.0-alpha.6" futures-preview = "=0.3.0-alpha.16" -failure = "0.1" diff --git a/sqlx-postgres-protocol/Cargo.toml b/sqlx-postgres-protocol/Cargo.toml index 44cd5398..9814badb 100644 --- a/sqlx-postgres-protocol/Cargo.toml +++ b/sqlx-postgres-protocol/Cargo.toml @@ -7,7 +7,7 @@ description = "Provides standalone encoding and decoding of the PostgreSQL v3 wi edition = "2018" [dependencies] -byteorder = "1.3.1" +byteorder = "1.3.2" bytes = "0.4.12" memchr = "2.2.0" md-5 = "0.8.0" @@ -16,7 +16,7 @@ hex = "0.3.2" [dev-dependencies] matches = "0.1.8" -criterion = "0.2" +criterion = "0.2.11" [[bench]] name = "decode" diff --git a/sqlx-postgres/Cargo.toml b/sqlx-postgres/Cargo.toml index b7ab66af..969f402e 100644 --- a/sqlx-postgres/Cargo.toml +++ b/sqlx-postgres/Cargo.toml @@ -9,11 +9,10 @@ edition = "2018" [dependencies] sqlx-core = { path = "../sqlx-core" } sqlx-postgres-protocol = { path = "../sqlx-postgres-protocol" } -runtime = "=0.3.0-alpha.4" +runtime = "=0.3.0-alpha.6" futures-preview = "=0.3.0-alpha.16" -failure = "0.1" -byteorder = "1.3.1" -log = "0.4" +byteorder = "1.3.2" +log = "0.4.6" hex = "0.3.2" bytes = "0.4.12" memchr = "2.2.0" @@ -21,7 +20,9 @@ md-5 = "0.8.0" [dev-dependencies] matches = "0.1.8" -criterion = "0.2" +criterion = "0.2.11" +postgres = "0.16.0-rc.1" +runtime-tokio = "=0.3.0-alpha.5" [[bench]] name = "connection" diff --git a/src/main.rs b/src/main.rs index 9c9e27e9..720c0d6d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,10 +1,11 @@ #![feature(async_await)] use sqlx::{pg::Connection, ConnectOptions}; +use std::io; #[runtime::main] -async fn main() -> Result<(), failure::Error> { - env_logger::try_init()?; +async fn main() -> io::Result<()> { + env_logger::init(); let conn = Connection::establish( ConnectOptions::new()