Skip to content

Commit d7cecc8

Browse files
authored
Update to cap-std 3.0.0. (bytecodealliance#42)
1 parent 9f83d30 commit d7cecc8

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Cargo.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ exclude = ["/.github"]
1313
[dependencies]
1414
#async-std = { version = "1.10.0", optional = true }
1515
bitflags = "2.2.3"
16-
cap-std = { version = "2.0.1", optional = true }
16+
cap-std = { version = "3.0.0", optional = true }
1717
#cap-async-std = { version = "0.26.0", optional = true }
1818
char-device = { version = "0.16.0", optional = true }
1919
os_pipe = { version = "1.0.0", features = ["io_safety"], optional = true }
@@ -26,7 +26,8 @@ ssh2 = { version = "0.9.1", optional = true }
2626
rustix = { version = "0.38.0", features = ["fs", "net"] }
2727

2828
[target.'cfg(windows)'.dependencies]
29-
cap-fs-ext = "2.0.1"
29+
cap-std = "3.0.0"
30+
cap-fs-ext = "3.0.0"
3031
winx = "0.36.0"
3132
fd-lock = "4.0.0"
3233

@@ -40,9 +41,9 @@ features = [
4041
]
4142

4243
[dev-dependencies]
43-
cap-fs-ext = "2.0.1"
44-
cap-tempfile = "2.0.1"
45-
cap-std = "2.0.1"
44+
cap-fs-ext = "3.0.0"
45+
cap-tempfile = "3.0.0"
46+
cap-std = "3.0.0"
4647
tempfile = "3.2.0"
4748

4849
[features]

src/fs/fd_flags.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ use std::{fs, io};
88
#[cfg(windows)]
99
use {
1010
cap_fs_ext::{OpenOptions, Reopen},
11+
cap_std::fs::OpenOptionsExt,
1112
io_lifetimes::AsHandle,
12-
std::os::windows::fs::OpenOptionsExt,
1313
windows_sys::Win32::Storage::FileSystem::FILE_FLAG_WRITE_THROUGH,
1414
winx::file::{AccessMode, FileModeInformation},
1515
};

0 commit comments

Comments
 (0)