Skip to content

Commit

Permalink
Release tokio-postgres v0.5.0-alpha.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Oct 15, 2019
1 parent 4745cda commit afa466f
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 5 deletions.
2 changes: 1 addition & 1 deletion postgres-native-tls/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion postgres-openssl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion postgres/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
20 changes: 20 additions & 0 deletions tokio-postgres/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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<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

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion tokio-postgres/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tokio-postgres"
version = "0.4.0-rc.3"
version = "0.5.0-alpha.1"
authors = ["Steven Fackler <[email protected]>"]
edition = "2018"
license = "MIT/Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion tokio-postgres/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit afa466f

Please sign in to comment.