Skip to content

Commit d801da6

Browse files
chore(deps): bump hybrid-array from 0.2.0-rc.9 to 0.2.0-rc.10 (#1525)
* chore(deps): bump hybrid-array from 0.2.0-rc.9 to 0.2.0-rc.10 Bumps [hybrid-array](https://github.com/RustCrypto/hybrid-array) from 0.2.0-rc.9 to 0.2.0-rc.10. - [Changelog](https://github.com/RustCrypto/hybrid-array/blob/master/CHANGELOG.md) - [Commits](RustCrypto/hybrid-array@v0.2.0-rc.9...v0.2.0-rc.10) --- updated-dependencies: - dependency-name: hybrid-array dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * pkcs12,pkcs5,sec1,spki,x509-cert,x509-ocsp: bump msrv to 1.81 * cms: bump MSRV to 1.81 * cmpv2,gss-api: bump MSRV to 1.81 * crmf: bump MSRV to 1.81 * pkcs1,pkcs8,x509-tsp: bump MSRV to 1.81 * x509-cert(clippy): fixup warnings `duplicated attribute` and `bound is defined in more than one place` warning were displayed * der(clippy): uint <-> int conversion safety * tls_codec_derive(clippy): fixup warning --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Arthur Gautier <arthur.gautier@arista.com>
1 parent af100a0 commit d801da6

33 files changed

+56
-52
lines changed

.github/workflows/cmpv2.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
strategy:
2828
matrix:
2929
rust:
30-
- 1.75.0 # MSRV
30+
- 1.81.0 # MSRV
3131
- stable
3232
target:
3333
- thumbv7em-none-eabi
@@ -52,7 +52,7 @@ jobs:
5252
strategy:
5353
matrix:
5454
rust:
55-
- 1.75.0 # MSRV
55+
- 1.81.0 # MSRV
5656
- stable
5757
steps:
5858
- uses: actions/checkout@v4

.github/workflows/cms.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
strategy:
2828
matrix:
2929
rust:
30-
- 1.75.0 # MSRV
30+
- 1.81.0 # MSRV
3131
- stable
3232
target:
3333
- thumbv7em-none-eabi
@@ -57,7 +57,7 @@ jobs:
5757
strategy:
5858
matrix:
5959
rust:
60-
- 1.75.0 # MSRV
60+
- 1.81.0 # MSRV
6161
- stable
6262
steps:
6363
- uses: actions/checkout@v4

.github/workflows/crmf.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
strategy:
2828
matrix:
2929
rust:
30-
- 1.75.0 # MSRV
30+
- 1.81.0 # MSRV
3131
- stable
3232
target:
3333
- thumbv7em-none-eabi
@@ -52,7 +52,7 @@ jobs:
5252
strategy:
5353
matrix:
5454
rust:
55-
- 1.75.0 # MSRV
55+
- 1.81.0 # MSRV
5656
- stable
5757
steps:
5858
- uses: actions/checkout@v4

.github/workflows/gss-api.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
strategy:
2828
matrix:
2929
rust:
30-
- 1.75.0 # MSRV
30+
- 1.81.0 # MSRV
3131
- stable
3232
target:
3333
- thumbv7em-none-eabi
@@ -52,7 +52,7 @@ jobs:
5252
strategy:
5353
matrix:
5454
rust:
55-
- 1.75.0 # MSRV
55+
- 1.81.0 # MSRV
5656
- stable
5757
steps:
5858
- uses: actions/checkout@v4

.github/workflows/pkcs1.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
strategy:
2828
matrix:
2929
rust:
30-
- 1.72.0 # MSRV
30+
- 1.81.0 # MSRV
3131
- stable
3232
target:
3333
- thumbv7em-none-eabi
@@ -52,7 +52,7 @@ jobs:
5252
strategy:
5353
matrix:
5454
rust:
55-
- 1.72.0 # MSRV
55+
- 1.81.0 # MSRV
5656
- stable
5757
steps:
5858
- uses: actions/checkout@v4

.github/workflows/pkcs12.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
strategy:
2929
matrix:
3030
rust:
31-
- 1.75.0 # MSRV
31+
- 1.81.0 # MSRV
3232
- stable
3333
target:
3434
- thumbv7em-none-eabi
@@ -53,7 +53,7 @@ jobs:
5353
strategy:
5454
matrix:
5555
rust:
56-
- 1.75.0 # MSRV
56+
- 1.81.0 # MSRV
5757
- stable
5858
steps:
5959
- uses: actions/checkout@v4

.github/workflows/pkcs5.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
matrix:
2828
rust:
29-
- 1.72.0 # MSRV
29+
- 1.81.0 # MSRV
3030
- stable
3131
target:
3232
- thumbv7em-none-eabi
@@ -51,7 +51,7 @@ jobs:
5151
strategy:
5252
matrix:
5353
rust:
54-
- 1.72.0 # MSRV
54+
- 1.81.0 # MSRV
5555
- stable
5656
steps:
5757
- uses: actions/checkout@v4

.github/workflows/pkcs8.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
strategy:
2929
matrix:
3030
rust:
31-
- 1.72.0 # MSRV
31+
- 1.81.0 # MSRV
3232
- stable
3333
target:
3434
- thumbv7em-none-eabi
@@ -55,7 +55,7 @@ jobs:
5555
strategy:
5656
matrix:
5757
rust:
58-
- 1.72.0 # MSRV
58+
- 1.81.0 # MSRV
5959
- stable
6060
steps:
6161
- uses: actions/checkout@v4

.github/workflows/sec1.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
strategy:
2828
matrix:
2929
rust:
30-
- 1.72.0 # MSRV
30+
- 1.81.0 # MSRV
3131
- stable
3232
target:
3333
- thumbv7em-none-eabi
@@ -52,7 +52,7 @@ jobs:
5252
strategy:
5353
matrix:
5454
rust:
55-
- 1.72.0 # MSRV
55+
- 1.81.0 # MSRV
5656
- stable
5757
steps:
5858
- uses: actions/checkout@v4

.github/workflows/spki.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
matrix:
2828
rust:
29-
- 1.72.0 # MSRV
29+
- 1.81.0 # MSRV
3030
- stable
3131
target:
3232
- thumbv7em-none-eabi
@@ -52,7 +52,7 @@ jobs:
5252
strategy:
5353
matrix:
5454
rust:
55-
- 1.72.0 # MSRV
55+
- 1.81.0 # MSRV
5656
- stable
5757
steps:
5858
- uses: actions/checkout@v4

.github/workflows/workspace.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/checkout@v4
2222
- uses: dtolnay/rust-toolchain@master
2323
with:
24-
toolchain: 1.75.0
24+
toolchain: 1.81.0
2525
components: clippy
2626
- run: cargo clippy --all --all-features --tests
2727

.github/workflows/x509-cert.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
matrix:
2828
rust:
29-
- 1.75.0 # MSRV
29+
- 1.81.0 # MSRV
3030
- stable
3131
target:
3232
- thumbv7em-none-eabi
@@ -53,7 +53,7 @@ jobs:
5353
strategy:
5454
matrix:
5555
rust:
56-
- 1.75.0 # MSRV
56+
- 1.81.0 # MSRV
5757
- stable
5858
steps:
5959
- uses: actions/checkout@v4

.github/workflows/x509-ocsp.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
matrix:
2828
rust:
29-
- 1.75.0 # MSRV
29+
- 1.81.0 # MSRV
3030
- stable
3131
target:
3232
- thumbv7em-none-eabi
@@ -51,7 +51,7 @@ jobs:
5151
strategy:
5252
matrix:
5353
rust:
54-
- 1.75.0 # MSRV
54+
- 1.81.0 # MSRV
5555
- stable
5656
steps:
5757
- uses: actions/checkout@v4

.github/workflows/x509-tsp.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
matrix:
3131
rust:
32-
- 1.75.0 # MSRV
32+
- 1.81.0 # MSRV
3333
- stable
3434
target:
3535
- thumbv7em-none-eabi
@@ -54,7 +54,7 @@ jobs:
5454
strategy:
5555
matrix:
5656
rust:
57-
- 1.75.0 # MSRV
57+
- 1.81.0 # MSRV
5858
- stable
5959
steps:
6060
- uses: actions/checkout@v4

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmpv2/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ categories = ["cryptography", "data-structures", "encoding", "no-std"]
1313
keywords = ["crypto"]
1414
readme = "README.md"
1515
edition = "2021"
16-
rust-version = "1.75"
16+
rust-version = "1.81"
1717

1818
[dependencies]
1919
crmf = "=0.3.0-pre"

cms/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ categories = ["cryptography", "encoding", "no-std", "parser-implementations"]
1212
keywords = ["crypto", "pkcs7", "signing"]
1313
readme = "README.md"
1414
edition = "2021"
15-
rust-version = "1.75"
15+
rust-version = "1.81"
1616

1717
[dependencies]
1818
der = { version = "0.8.0-rc.0", features = ["alloc", "derive", "oid", "pem"] }

crmf/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ categories = ["cryptography", "data-structures", "encoding", "no-std"]
1313
keywords = ["crypto"]
1414
readme = "README.md"
1515
edition = "2021"
16-
rust-version = "1.75"
16+
rust-version = "1.81"
1717

1818
[dependencies]
1919
cms = "=0.3.0-pre"

der/src/asn1/integer/int.rs

+6
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ macro_rules! impl_encoding_traits {
3030

3131
let bytes = reader.read_into(&mut buf[..max_length])?;
3232

33+
// We actually want the conversion to overflow here
34+
#[allow(clippy::cast_possible_wrap)]
3335
let result = if is_highest_bit_set(bytes) {
3436
<$uint>::from_be_bytes(decode_to_array(bytes)?) as $int
3537
} else {
@@ -48,6 +50,8 @@ macro_rules! impl_encoding_traits {
4850
impl EncodeValue for $int {
4951
fn value_len(&self) -> Result<Length> {
5052
if *self < 0 {
53+
// We actually want the conversion to overflow here
54+
#[allow(clippy::cast_sign_loss)]
5155
negative_encoded_len(&(*self as $uint).to_be_bytes())
5256
} else {
5357
uint::encoded_len(&self.to_be_bytes())
@@ -56,6 +60,8 @@ macro_rules! impl_encoding_traits {
5660

5761
fn encode_value(&self, writer: &mut impl Writer) -> Result<()> {
5862
if *self < 0 {
63+
// We actually want the conversion to overflow here
64+
#[allow(clippy::cast_sign_loss)]
5965
encode_bytes(writer, &(*self as $uint).to_be_bytes())
6066
} else {
6167
uint::encode_bytes(writer, &self.to_be_bytes())

gss-api/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ categories = ["cryptography", "authentication", "encoding", "no-std", "parser-im
1313
keywords = ["crypto", "gssapi", "kerberos", "krb5"]
1414
readme = "README.md"
1515
edition = "2021"
16-
rust-version = "1.75"
16+
rust-version = "1.81"
1717

1818
[dependencies]
1919
der = { version = "0.8.0-rc.0", features = ["oid", "alloc"] }

pkcs1/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ categories = ["cryptography", "data-structures", "encoding", "no-std", "parser-i
1313
keywords = ["crypto", "key", "pem", "pkcs", "rsa"]
1414
readme = "README.md"
1515
edition = "2021"
16-
rust-version = "1.72"
16+
rust-version = "1.81"
1717

1818
[dependencies]
1919
der = { version = "0.8.0-rc.0", features = ["oid"] }

pkcs12/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ categories = ["cryptography", "encoding", "no-std", "parser-implementations"]
1313
keywords = ["crypto", "key", "pkcs", "private"]
1414
readme = "README.md"
1515
edition = "2021"
16-
rust-version = "1.75"
16+
rust-version = "1.81"
1717

1818
[dependencies]
1919
der = { version = "0.8.0-rc.0", features = ["alloc", "derive", "oid", "pem"] }

pkcs5/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ categories = ["cryptography", "data-structures", "encoding", "no-std"]
1313
keywords = ["crypto", "key", "pkcs", "password"]
1414
readme = "README.md"
1515
edition = "2021"
16-
rust-version = "1.72"
16+
rust-version = "1.81"
1717

1818
[dependencies]
1919
der = { version = "0.8.0-rc.0", features = ["oid"] }

pkcs8/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ categories = ["cryptography", "data-structures", "encoding", "no-std", "parser-i
1414
keywords = ["crypto", "key", "pkcs", "private"]
1515
readme = "README.md"
1616
edition = "2021"
17-
rust-version = "1.72"
17+
rust-version = "1.81"
1818

1919
[dependencies]
2020
der = { version = "0.8.0-rc.0", features = ["oid"] }

sec1/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ categories = ["cryptography", "data-structures", "encoding", "no-std", "parser-i
1414
keywords = ["crypto", "key", "elliptic-curve", "secg"]
1515
readme = "README.md"
1616
edition = "2021"
17-
rust-version = "1.72"
17+
rust-version = "1.81"
1818

1919
[dependencies]
2020
base16ct = { version = "0.2", optional = true, default-features = false }
2121
der = { version = "0.8.0-rc.0", optional = true, features = ["oid"] }
22-
hybrid-array = { version = "0.2.0-rc.9", optional = true, default-features = false }
22+
hybrid-array = { version = "0.2.0-rc.10", optional = true, default-features = false }
2323
pkcs8 = { version = "0.11.0-rc.1", optional = true, default-features = false }
2424
serdect = { version = "0.3.0-rc.0", optional = true, default-features = false, features = ["alloc"] }
2525
subtle = { version = "2", optional = true, default-features = false }

spki/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ categories = ["cryptography", "data-structures", "encoding", "no-std"]
1313
keywords = ["crypto", "x509"]
1414
readme = "README.md"
1515
edition = "2021"
16-
rust-version = "1.72"
16+
rust-version = "1.81"
1717

1818
[dependencies]
1919
der = { version = "0.8.0-rc.0", features = ["oid"] }

tls_codec/derive/tests/decode_bytes.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,9 @@ fn enum_with_custom_serialized_field() {
240240

241241
#[test]
242242
fn that_skip_attribute_on_struct_works() {
243-
fn test<T: DeserializeBytes>(test: T, expected: T)
243+
fn test<T>(test: T, expected: T)
244244
where
245-
T: std::fmt::Debug + PartialEq + SerializeBytes + Size,
245+
T: DeserializeBytes + std::fmt::Debug + PartialEq + SerializeBytes + Size,
246246
{
247247
let serialized = test.tls_serialize().unwrap();
248248
let (deserialized, rest) = T::tls_deserialize_bytes(&serialized).unwrap();

x509-cert/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ categories = ["cryptography", "data-structures", "encoding", "no-std"]
1313
keywords = ["crypto"]
1414
readme = "README.md"
1515
edition = "2021"
16-
rust-version = "1.75"
16+
rust-version = "1.81"
1717

1818
[dependencies]
1919
const-oid = { version = "0.10.0-rc.0", features = ["db"] }

0 commit comments

Comments
 (0)