Skip to content

Commit 20f30f4

Browse files
committed
feat(hm-util): add windows crate for atomic file replacement
1 parent 6cc77e9 commit 20f30f4

2 files changed

Lines changed: 59 additions & 0 deletions

File tree

Cargo.lock

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

crates/hm-util/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ description = "Shared OS and filesystem utilities for Harmont crates."
1010
dirs = "6"
1111
tokio = { version = "1", features = ["rt", "fs"] }
1212

13+
[target.'cfg(windows)'.dependencies.windows]
14+
version = "0.62"
15+
features = [
16+
"Win32_Foundation",
17+
"Win32_Storage_FileSystem",
18+
]
19+
1320
[dev-dependencies]
1421
tempfile = "3"
1522
tokio = { version = "1", features = ["full", "test-util"] }

0 commit comments

Comments
 (0)