Skip to content

Commit afa466f

Browse files
committed
Release tokio-postgres v0.5.0-alpha.1
1 parent 4745cda commit afa466f

File tree

6 files changed

+25
-5
lines changed

6 files changed

+25
-5
lines changed

postgres-native-tls/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ futures-preview = "=0.3.0-alpha.19"
2020
native-tls = "0.2"
2121
tokio-io = "=0.2.0-alpha.6"
2222
tokio-tls = "=0.3.0-alpha.6"
23-
tokio-postgres = { version = "0.4.0-rc.1", path = "../tokio-postgres", default-features = false }
23+
tokio-postgres = { version = "=0.5.0-alpha.1", path = "../tokio-postgres", default-features = false }
2424

2525
[dev-dependencies]
2626
tokio = "=0.2.0-alpha.6"

postgres-openssl/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ futures-preview = "=0.3.0-alpha.19"
2020
openssl = "0.10"
2121
tokio-io = "=0.2.0-alpha.6"
2222
tokio-openssl = "=0.4.0-alpha.6"
23-
tokio-postgres = { version = "0.4.0-rc.1", path = "../tokio-postgres", default-features = false }
23+
tokio-postgres = { version = "0.5.0-alpha.1", path = "../tokio-postgres", default-features = false }
2424

2525
[dev-dependencies]
2626
tokio = "=0.2.0-alpha.6"

postgres/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ bytes = "0.4"
3232
fallible-iterator = "0.2"
3333
futures-preview = "=0.3.0-alpha.19"
3434
pin-utils = "=0.1.0-alpha.4"
35-
tokio-postgres = { version = "0.4.0-rc.2", path = "../tokio-postgres", default-features = false }
35+
tokio-postgres = { version = "=0.5.0-alpha.1", path = "../tokio-postgres", default-features = false }
3636
tokio-executor = "=0.2.0-alpha.6"
3737

3838
tokio = { version = "=0.2.0-alpha.6", optional = true }

tokio-postgres/CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# Change Log
22

3+
## v0.5.0-alpha.1 - 2019-10-14
4+
5+
### Changed
6+
7+
* The library now uses `std::futures::Future` and async/await syntax.
8+
* Most methods now take `&self` rather than `&mut self`.
9+
* The transaction API has changed to more closely resemble the synchronous API and is significantly more ergonomic.
10+
* Methods now take `&[&(dyn ToSql + Sync)]` rather than `&[&dyn ToSql]` to allow futures to be `Send`.
11+
* Methods are now "normal" async functions that no longer do work up-front.
12+
* Statements are no longer required to be prepared explicitly before use. Methods taking `&Statement` can now also take
13+
`&str`, and will internally prepare the statement.
14+
* `ToSql` now serializes its value into a `BytesMut` rather than `Vec<u8>`.
15+
* Methods that previously returned `Stream`s now return `Vec<T>`. New `*_raw` methods still provide a `Stream`
16+
interface.
17+
18+
### Added
19+
20+
* Added the `channel_binding=disable/allow/require` configuration to control use of channel binding.
21+
* Added the `Client::query_one` method to cover the common case of a query that returns exactly one row.
22+
323
## v0.4.0-rc.3 - 2019-06-29
424

525
### Fixed

tokio-postgres/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tokio-postgres"
3-
version = "0.4.0-rc.3"
3+
version = "0.5.0-alpha.1"
44
authors = ["Steven Fackler <sfackler@gmail.com>"]
55
edition = "2018"
66
license = "MIT/Apache-2.0"

tokio-postgres/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
//! as an argument. The `NoTls` type in this crate can be used when TLS is not required. Otherwise, the
102102
//! `postgres-openssl` and `postgres-native-tls` crates provide implementations backed by the `openssl` and `native-tls`
103103
//! crates, respectively.
104-
#![doc(html_root_url = "https://docs.rs/tokio-postgres/0.4.0-rc.3")]
104+
#![doc(html_root_url = "https://docs.rs/tokio-postgres/0.5")]
105105
#![warn(rust_2018_idioms, clippy::all, missing_docs)]
106106

107107
pub use crate::client::Client;

0 commit comments

Comments
 (0)