Skip to content

Commit 683283b

Browse files
authored
Rust 2021 (#1636)
1 parent be54b2b commit 683283b

File tree

88 files changed

+120
-88
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+120
-88
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
runs-on: windows-2019
5050
strategy:
5151
matrix:
52-
rust: [1.46.0, stable, nightly]
52+
rust: [1.56.0, stable, nightly]
5353
steps:
5454
- name: Checkout
5555
uses: actions/checkout@v2
@@ -58,6 +58,20 @@ jobs:
5858
- name: Run cargo check
5959
run: cargo check -p windows-sys --all-features
6060

61+
cargo_windows:
62+
name: Check windows
63+
runs-on: windows-2019
64+
strategy:
65+
matrix:
66+
rust: [1.59.0, stable, nightly]
67+
steps:
68+
- name: Checkout
69+
uses: actions/checkout@v2
70+
- name: Update toolchain
71+
run: rustup update --no-self-update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
72+
- name: Run cargo check
73+
run: cargo check -p windows
74+
6175
cargo_clippy:
6276
name: Check clippy
6377
runs-on: windows-2019

crates/libs/bindgen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "windows-bindgen"
33
version = "0.34.0"
44
authors = ["Microsoft"]
5-
edition = "2018"
5+
edition = "2021"
66
license = "MIT OR Apache-2.0"
77
description = "Code gen support for the windows crate"
88
repository = "https://github.com/microsoft/windows-rs"

crates/libs/bindgen/src/names.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ where
295295
};
296296

297297
let generics = def.generics.iter().map(|g| gen_element_name(g, gen));
298-
quote! { #namespace#name#colon_separated<#(#generics),*> }
298+
quote! { #namespace #name #colon_separated<#(#generics),*> }
299299
}
300300
}
301301
}

crates/libs/implement/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "windows-implement"
33
version = "0.34.0"
44
authors = ["Microsoft"]
5-
edition = "2018"
5+
edition = "2021"
66
license = "MIT OR Apache-2.0"
77
description = "The implement macro for the windows crate"
88
repository = "https://github.com/microsoft/windows-rs"

crates/libs/interface/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "windows-interface"
33
version = "0.34.0"
4-
edition = "2018"
4+
edition = "2021"
55
authors = ["Microsoft"]
66
license = "MIT OR Apache-2.0"
77
description = "The interface macro for the windows crate"

crates/libs/metadata/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "windows-metadata"
33
version = "0.34.0"
44
authors = ["Microsoft"]
5-
edition = "2018"
5+
edition = "2021"
66
license = "MIT OR Apache-2.0"
77
description = "Code gen support for the windows crate"
88
repository = "https://github.com/microsoft/windows-rs"

crates/libs/sys/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
name = "windows-sys"
44
version = "0.34.0"
55
authors = ["Microsoft"]
6-
edition = "2018"
6+
edition = "2021"
77
license = "MIT OR Apache-2.0"
88
description = "Rust for Windows"
99
repository = "https://github.com/microsoft/windows-rs"
1010
readme = "../../../.github/readme.md"
11+
rust-version = "1.56"
1112

1213
[package.metadata.docs.rs]
1314
default-target = "x86_64-pc-windows-msvc"

crates/libs/tokens/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "windows-tokens"
33
version = "0.34.0"
44
authors = ["Microsoft"]
5-
edition = "2018"
5+
edition = "2021"
66
license = "MIT OR Apache-2.0"
77
description = "Code gen support for the windows crate"
88
repository = "https://github.com/microsoft/windows-rs"

crates/libs/windows/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
name = "windows"
44
version = "0.34.0"
55
authors = ["Microsoft"]
6-
edition = "2018"
6+
edition = "2021"
77
license = "MIT OR Apache-2.0"
88
description = "Rust for Windows"
99
repository = "https://github.com/microsoft/windows-rs"
1010
documentation = "https://microsoft.github.io/windows-docs-rs/"
1111
readme = "../../../.github/readme.md"
12+
rust-version = "1.59"
1213

1314
[package.metadata.docs.rs]
1415
default-target = "x86_64-pc-windows-msvc"

crates/samples/com_uri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sample_com_uri"
33
version = "0.0.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies.windows]
77
path = "../../libs/windows"

crates/samples/consent/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sample_consent"
33
version = "0.0.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies.windows]
77
path = "../../libs/windows"

crates/samples/core_app/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sample_core_app"
33
version = "0.0.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies.windows]
77
path = "../../libs/windows"

crates/samples/create_window/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sample_create_window"
33
version = "0.0.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies.windows]
77
path = "../../libs/windows"

crates/samples/create_window_sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sample_create_window_sys"
33
version = "0.0.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies.windows-sys]
77
path = "../../libs/sys"

crates/samples/data_protection/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sample_data_protection"
33
version = "0.0.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies.windows]
77
path = "../../libs/windows"

