Skip to content

Commit 1ae0b4d

Browse files
authored
Undo Rust 2021 adoption (#1706)
1 parent a434451 commit 1ae0b4d

File tree

91 files changed

+93
-93
lines changed

Some content is hidden

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

91 files changed

+93
-93
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 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.56.0, stable, nightly]
52+
rust: [1.46.0, stable, nightly]
5353
steps:
5454
- name: Checkout
5555
uses: actions/checkout@v2

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.35.0"
44
authors = ["Microsoft"]
5-
edition = "2021"
5+
edition = "2018"
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/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.35.0"
44
authors = ["Microsoft"]
5-
edition = "2021"
5+
edition = "2018"
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.35.0"
4-
edition = "2021"
4+
edition = "2018"
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.35.0"
44
authors = ["Microsoft"]
5-
edition = "2021"
5+
edition = "2018"
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
name = "windows-sys"
44
version = "0.35.0"
55
authors = ["Microsoft"]
6-
edition = "2021"
6+
edition = "2018"
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"
11+
rust-version = "1.46"
1212

1313
[package.metadata.docs.rs]
1414
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.35.0"
44
authors = ["Microsoft"]
5-
edition = "2021"
5+
edition = "2018"
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
name = "windows"
44
version = "0.35.0"
55
authors = ["Microsoft"]
6-
edition = "2021"
6+
edition = "2018"
77
license = "MIT OR Apache-2.0"
88
description = "Rust for Windows"
99
repository = "https://github.com/microsoft/windows-rs"

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 = "2021"
4+
edition = "2018"
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 = "2021"
4+
edition = "2018"
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 = "2021"
4+
edition = "2018"
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 = "2021"
4+
edition = "2018"
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 = "2021"
4+
edition = "2018"
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 = "2021"
4+
edition = "2018"
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 = "2021"
4+
edition = "2018"
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 = "2021"
4+
edition = "2018"
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 = "2021"
4+
edition = "2018"
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 = "2021"
4+
edition = "2018"
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 = "2021"
4+
edition = "2018"
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 = "2021"
4+
edition = "2018"
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 = "2021"
4+
edition = "2018"
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 = "2021"
4+
edition = "2018"
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 = "2021"
4+
edition = "2018"
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 = "2021"
4+
edition = "2018"
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 = "2021"
4+
edition = "2018"
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 = "2021"
4+
edition = "2018"
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 = "2021"
4+
edition = "2018"
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 = "2021"
4+
edition = "2018"
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 = "2021"
4+
edition = "2018"
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.35.0"
44
authors = ["Microsoft"]
5-
edition = "2021"
5+
edition = "2018"
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.35.0"
44
authors = ["Microsoft"]
5-
edition = "2021"
5+
edition = "2018"
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.35.0"
44
authors = ["Microsoft"]
5-
edition = "2021"
5+
edition = "2018"
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.35.0"
44
authors = ["Microsoft"]
5-
edition = "2021"
5+
edition = "2018"
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.35.0"
44
authors = ["Microsoft"]
5-
edition = "2021"
5+
edition = "2018"
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 = "2021"
5+
edition = "2018"
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 = "2021"
5+
edition = "2018"
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 = "2021"
5+
edition = "2018"
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 = "2021"
5+
edition = "2018"
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 = "2021"
5+
edition = "2018"
66

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

crates/tests/bstr/Cargo.toml

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

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

crates/tests/const_fields/Cargo.toml

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

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

crates/tests/core/Cargo.toml

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

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

crates/tests/debug/Cargo.toml

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

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

0 commit comments

Comments
 (0)