From afa466fb256727464c3a2b55cbfe5c971f628d32 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Mon, 14 Oct 2019 18:14:11 -0700 Subject: [PATCH] Release tokio-postgres v0.5.0-alpha.1 --- postgres-native-tls/Cargo.toml | 2 +- postgres-openssl/Cargo.toml | 2 +- postgres/Cargo.toml | 2 +- tokio-postgres/CHANGELOG.md | 20 ++++++++++++++++++++ tokio-postgres/Cargo.toml | 2 +- tokio-postgres/src/lib.rs | 2 +- 6 files changed, 25 insertions(+), 5 deletions(-) diff --git a/postgres-native-tls/Cargo.toml b/postgres-native-tls/Cargo.toml index c56b0831..1b8e1889 100644 --- a/postgres-native-tls/Cargo.toml +++ b/postgres-native-tls/Cargo.toml @@ -20,7 +20,7 @@ futures-preview = "=0.3.0-alpha.19" native-tls = "0.2" tokio-io = "=0.2.0-alpha.6" tokio-tls = "=0.3.0-alpha.6" -tokio-postgres = { version = "0.4.0-rc.1", path = "../tokio-postgres", default-features = false } +tokio-postgres = { version = "=0.5.0-alpha.1", path = "../tokio-postgres", default-features = false } [dev-dependencies] tokio = "=0.2.0-alpha.6" diff --git a/postgres-openssl/Cargo.toml b/postgres-openssl/Cargo.toml index 60be19c5..faddd951 100644 --- a/postgres-openssl/Cargo.toml +++ b/postgres-openssl/Cargo.toml @@ -20,7 +20,7 @@ futures-preview = "=0.3.0-alpha.19" openssl = "0.10" tokio-io = "=0.2.0-alpha.6" tokio-openssl = "=0.4.0-alpha.6" -tokio-postgres = { version = "0.4.0-rc.1", path = "../tokio-postgres", default-features = false } +tokio-postgres = { version = "0.5.0-alpha.1", path = "../tokio-postgres", default-features = false } [dev-dependencies] tokio = "=0.2.0-alpha.6" diff --git a/postgres/Cargo.toml b/postgres/Cargo.toml index d07664eb..5588b9e9 100644 --- a/postgres/Cargo.toml +++ b/postgres/Cargo.toml @@ -32,7 +32,7 @@ bytes = "0.4" fallible-iterator = "0.2" futures-preview = "=0.3.0-alpha.19" pin-utils = "=0.1.0-alpha.4" -tokio-postgres = { version = "0.4.0-rc.2", path = "../tokio-postgres", default-features = false } +tokio-postgres = { version = "=0.5.0-alpha.1", path = "../tokio-postgres", default-features = false } tokio-executor = "=0.2.0-alpha.6" tokio = { version = "=0.2.0-alpha.6", optional = true } diff --git a/tokio-postgres/CHANGELOG.md b/tokio-postgres/CHANGELOG.md index d55f7f9a..7ed4b4de 100644 --- a/tokio-postgres/CHANGELOG.md +++ b/tokio-postgres/CHANGELOG.md @@ -1,5 +1,25 @@ # Change Log +## v0.5.0-alpha.1 - 2019-10-14 + +### Changed + +* The library now uses `std::futures::Future` and async/await syntax. +* Most methods now take `&self` rather than `&mut self`. +* The transaction API has changed to more closely resemble the synchronous API and is significantly more ergonomic. +* Methods now take `&[&(dyn ToSql + Sync)]` rather than `&[&dyn ToSql]` to allow futures to be `Send`. +* Methods are now "normal" async functions that no longer do work up-front. +* Statements are no longer required to be prepared explicitly before use. Methods taking `&Statement` can now also take + `&str`, and will internally prepare the statement. +* `ToSql` now serializes its value into a `BytesMut` rather than `Vec`. +* Methods that previously returned `Stream`s now return `Vec`. New `*_raw` methods still provide a `Stream` + interface. + +### Added + +* Added the `channel_binding=disable/allow/require` configuration to control use of channel binding. +* Added the `Client::query_one` method to cover the common case of a query that returns exactly one row. + ## v0.4.0-rc.3 - 2019-06-29 ### Fixed diff --git a/tokio-postgres/Cargo.toml b/tokio-postgres/Cargo.toml index b2a2d9c6..5e685c46 100644 --- a/tokio-postgres/Cargo.toml +++ b/tokio-postgres/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tokio-postgres" -version = "0.4.0-rc.3" +version = "0.5.0-alpha.1" authors = ["Steven Fackler "] edition = "2018" license = "MIT/Apache-2.0" diff --git a/tokio-postgres/src/lib.rs b/tokio-postgres/src/lib.rs index 447955d3..ebffbb90 100644 --- a/tokio-postgres/src/lib.rs +++ b/tokio-postgres/src/lib.rs @@ -101,7 +101,7 @@ //! as an argument. The `NoTls` type in this crate can be used when TLS is not required. Otherwise, the //! `postgres-openssl` and `postgres-native-tls` crates provide implementations backed by the `openssl` and `native-tls` //! crates, respectively. -#![doc(html_root_url = "https://docs.rs/tokio-postgres/0.4.0-rc.3")] +#![doc(html_root_url = "https://docs.rs/tokio-postgres/0.5")] #![warn(rust_2018_idioms, clippy::all, missing_docs)] pub use crate::client::Client;