Skip to content

Commit ac25009

Browse files
committed
Update windows-sys
1 parent dcc4702 commit ac25009

File tree

9 files changed

+24
-21
lines changed

9 files changed

+24
-21
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ openssl = { version = "0.10.50", optional = true }
9595
fwdansi = "1.1.0"
9696

9797
[target.'cfg(windows)'.dependencies.windows-sys]
98-
version = "0.45"
98+
version = "0.48"
9999
features = [
100100
"Win32_Foundation",
101101
"Win32_Storage_FileSystem",

crates/cargo-test-support/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ toml = "0.7.0"
2929
url = "2.2.2"
3030

3131
[target.'cfg(windows)'.dependencies]
32-
windows-sys = { version = "0.45.0", features = ["Win32_Storage_FileSystem"] }
32+
windows-sys = { version = "0.48.0", features = ["Win32_Storage_FileSystem"] }

crates/cargo-util/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ core-foundation = { version = "0.9.0", features = ["mac_os_10_7_support"] }
2525

2626
[target.'cfg(windows)'.dependencies]
2727
miow = "0.5.0"
28-
windows-sys = { version = "0.45.0", features = ["Win32_Storage_FileSystem", "Win32_Foundation", "Win32_System_Console"] }
28+
windows-sys = { version = "0.48.0", features = ["Win32_Storage_FileSystem", "Win32_Foundation", "Win32_System_Console"] }

crates/home/CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
<!-- ## [Unreleased] -->
7+
## Unreleased
8+
- The `home` crate has migrated to the <https://github.com/rust-lang/cargo/> repository.
9+
[#11359](https://github.com/rust-lang/cargo/pull/11359)
10+
- Replaced the winapi dependency with windows-sys.
11+
[#11656](https://github.com/rust-lang/cargo/pull/11656)
812

913
## [0.5.4] - 2022-10-10
1014
- Add `_with_env` variants of functions to support in-process threaded tests for
@@ -38,7 +42,6 @@ Use Rust 1.36.0 as minimum Rust version.
3842
### Removed
3943
- Remove support for `multirust` folder used in old version of `rustup`.
4044

41-
[Unreleased]: https://github.com/brson/home/compare/v0.5.4...HEAD
4245
[0.5.4]: https://github.com/brson/home/compare/v0.5.3...v0.5.4
4346
[0.5.3]: https://github.com/brson/home/compare/v0.5.2...v0.5.3
4447
[0.5.2]: https://github.com/brson/home/compare/v0.5.1...v0.5.2

crates/home/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "home"
3-
version = "0.5.4" # also update `html_root_url` in `src/lib.rs`
3+
version = "0.5.5" # also update `html_root_url` in `src/lib.rs`
44
authors = ["Brian Anderson <[email protected]>"]
55
documentation = "https://docs.rs/home"
66
edition = "2018"
@@ -17,4 +17,4 @@ repository = "https://github.com/rust-lang/cargo"
1717
description = "Shared definitions of home directories."
1818

1919
[target.'cfg(windows)'.dependencies]
20-
windows-sys = { version = "0.45.0", features = ["Win32_Foundation", "Win32_UI_Shell"] }
20+
windows-sys = { version = "0.48.0", features = ["Win32_Foundation", "Win32_UI_Shell"] }

crates/home/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
//!
2626
//! [discussion]: https://github.com/rust-lang/rust/pull/46799#issuecomment-361156935
2727
28-
#![doc(html_root_url = "https://docs.rs/home/0.5.4")]
28+
#![doc(html_root_url = "https://docs.rs/home/0.5.5")]
2929
#![deny(rust_2018_idioms)]
3030

3131
pub mod env;

credential/cargo-credential-wincred/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ description = "A Cargo credential process that stores tokens with Windows Creden
88

99
[dependencies]
1010
cargo-credential = { version = "0.2.0", path = "../cargo-credential" }
11-
windows-sys = { version = "0.45", features = ["Win32_Foundation", "Win32_Security_Credentials"] }
11+
windows-sys = { version = "0.48", features = ["Win32_Foundation", "Win32_Security_Credentials"] }

src/cargo/core/shell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,13 +563,13 @@ mod imp {
563563
use windows_sys::core::PCSTR;
564564
use windows_sys::Win32::Foundation::CloseHandle;
565565
use windows_sys::Win32::Foundation::INVALID_HANDLE_VALUE;
566+
use windows_sys::Win32::Foundation::{GENERIC_READ, GENERIC_WRITE};
566567
use windows_sys::Win32::Storage::FileSystem::{
567568
CreateFileA, FILE_SHARE_READ, FILE_SHARE_WRITE, OPEN_EXISTING,
568569
};
569570
use windows_sys::Win32::System::Console::{
570571
GetConsoleScreenBufferInfo, GetStdHandle, CONSOLE_SCREEN_BUFFER_INFO, STD_ERROR_HANDLE,
571572
};
572-
use windows_sys::Win32::System::SystemServices::{GENERIC_READ, GENERIC_WRITE};
573573

574574
pub(super) use super::{default_err_erase_line as err_erase_line, TtyWidth};
575575

0 commit comments

Comments
 (0)