Skip to content

Commit 5d70427

Browse files
authored
Merge pull request #414 from lygz5016/master
'#[cfg(unix)]' is missing on Windows targets
2 parents e57a297 + 289de79 commit 5d70427

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

postgres/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ default = ["runtime"]
99

1010
runtime = ["tokio-postgres/runtime", "tokio", "lazy_static", "log"]
1111

12+
"with-bit-vec-0.5" = ["tokio-postgres/with-bit-vec-0.5"]
13+
"with-chrono-0.4" = ["tokio-postgres/with-chrono-0.4"]
14+
"with-eui48-0.4" = ["tokio-postgres/with-eui48-0.4"]
15+
"with-geo-0.10" = ["tokio-postgres/with-geo-0.10"]
16+
"with-serde_json-1" = ["tokio-postgres/with-serde_json-1"]
17+
"with-uuid-0.7" = ["tokio-postgres/with-uuid-0.7"]
18+
1219
[dependencies]
1320
bytes = "0.4"
1421
fallible-iterator = "0.1"

tokio-postgres/src/config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ impl Config {
236236
/// Adds a Unix socket host to the configuration.
237237
///
238238
/// Unlike `host`, this method allows non-UTF8 paths.
239+
#[cfg(unix)]
239240
pub fn host_path<T>(&mut self, host: T) -> &mut Config
240241
where
241242
T: AsRef<Path>,

0 commit comments

Comments
 (0)