Merge pull request #414 from lygz5016/master

'#[cfg(unix)]' is missing on Windows targets
This commit is contained in:
Steven Fackler 2019-01-30 21:54:14 -08:00 committed by GitHub
commit 5d70427fb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -9,6 +9,13 @@ default = ["runtime"]
runtime = ["tokio-postgres/runtime", "tokio", "lazy_static", "log"]
"with-bit-vec-0.5" = ["tokio-postgres/with-bit-vec-0.5"]
"with-chrono-0.4" = ["tokio-postgres/with-chrono-0.4"]
"with-eui48-0.4" = ["tokio-postgres/with-eui48-0.4"]
"with-geo-0.10" = ["tokio-postgres/with-geo-0.10"]
"with-serde_json-1" = ["tokio-postgres/with-serde_json-1"]
"with-uuid-0.7" = ["tokio-postgres/with-uuid-0.7"]
[dependencies]
bytes = "0.4"
fallible-iterator = "0.1"

View File

@ -236,6 +236,7 @@ impl Config {
/// Adds a Unix socket host to the configuration.
///
/// Unlike `host`, this method allows non-UTF8 paths.
#[cfg(unix)]
pub fn host_path<T>(&mut self, host: T) -> &mut Config
where
T: AsRef<Path>,