Skip to content

Commit dfcffe8

Browse files
authored
Fix winapi issues from flock() rework (#94)
1 parent 77f8246 commit dfcffe8

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ default-features = false
3131
version = "0.9.1"
3232
default-features = false
3333

34+
[target.'cfg(windows)'.dependencies]
35+
winapi = { version = "0.3", features = ["winerror", "fileapi", "winbase", "std"] }
36+
3437
[dev-dependencies]
3538
lazy_static = "1.4"
3639

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ extern crate serde_derive;
1313
extern crate tempfile;
1414
extern crate toml;
1515
extern crate walkdir;
16+
#[cfg(windows)]
17+
extern crate winapi;
1618

1719
use std::hash::{Hash, Hasher};
1820
use std::path::{Path, PathBuf};

0 commit comments

Comments
 (0)