Merge pull request #414 from lygz5016/master
'#[cfg(unix)]' is missing on Windows targets
This commit is contained in:
commit
5d70427fb1
@ -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"
|
||||
|
@ -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>,
|
||||
|
Loading…
Reference in New Issue
Block a user