Skip to content

Commit d2925d8

Browse files
committed
Lower MSRV to 1.56
Makes progress on #554
1 parent 3974be4 commit d2925d8

22 files changed

+240
-193
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
matrix:
3939
# See `INTERNAL.md` for an explanation of these pinned toolchain
4040
# versions.
41-
toolchain: [ "msrv", "stable", "nightly", "zerocopy-aarch64-simd", "zerocopy-generic-bounds-in-const-fn" ]
41+
toolchain: [ "msrv", "stable", "nightly", "zerocopy-generic-bounds-in-const-fn", "zerocopy-aarch64-simd", "zerocopy-panic-in-const", ]
4242
target: [
4343
"i686-unknown-linux-gnu",
4444
"x86_64-unknown-linux-gnu",
@@ -59,10 +59,13 @@ jobs:
5959
features: "--all-features"
6060
- toolchain: "stable"
6161
features: "--all-features"
62+
- toolchain: "zerocopy-generic-bounds-in-const-fn"
63+
features: "--all-features"
6264
- toolchain: "zerocopy-aarch64-simd"
6365
features: "--all-features"
64-
- toolchain: "zerocopy-generic-bounds-in-const-fn"
66+
- toolchain: "zerocopy-panic-in-const"
6567
features: "--all-features"
68+
6669
# Exclude any combination for the zerocopy-derive crate which
6770
# uses zerocopy features.
6871
- crate: "zerocopy-derive"
@@ -75,10 +78,12 @@ jobs:
7578
# other than "msrv", "stable", and "nightly". These other versions
7679
# exist to exercise zerocopy behavior which differs by toolchain;
7780
# zerocopy-derive doesn't behave different on these toolchains.
81+
- crate: "zerocopy-derive"
82+
toolchain: "zerocopy-generic-bounds-in-const-fn"
7883
- crate: "zerocopy-derive"
7984
toolchain: "zerocopy-aarch64-simd"
8085
- crate: "zerocopy-derive"
81-
toolchain: "zerocopy-generic-bounds-in-const-fn"
86+
toolchain: "zerocopy-panic-in-const"
8287

8388
name: Build & Test (crate:${{ matrix.crate }}, toolchain:${{ matrix.toolchain }}, target:${{ matrix.target }}, features:${{ matrix.features }})
8489

Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ authors = ["Joshua Liebow-Feeser <[email protected]>"]
2020
description = "Utilities for zero-copy parsing and serialization"
2121
license = "BSD-2-Clause OR Apache-2.0 OR MIT"
2222
repository = "https://github.com/google/zerocopy"
23-
rust-version = "1.57.0"
23+
rust-version = "1.56.0"
2424

2525
exclude = [".*"]
2626

@@ -30,13 +30,16 @@ exclude = [".*"]
3030
# as high as the specified version. In the emitted `--cfg`, dashes are replaced
3131
# by underscores.
3232

33+
# From 1.61.0, Rust supports generic types with trait bounds in `const fn`.
34+
zerocopy-generic-bounds-in-const-fn = "1.61.0"
35+
3336
# When the "simd" feature is enabled, include SIMD types from the
3437
# `core::arch::aarch64` module, which was stabilized in 1.59.0. On earlier Rust
3538
# versions, these types require the "simd-nightly" feature.
3639
zerocopy-aarch64-simd = "1.59.0"
3740

38-
# From 1.61.0, Rust supports generic types with trait bounds in `const fn`.
39-
zerocopy-generic-bounds-in-const-fn = "1.61.0"
41+
# Permit panicking in `const fn`s.
42+
zerocopy-panic-in-const = "1.57.0"
4043

4144
[package.metadata.ci]
4245
# The versions of the stable and nightly compiler toolchains to use in CI.

0 commit comments

Comments
 (0)