File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -24,5 +24,8 @@ futures-lite = "1.2.0"
24
24
[target .'cfg(unix)' .dev-dependencies ]
25
25
libc = " 0.2.78"
26
26
27
- [target .'cfg(windows)' .dev-dependencies ]
28
- winapi = { version = " 0.3.9" , features = [" winbase" ] }
27
+ [target .'cfg(windows)' .dev-dependencies .windows-sys ]
28
+ version = " 0.48"
29
+ features = [
30
+ " Win32_Storage_FileSystem" ,
31
+ ]
Original file line number Diff line number Diff line change @@ -1744,7 +1744,7 @@ pub mod windows {
1744
1744
/// let file = OpenOptions::new()
1745
1745
/// .create(true)
1746
1746
/// .write(true)
1747
- /// .custom_flags(winapi::um::winbase ::FILE_FLAG_DELETE_ON_CLOSE)
1747
+ /// .custom_flags(windows_sys::Win32::Storage::FileSystem ::FILE_FLAG_DELETE_ON_CLOSE)
1748
1748
/// .open("foo.txt")
1749
1749
/// .await?;
1750
1750
/// # std::io::Result::Ok(()) });
@@ -1778,7 +1778,7 @@ pub mod windows {
1778
1778
/// let file = OpenOptions::new()
1779
1779
/// .write(true)
1780
1780
/// .create(true)
1781
- /// .attributes(winapi::um::winnt ::FILE_ATTRIBUTE_HIDDEN)
1781
+ /// .attributes(windows_sys::Win32::Storage::FileSystem ::FILE_ATTRIBUTE_HIDDEN)
1782
1782
/// .open("foo.txt")
1783
1783
/// .await?;
1784
1784
/// # std::io::Result::Ok(()) });
@@ -1816,7 +1816,7 @@ pub mod windows {
1816
1816
/// let file = OpenOptions::new()
1817
1817
/// .write(true)
1818
1818
/// .create(true)
1819
- /// .security_qos_flags(winapi::um::winbase ::SECURITY_IDENTIFICATION)
1819
+ /// .security_qos_flags(windows_sys::Win32::Storage::FileSystem ::SECURITY_IDENTIFICATION)
1820
1820
/// .open(r"\\.\pipe\MyPipe")
1821
1821
/// .await?;
1822
1822
/// # std::io::Result::Ok(()) });
You can’t perform that action at this time.
0 commit comments