File tree Expand file tree Collapse file tree 3 files changed +17
-7
lines changed Expand file tree Collapse file tree 3 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " postgres"
3
- version = " 0.9.0 "
3
+ version = " 0.9.1 "
4
4
authors = [" Steven Fackler <sfackler@gmail.com>" ]
5
5
license = " MIT"
6
6
description = " A native PostgreSQL driver"
7
7
repository = " 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"
9
9
readme = " README.md"
10
10
keywords = [" database" , " sql" ]
11
11
build = " build.rs"
Original file line number Diff line number Diff line change 1
1
# Rust-Postgres
2
2
A native PostgreSQL driver for Rust.
3
3
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
5
5
6
6
[ ![ 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 )
7
7
8
8
You can integrate Rust-Postgres into your project through the [ releases on crates.io] ( https://crates.io/crates/postgres ) :
9
9
``` toml
10
10
# Cargo.toml
11
11
[dependencies ]
12
- postgres = " 0.8 "
12
+ postgres = " 0.9 "
13
13
```
14
14
15
15
## Overview
Original file line number Diff line number Diff line change 42
42
//! }
43
43
//! }
44
44
//! ```
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 " ) ]
46
46
#![ warn( missing_docs) ]
47
47
48
48
extern crate bufstream;
@@ -467,9 +467,19 @@ pub enum SslMode {
467
467
/// The connection will not use SSL.
468
468
None ,
469
469
/// The connection will use SSL if the backend supports it.
470
- Prefer ( Box < NegotiateSsl > ) ,
470
+ Prefer ( Box < NegotiateSsl +std :: marker :: Sync + Send > ) ,
471
471
/// 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
+ }
473
483
}
474
484
475
485
#[ derive( Clone ) ]
You can’t perform that action at this time.
0 commit comments