From 9cd54250a2cf04d2d3a890cadf7eb6b2157391ea Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Fri, 29 May 2015 23:25:14 -0700 Subject: [PATCH 1/4] Update README versions --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d0c87b1f..2b0f5bf1 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Rust-Postgres A native PostgreSQL driver for Rust. -Documentation is available at https://sfackler.github.io/rust-postgres/doc/v0.8.9/postgres +Documentation is available at https://sfackler.github.io/rust-postgres/doc/v0.9.0/postgres [![Build Status](https://travis-ci.org/sfackler/rust-postgres.png?branch=master)](https://travis-ci.org/sfackler/rust-postgres) [![Latest Version](https://img.shields.io/crates/v/postgres.svg)](https://crates.io/crates/postgres) @@ -9,7 +9,7 @@ You can integrate Rust-Postgres into your project through the [releases on crate ```toml # Cargo.toml [dependencies] -postgres = "0.8" +postgres = "0.9" ``` ## Overview From 5758ccc54c0e79965f84652dd9520a9baf68a7ee Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sat, 30 May 2015 12:38:42 -0700 Subject: [PATCH 2/4] Make SslMode Sync+Send --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ef381e8c..e2815281 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -467,9 +467,9 @@ pub enum SslMode { /// The connection will not use SSL. None, /// The connection will use SSL if the backend supports it. - Prefer(Box), + Prefer(Box), /// The connection must use SSL. - Require(Box), + Require(Box), } #[derive(Clone)] From 37b36e6aa0c7b5fdb908c1d4bfe1a66d6d2d6c73 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sat, 30 May 2015 12:42:01 -0700 Subject: [PATCH 3/4] Implement Debug for SslMode --- src/lib.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index e2815281..dc1ed2fe 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -472,6 +472,16 @@ pub enum SslMode { Require(Box), } +impl fmt::Debug for SslMode { + fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { + match *self { + SslMode::None => fmt.write_str("None"), + SslMode::Prefer(..) => fmt.write_str("Prefer"), + SslMode::Require(..) => fmt.write_str("Require"), + } + } +} + #[derive(Clone)] struct CachedStatement { name: String, From fc0a80ed33c3338f6d908238a96671d5a2f8d629 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sat, 30 May 2015 12:44:14 -0700 Subject: [PATCH 4/4] Release v0.9.1 --- Cargo.toml | 4 ++-- README.md | 2 +- src/lib.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e7937b3f..dd471146 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,11 @@ [package] name = "postgres" -version = "0.9.0" +version = "0.9.1" authors = ["Steven Fackler "] license = "MIT" description = "A native PostgreSQL driver" repository = "https://github.com/sfackler/rust-postgres" -documentation = "https://sfackler.github.io/rust-postgres/doc/v0.9.0/postgres" +documentation = "https://sfackler.github.io/rust-postgres/doc/v0.9.1/postgres" readme = "README.md" keywords = ["database", "sql"] build = "build.rs" diff --git a/README.md b/README.md index 2b0f5bf1..6f7e3547 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Rust-Postgres A native PostgreSQL driver for Rust. -Documentation is available at https://sfackler.github.io/rust-postgres/doc/v0.9.0/postgres +Documentation is available at https://sfackler.github.io/rust-postgres/doc/v0.9.1/postgres [![Build Status](https://travis-ci.org/sfackler/rust-postgres.png?branch=master)](https://travis-ci.org/sfackler/rust-postgres) [![Latest Version](https://img.shields.io/crates/v/postgres.svg)](https://crates.io/crates/postgres) diff --git a/src/lib.rs b/src/lib.rs index dc1ed2fe..1cf00e98 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -42,7 +42,7 @@ //! } //! } //! ``` -#![doc(html_root_url="https://sfackler.github.io/rust-postgres/doc/v0.9.0")] +#![doc(html_root_url="https://sfackler.github.io/rust-postgres/doc/v0.9.1")] #![warn(missing_docs)] extern crate bufstream;