Skip to content

Commit 569eb92

Browse files
authored
zeroize: 2021 edition upgrade; MSRV 1.56 (#869)
Since #858 needs MSRV 1.56 anyway, this goes ahead and bumps the edition for `zeroize` and `zeroize_derive` to 2021. This also lets us remove a number of hacks in CI, including commented-out tests.
1 parent 861da36 commit 569eb92

File tree

6 files changed

+20
-25
lines changed

6 files changed

+20
-25
lines changed

.github/workflows/zeroize.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
strategy:
2424
matrix:
2525
rust:
26-
- 1.51.0 # MSRV
26+
- 1.56.0 # MSRV
2727
- stable
2828
target:
2929
- armv7a-none-eabi
@@ -36,8 +36,6 @@ jobs:
3636
with:
3737
toolchain: ${{ matrix.rust }}
3838
targets: ${{ matrix.target }}
39-
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
40-
- run: rm ../Cargo.toml
4139
- run: cargo build --no-default-features --target ${{ matrix.target }}
4240

4341
minimal-versions:
@@ -52,7 +50,7 @@ jobs:
5250
# 32-bit Linux
5351
- target: i686-unknown-linux-gnu
5452
platform: ubuntu-latest
55-
rust: 1.51.0 # MSRV
53+
rust: 1.56.0 # MSRV
5654
deps: sudo apt update && sudo apt install gcc-multilib
5755
- target: i686-unknown-linux-gnu
5856
platform: ubuntu-latest
@@ -62,24 +60,23 @@ jobs:
6260
# 64-bit Linux
6361
- target: x86_64-unknown-linux-gnu
6462
platform: ubuntu-latest
65-
rust: 1.51.0 # MSRV
63+
rust: 1.56.0 # MSRV
6664
- target: x86_64-unknown-linux-gnu
6765
platform: ubuntu-latest
6866
rust: stable
6967

7068
# 64-bit macOS x86_64
71-
# TODO(tarcieri): try re-enabling this when we bump MSRV
72-
# - target: x86_64-apple-darwin
73-
# platform: macos-latest
74-
# rust: 1.51.0 # MSRV
69+
- target: x86_64-apple-darwin
70+
platform: macos-latest
71+
rust: 1.56.0 # MSRV
7572
- target: x86_64-apple-darwin
7673
platform: macos-latest
7774
rust: stable
7875

7976
# 64-bit Windows
8077
- target: x86_64-pc-windows-msvc
8178
platform: windows-latest
82-
rust: 1.51.0 # MSRV
79+
rust: 1.56.0 # MSRV
8380
- target: x86_64-pc-windows-msvc
8481
platform: windows-latest
8582
rust: stable
@@ -91,8 +88,6 @@ jobs:
9188
with:
9289
toolchain: ${{ matrix.rust }}
9390
targets: ${{ matrix.target }}
94-
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
95-
- run: rm ../Cargo.toml
9691
- run: ${{ matrix.deps }}
9792
- run: cargo test --target ${{ matrix.target }}
9893
- run: cargo test --target ${{ matrix.target }} --all-features
@@ -116,7 +111,5 @@ jobs:
116111
toolchain: ${{ matrix.rust }}
117112
targets: ${{ matrix.target }}
118113
- uses: RustCrypto/actions/cross-install@master
119-
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
120-
- run: rm ../Cargo.toml
121114
- run: cross test --target ${{ matrix.target }} --features aarch64
122115
- run: cross test --target ${{ matrix.target }} --all-features

Cargo.lock

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

zeroize/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
[package]
22
name = "zeroize"
3+
version = "1.6.0-pre"
34
description = """
45
Securely clear secrets from memory with a simple trait built on
56
stable Rust primitives which guarantee memory is zeroed using an
67
operation will not be 'optimized away' by the compiler.
78
Uses a portable pure Rust implementation that works everywhere,
89
even WASM!
910
"""
10-
version = "1.5.7"
1111
authors = ["The RustCrypto Project Developers"]
1212
license = "Apache-2.0 OR MIT"
1313
repository = "https://github.com/RustCrypto/utils/tree/master/zeroize"
1414
readme = "README.md"
1515
categories = ["cryptography", "memory-management", "no-std", "os"]
1616
keywords = ["memory", "memset", "secure", "volatile", "zero"]
17-
edition = "2018"
17+
edition = "2021"
18+
rust-version = "1.56"
1819

1920
[dependencies]
2021
serde = { version = "1.0", default-features = false, optional = true }
21-
zeroize_derive = { version = "1.3", path = "derive", optional = true }
22+
zeroize_derive = { version = "=1.4.0-pre", path = "derive", optional = true }
2223

2324
[features]
2425
default = ["alloc"]

zeroize/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ thereof, implemented in pure Rust with no usage of FFI or assembly.
3636

3737
## Minimum Supported Rust Version
3838

39-
Rust **1.51** or newer.
39+
Rust **1.56** or newer.
4040

4141
In the future, we reserve the right to change MSRV (i.e. MSRV is out-of-scope
4242
for this crate's SemVer guarantees), however when we do it will be accompanied by
@@ -64,7 +64,7 @@ dual licensed as above, without any additional terms or conditions.
6464
[docs-image]: https://docs.rs/zeroize/badge.svg
6565
[docs-link]: https://docs.rs/zeroize/
6666
[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg
67-
[rustc-image]: https://img.shields.io/badge/rustc-1.51+-blue.svg
67+
[rustc-image]: https://img.shields.io/badge/rustc-1.56+-blue.svg
6868
[build-image]: https://github.com/RustCrypto/utils/actions/workflows/zeroize.yml/badge.svg
6969
[build-link]: https://github.com/RustCrypto/utils/actions/workflows/zeroize.yml
7070

zeroize/derive/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
[package]
22
name = "zeroize_derive"
33
description = "Custom derive support for zeroize"
4-
version = "1.3.3"
4+
version = "1.4.0-pre"
55
authors = ["The RustCrypto Project Developers"]
66
license = "Apache-2.0 OR MIT"
77
repository = "https://github.com/RustCrypto/utils/tree/master/zeroize/derive"
88
readme = "README.md"
99
categories = ["cryptography", "memory-management", "no-std", "os"]
1010
keywords = ["memory", "memset", "secure", "volatile", "zero"]
11-
edition = "2018"
11+
edition = "2021"
12+
rust-version = "1.56"
1213

1314
[lib]
1415
proc-macro = true

zeroize/derive/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ See [zeroize] crate for documentation.
1313

1414
## Minimum Supported Rust Version
1515

16-
Rust **1.51** or newer.
16+
Rust **1.56** or newer.
1717

1818
In the future, we reserve the right to change MSRV (i.e. MSRV is out-of-scope
1919
for this crate's SemVer guarantees), however when we do it will be accompanied by
@@ -39,7 +39,7 @@ dual licensed as above, without any additional terms or conditions.
3939
[crate-image]: https://img.shields.io/crates/v/zeroize_derive.svg
4040
[crate-link]: https://crates.io/crates/zeroize_derive
4141
[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg
42-
[rustc-image]: https://img.shields.io/badge/rustc-1.51+-blue.svg
42+
[rustc-image]: https://img.shields.io/badge/rustc-1.56+-blue.svg
4343
[build-image]: https://github.com/RustCrypto/utils/actions/workflows/zeroize.yml/badge.svg
4444
[build-link]: https://github.com/RustCrypto/utils/actions/workflows/zeroize.yml
4545

0 commit comments

Comments
 (0)