Skip to content

Commit 62f96e2

Browse files
authored
Update to windows-sys 0.48. (#308)
1 parent 99a2a9e commit 62f96e2

File tree

8 files changed

+12
-14
lines changed

8 files changed

+12
-14
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ rustix = { version = "0.37.0", features = ["fs"] }
4040
nt_version = "0.1.3"
4141

4242
[target.'cfg(windows)'.dependencies.windows-sys]
43-
version = "0.45.0"
43+
version = "0.48.0"
4444
features = [
4545
"Win32_Storage_FileSystem",
4646
"Win32_Foundation",

cap-directories/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ directories-next = "2.0.0"
2020
rustix = { version = "0.37.0" }
2121

2222
[target.'cfg(windows)'.dependencies.windows-sys]
23-
version = "0.45.0"
23+
version = "0.48.0"
2424
features = [
2525
"Win32_Foundation",
2626
]

cap-fs-ext/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ std = ["cap-std"]
3333
#async_std_arf_strings = ["cap-async-std/arf_strings", "async_std_fs_utf8", "arf-strings"]
3434

3535
[target.'cfg(windows)'.dependencies.windows-sys]
36-
version = "0.45.0"
36+
version = "0.48.0"
3737
features = [
3838
"Win32_Storage_FileSystem",
3939
]

cap-primitives/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,11 @@ rustix = { version = "0.37.0", features = ["fs", "process", "procfs", "termios",
3131
winx = "0.35.0"
3232

3333
[target.'cfg(windows)'.dependencies.windows-sys]
34-
version = "0.45.0"
34+
version = "0.48.0"
3535
features = [
3636
"Win32_Foundation",
3737
"Win32_Security",
3838
"Win32_Storage_FileSystem",
3939
"Win32_System_Kernel",
40-
"Win32_System_SystemServices",
4140
"Win32_System_WindowsProgramming",
4241
]

cap-primitives/src/windows/fs/create_file_at_w.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ use std::os::windows::io::HandleOrInvalid;
66
use std::ptr::null_mut;
77
use windows_sys::Win32::Foundation::{
88
RtlNtStatusToDosError, SetLastError, ERROR_ALREADY_EXISTS, ERROR_FILE_EXISTS,
9-
ERROR_INVALID_NAME, ERROR_INVALID_PARAMETER, ERROR_NOT_SUPPORTED, HANDLE, INVALID_HANDLE_VALUE,
10-
STATUS_OBJECT_NAME_COLLISION, STATUS_PENDING, STATUS_SUCCESS, SUCCESS, UNICODE_STRING,
9+
ERROR_INVALID_NAME, ERROR_INVALID_PARAMETER, ERROR_NOT_SUPPORTED, GENERIC_ALL, GENERIC_READ,
10+
GENERIC_WRITE, HANDLE, INVALID_HANDLE_VALUE, STATUS_OBJECT_NAME_COLLISION, STATUS_PENDING,
11+
STATUS_SUCCESS, SUCCESS, UNICODE_STRING,
1112
};
1213
use windows_sys::Win32::Security::{
1314
SECURITY_ATTRIBUTES, SECURITY_DYNAMIC_TRACKING, SECURITY_QUALITY_OF_SERVICE,
1415
SECURITY_STATIC_TRACKING,
1516
};
1617
use windows_sys::Win32::Storage::FileSystem::{
17-
NtCreateFile, CREATE_ALWAYS, CREATE_NEW, DELETE, FILE_ACCESS_FLAGS, FILE_ATTRIBUTE_ARCHIVE,
18+
NtCreateFile, CREATE_ALWAYS, CREATE_NEW, DELETE, FILE_ATTRIBUTE_ARCHIVE,
1819
FILE_ATTRIBUTE_COMPRESSED, FILE_ATTRIBUTE_DEVICE, FILE_ATTRIBUTE_DIRECTORY, FILE_ATTRIBUTE_EA,
1920
FILE_ATTRIBUTE_ENCRYPTED, FILE_ATTRIBUTE_HIDDEN, FILE_ATTRIBUTE_INTEGRITY_STREAM,
2021
FILE_ATTRIBUTE_NORMAL, FILE_ATTRIBUTE_NOT_CONTENT_INDEXED, FILE_ATTRIBUTE_NO_SCRUB_DATA,
@@ -31,7 +32,6 @@ use windows_sys::Win32::Storage::FileSystem::{
3132
SECURITY_EFFECTIVE_ONLY, SECURITY_SQOS_PRESENT, SYNCHRONIZE, TRUNCATE_EXISTING,
3233
};
3334
use windows_sys::Win32::System::Kernel::{OBJ_CASE_INSENSITIVE, OBJ_INHERIT};
34-
use windows_sys::Win32::System::SystemServices::{GENERIC_ALL, GENERIC_READ, GENERIC_WRITE};
3535
use windows_sys::Win32::System::WindowsProgramming::{
3636
FILE_DELETE_ON_CLOSE, FILE_NON_DIRECTORY_FILE, FILE_NO_INTERMEDIATE_BUFFERING, FILE_OPENED,
3737
FILE_OPEN_FOR_BACKUP_INTENT, FILE_OPEN_NO_RECALL, FILE_OPEN_REMOTE_INSTANCE,
@@ -74,7 +74,7 @@ const FILE_ATTRIBUTE_VALID_FLAGS: FILE_FLAGS_AND_ATTRIBUTES = FILE_ATTRIBUTE_EA
7474
pub unsafe fn CreateFileAtW(
7575
dir: HANDLE,
7676
lpfilename: &[u16],
77-
dwdesiredaccess: FILE_ACCESS_FLAGS,
77+
dwdesiredaccess: u32,
7878
dwsharemode: FILE_SHARE_MODE,
7979
lpsecurityattributes: *const SECURITY_ATTRIBUTES,
8080
dwcreationdisposition: FILE_CREATION_DISPOSITION,

cap-primitives/src/windows/fs/open_options_ext.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
use crate::fs::OpenOptions;
44
use std::io;
55
use std::ptr::null_mut;
6-
use windows_sys::Win32::Foundation::ERROR_INVALID_PARAMETER;
6+
use windows_sys::Win32::Foundation::{ERROR_INVALID_PARAMETER, GENERIC_READ, GENERIC_WRITE};
77
use windows_sys::Win32::Security::SECURITY_ATTRIBUTES;
88
use windows_sys::Win32::Storage::FileSystem::{
99
CREATE_ALWAYS, CREATE_NEW, FILE_FLAG_OPEN_REPARSE_POINT, FILE_GENERIC_WRITE, FILE_SHARE_DELETE,
1010
FILE_SHARE_READ, FILE_SHARE_WRITE, FILE_WRITE_DATA, OPEN_ALWAYS, OPEN_EXISTING,
1111
SECURITY_SQOS_PRESENT, TRUNCATE_EXISTING,
1212
};
13-
use windows_sys::Win32::System::SystemServices::{GENERIC_READ, GENERIC_WRITE};
1413

1514
#[derive(Debug, Clone)]
1615
pub(crate) struct OpenOptionsExt {

cap-primitives/src/windows/fs/reopen_impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
use crate::fs::{get_access_mode, get_flags_and_attributes, OpenOptions};
22
use io_lifetimes::AsHandle;
33
use std::{fs, io};
4+
use windows_sys::Win32::Foundation::{GENERIC_READ, GENERIC_WRITE};
45
use windows_sys::Win32::Storage::FileSystem::{
56
FILE_FLAG_DELETE_ON_CLOSE, FILE_FLAG_WRITE_THROUGH, FILE_GENERIC_READ, FILE_GENERIC_WRITE,
67
SECURITY_CONTEXT_TRACKING, SECURITY_DELEGATION, SECURITY_EFFECTIVE_ONLY,
78
SECURITY_IDENTIFICATION, SECURITY_IMPERSONATION,
89
};
9-
use windows_sys::Win32::System::SystemServices::{GENERIC_READ, GENERIC_WRITE};
1010
use winx::file::{AccessMode, Flags, ShareMode};
1111

1212
/// Implementation of `reopen`.

cap-tempfile/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ rand = "0.8.1"
2424
rustix = { version = "0.37.0", features = ["procfs"] }
2525

2626
[target.'cfg(windows)'.dev-dependencies.windows-sys]
27-
version = "0.45.0"
27+
version = "0.48.0"
2828
features = [
2929
"Win32_Foundation",
3030
]

0 commit comments

Comments
 (0)