crates/samples/direct2d/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sample_direct2d"
33
version = "0.0.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies.windows]
77
path = "../../libs/windows"

crates/samples/direct3d12/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sample_direct3d12"
33
version = "0.0.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies]
77
array-init = "2.0.0"

crates/samples/enum_windows/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sample_enum_windows"
33
version = "0.0.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies.windows]
77
path = "../../libs/windows"

crates/samples/enum_windows_sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sample_enum_windows_sys"
33
version = "0.0.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies.windows-sys]
77
path = "../../libs/sys"

crates/samples/kernel_event/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sample_kernel_event"
33
version = "0.0.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies.windows]
77
path = "../../libs/windows"

crates/samples/memory_buffer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sample_memory_buffer"
33
version = "0.0.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies.windows]
77
path = "../../libs/windows"

crates/samples/message_box/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sample_message_box"
33
version = "0.0.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies.windows]
77
path = "../../libs/windows"

crates/samples/ocr/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sample_ocr"
33
version = "0.0.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies]
77
futures = "0.3.5"

crates/samples/overlapped/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sample_overlapped"
33
version = "0.0.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies.windows]
77
path = "../../libs/windows"

crates/samples/rss/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sample_rss"
33
version = "0.0.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies.windows]
77
path = "../../libs/windows"

crates/samples/simple/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sample_simple"
33
version = "0.0.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies.windows]
77
path = "../../libs/windows"

crates/samples/spellchecker/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sample_spellchecker"
33
version = "0.0.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies.windows]
77
path = "../../libs/windows"

crates/samples/uiautomation/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sample_uiautomation"
33
version = "0.0.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies.windows]
77
path = "../../libs/windows"

crates/samples/xaml_app/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sample_xaml_app"
33
version = "0.0.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies.windows]
77
path = "../../libs/windows"

crates/samples/xml/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sample_xml"
33
version = "0.0.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies.windows]
77
path = "../../libs/windows"

crates/targets/aarch64_msvc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "windows_aarch64_msvc"
33
version = "0.34.0"
44
authors = ["Microsoft"]
5-
edition = "2018"
5+
edition = "2021"
66
license = "MIT OR Apache-2.0"
77
description = "Code gen support for the windows crate"
88
repository = "https://github.com/microsoft/windows-rs"

crates/targets/i686_gnu/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "windows_i686_gnu"
33
version = "0.34.0"
44
authors = ["Microsoft"]
5-
edition = "2018"
5+
edition = "2021"
66
license = "MIT OR Apache-2.0"
77
description = "Code gen support for the windows crate"
88
repository = "https://github.com/microsoft/windows-rs"

crates/targets/i686_msvc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "windows_i686_msvc"
33
version = "0.34.0"
44
authors = ["Microsoft"]
5-
edition = "2018"
5+
edition = "2021"
66
license = "MIT OR Apache-2.0"
77
description = "Code gen support for the windows crate"
88
repository = "https://github.com/microsoft/windows-rs"

crates/targets/x86_64_gnu/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "windows_x86_64_gnu"
33
version = "0.34.0"
44
authors = ["Microsoft"]
5-
edition = "2018"
5+
edition = "2021"
66
license = "MIT OR Apache-2.0"
77
description = "Code gen support for the windows crate"
88
repository = "https://github.com/microsoft/windows-rs"

crates/targets/x86_64_msvc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "windows_x86_64_msvc"
33
version = "0.34.0"
44
authors = ["Microsoft"]
5-
edition = "2018"
5+
edition = "2021"
66
license = "MIT OR Apache-2.0"
77
description = "Code gen support for the windows crate"
88
repository = "https://github.com/microsoft/windows-rs"

crates/tests/agile/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "test_agile"
33
version = "0.0.0"
44
authors = ["Microsoft"]
5-
edition = "2018"
5+
edition = "2021"
66

77
[dependencies.windows]
88
path = "../../libs/windows"

crates/tests/agile_reference/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "test_agile_reference"
33
version = "0.0.0"
44
authors = ["Microsoft"]
5-
edition = "2018"
5+
edition = "2021"
66

77
[dependencies.windows]
88
path = "../../libs/windows"

crates/tests/alternate_success_code/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "test_alternate_success_code"
33
version = "0.0.0"
44
authors = ["Microsoft"]
5-
edition = "2018"
5+
edition = "2021"
66

77
[dependencies.windows]
88
path = "../../libs/windows"

crates/tests/arch/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "test_arch"
33
version = "0.0.0"
44
authors = ["Microsoft"]
5-
edition = "2018"
5+
edition = "2021"
66

77
[dependencies.windows]
88
path = "../../libs/windows"

crates/tests/arch_feature/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "test_arch_feature"
33
version = "0.0.0"
44
authors = ["Microsoft"]
5-
edition = "2018"
5+
edition = "2021"
66

77
[dependencies.windows]
88
path = "../../libs/windows"

0 commit comments

Comments
 (0)