File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[package ]
22name = " postgres"
3- version = " 0.9.0 "
3+ version = " 0.9.1 "
44authors = [" Steven Fackler <sfackler@gmail.com>" ]
55license = " MIT"
66description = " A native PostgreSQL driver"
77repository = " https://github.com/sfackler/rust-postgres"
8- documentation = " https://sfackler.github.io/rust-postgres/doc/v0.9.0 /postgres"
8+ documentation = " https://sfackler.github.io/rust-postgres/doc/v0.9.1 /postgres"
99readme = " README.md"
1010keywords = [" database" , " sql" ]
1111build = " build.rs"
Original file line number Diff line number Diff line change 11# Rust-Postgres
22A native PostgreSQL driver for Rust.
33
4- Documentation is available at https://sfackler.github.io/rust-postgres/doc/v0.8.9 /postgres
4+ Documentation is available at https://sfackler.github.io/rust-postgres/doc/v0.9.1 /postgres
55
66[ ![ 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 )
77
88You can integrate Rust-Postgres into your project through the [ releases on crates.io] ( https://crates.io/crates/postgres ) :
99``` toml
1010# Cargo.toml
1111[dependencies ]
12- postgres = " 0.8 "
12+ postgres = " 0.9 "
1313```
1414
1515## Overview
Original file line number Diff line number Diff line change 4242//! }
4343//! }
4444//! ```
45- #![ doc( html_root_url="https://sfackler.github.io/rust-postgres/doc/v0.9.0 " ) ]
45+ #![ doc( html_root_url="https://sfackler.github.io/rust-postgres/doc/v0.9.1 " ) ]
4646#![ warn( missing_docs) ]
4747
4848extern crate bufstream;
@@ -467,9 +467,19 @@ pub enum SslMode {
467467 /// The connection will not use SSL.
468468 None ,
469469 /// The connection will use SSL if the backend supports it.
470- Prefer ( Box < NegotiateSsl > ) ,
470+ Prefer ( Box < NegotiateSsl +std :: marker :: Sync + Send > ) ,
471471 /// The connection must use SSL.
472- Require ( Box < NegotiateSsl > ) ,
472+ Require ( Box < NegotiateSsl +std:: marker:: Sync +Send > ) ,
473+ }
474+
475+ impl fmt:: Debug for SslMode {
476+ fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
477+ match * self {
478+ SslMode :: None => fmt. write_str ( "None" ) ,
479+ SslMode :: Prefer ( ..) => fmt. write_str ( "Prefer" ) ,
480+ SslMode :: Require ( ..) => fmt. write_str ( "Require" ) ,
481+ }
482+ }
473483}
474484
475485#[ derive( Clone ) ]
You can’t perform that action at this time.
0 commit comments