Release tokio-postgres v0.5.0-alpha.1

This commit is contained in:
Steven Fackler 2019-10-14 18:14:11 -07:00
parent 4745cda7b7
commit afa466fb25
6 changed files with 25 additions and 5 deletions

View File

@ -20,7 +20,7 @@ futures-preview = "=0.3.0-alpha.19"
native-tls = "0.2" native-tls = "0.2"
tokio-io = "=0.2.0-alpha.6" tokio-io = "=0.2.0-alpha.6"
tokio-tls = "=0.3.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] [dev-dependencies]
tokio = "=0.2.0-alpha.6" tokio = "=0.2.0-alpha.6"

View File

@ -20,7 +20,7 @@ futures-preview = "=0.3.0-alpha.19"
openssl = "0.10" openssl = "0.10"
tokio-io = "=0.2.0-alpha.6" tokio-io = "=0.2.0-alpha.6"
tokio-openssl = "=0.4.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] [dev-dependencies]
tokio = "=0.2.0-alpha.6" tokio = "=0.2.0-alpha.6"

View File

@ -32,7 +32,7 @@ bytes = "0.4"
fallible-iterator = "0.2" fallible-iterator = "0.2"
futures-preview = "=0.3.0-alpha.19" futures-preview = "=0.3.0-alpha.19"
pin-utils = "=0.1.0-alpha.4" 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-executor = "=0.2.0-alpha.6"
tokio = { version = "=0.2.0-alpha.6", optional = true } tokio = { version = "=0.2.0-alpha.6", optional = true }

View File

@ -1,5 +1,25 @@
# Change Log # 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<u8>`.
* Methods that previously returned `Stream`s now return `Vec<T>`. 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 ## v0.4.0-rc.3 - 2019-06-29
### Fixed ### Fixed

View File

@ -1,6 +1,6 @@
[package] [package]
name = "tokio-postgres" name = "tokio-postgres"
version = "0.4.0-rc.3" version = "0.5.0-alpha.1"
authors = ["Steven Fackler <sfackler@gmail.com>"] authors = ["Steven Fackler <sfackler@gmail.com>"]
edition = "2018" edition = "2018"
license = "MIT/Apache-2.0" license = "MIT/Apache-2.0"

View File

@ -101,7 +101,7 @@
//! as an argument. The `NoTls` type in this crate can be used when TLS is not required. Otherwise, the //! 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` //! `postgres-openssl` and `postgres-native-tls` crates provide implementations backed by the `openssl` and `native-tls`
//! crates, respectively. //! 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)] #![warn(rust_2018_idioms, clippy::all, missing_docs)]
pub use crate::client::Client; pub use crate::client::Client;