From 56229d28b34ab1f2725a54d872a04dbf5fa4898f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 18 Dec 2024 12:05:33 -0800 Subject: [PATCH] update: bump rasn from 0.18.0 to 0.22.0 (#727) * update: bump rasn from 0.18.0 to 0.22.0 Bumps [rasn](https://github.com/librasn/rasn) from 0.18.0 to 0.22.0. - [Release notes](https://github.com/librasn/rasn/releases) - [Changelog](https://github.com/librasn/rasn/blob/main/CHANGELOG.md) - [Commits](https://github.com/librasn/rasn/compare/rasn-v0.18.0...rasn-v0.22.0) --- updated-dependencies: - dependency-name: rasn dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Fix up related deps and update for newer rasn APIs * Update MSRV to 1.81.0 --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Eric Scouten --- Cargo.lock | 107 +++++++-------------- internal/crypto/Cargo.toml | 6 +- internal/crypto/src/time_stamp/response.rs | 2 +- sdk/Cargo.toml | 6 +- 4 files changed, 41 insertions(+), 80 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8fedb9b81..dfac40513 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -94,6 +94,12 @@ dependencies = [ "memchr", ] +[[package]] +name = "allocator-api2" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" + [[package]] name = "android-tzdata" version = "0.1.1" @@ -173,12 +179,6 @@ dependencies = [ "derive_arbitrary", ] -[[package]] -name = "arrayvec" -version = "0.7.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" - [[package]] name = "ascii-canvas" version = "3.0.0" @@ -908,7 +908,7 @@ version = "4.5.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ac6a0c7b1a9e9a5186361f67dfa1b88213572f427fb9ab038efb2bd8c582dab" dependencies = [ - "heck 0.5.0", + "heck", "proc-macro2", "quote", "syn 2.0.90", @@ -1007,12 +1007,6 @@ dependencies = [ "tiny-keccak", ] -[[package]] -name = "const_panic" -version = "0.2.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "013b6c2c3a14d678f38cd23994b02da3a1a1b6a5d1eedddfe63a5a5f11b13a81" - [[package]] name = "conv" version = "0.3.3" @@ -1780,6 +1774,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" dependencies = [ "ahash", + "allocator-api2", ] [[package]] @@ -1788,12 +1783,6 @@ version = "0.15.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289" -[[package]] -name = "heck" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" - [[package]] name = "heck" version = "0.5.0" @@ -2358,26 +2347,6 @@ dependencies = [ "thiserror 1.0.69", ] -[[package]] -name = "konst" -version = "0.3.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "298ddf99f06a97c1ecd0e910932662b7842855046234b0d0376d35d93add087f" -dependencies = [ - "const_panic", - "konst_kernel", - "typewit", -] - -[[package]] -name = "konst_kernel" -version = "0.3.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4b1eb7788f3824c629b1116a7a9060d6e898c358ebff59070093d51103dcc3c" -dependencies = [ - "typewit", -] - [[package]] name = "kv-log-macro" version = "1.0.7" @@ -3255,18 +3224,16 @@ dependencies = [ [[package]] name = "rasn" -version = "0.18.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81a9162f91f371403ed7469be915bc0d39b84246ac2783822c4197fcaf3dbfe2" +checksum = "f593394cad523914fcac9296bdb69701ad308589b3ea1e16d37b6f0c3cfad075" dependencies = [ - "arrayvec", "bitvec", "bitvec-nom2", "bytes", "chrono", "either", "hashbrown 0.14.5", - "konst", "nom", "num-bigint", "num-integer", @@ -3279,24 +3246,34 @@ dependencies = [ [[package]] name = "rasn-derive" -version = "0.18.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbd02be4b376758d6a12b2751c5e86f0befc8e47bd6847b1fc126dcb79cb005e" +checksum = "2f2c367bf1b9a9bc34d40b9c140b52d26b585d0c7755b18496ba061f50639082" +dependencies = [ + "proc-macro2", + "rasn-derive-impl", + "syn 2.0.90", +] + +[[package]] +name = "rasn-derive-impl" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a321099d2f0f08f0afb90e68a16015abea210d4734f7faf6b3497f29feb46a35" dependencies = [ "either", "itertools 0.13.0", "proc-macro2", "quote", - "rayon", - "syn 1.0.109", + "syn 2.0.90", "uuid", ] [[package]] name = "rasn-ocsp" -version = "0.18.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ecc5a6f83a09d3c8f2bd8c200a28986db30b1ad0a33bb828442d2efee5871f1" +checksum = "fe8804910bee097437b7df967160127e250e59b4d497b450c89328cd796ee1f8" dependencies = [ "rasn", "rasn-pkix", @@ -3304,9 +3281,9 @@ dependencies = [ [[package]] name = "rasn-pkix" -version = "0.18.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3da2b04cf81b8135d5b362cf29143018eb708039670c2680092f1f1b79d501f" +checksum = "884db2ae0da3a7239daaec802df74f3431062f85651c511e6c40b35a30282b82" dependencies = [ "rasn", ] @@ -3926,24 +3903,23 @@ checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" [[package]] name = "snafu" -version = "0.7.5" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4de37ad025c587a29e8f3f5605c00f70b98715ef90b9061a815b9e59e9042d6" +checksum = "223891c85e2a29c3fe8fb900c1fae5e69c2e42415e3177752e8718475efa5019" dependencies = [ - "doc-comment", "snafu-derive", ] [[package]] name = "snafu-derive" -version = "0.7.5" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "990079665f075b699031e9c08fd3ab99be5029b96f3b78dc0709e8f77e4efebf" +checksum = "03c3c6b7927ffe7ecaa769ee0e3994da3b8cafc8f444578982c83ecb161af917" dependencies = [ - "heck 0.4.1", + "heck", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.90", ] [[package]] @@ -4348,21 +4324,6 @@ version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" -[[package]] -name = "typewit" -version = "1.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb77c29baba9e4d3a6182d51fa75e3215c7fd1dab8f4ea9d107c716878e55fc0" -dependencies = [ - "typewit_proc_macros", -] - -[[package]] -name = "typewit_proc_macros" -version = "1.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e36a83ea2b3c704935a01b4642946aadd445cea40b10935e3f8bd8052b8193d6" - [[package]] name = "ucd-trie" version = "0.1.7" diff --git a/internal/crypto/Cargo.toml b/internal/crypto/Cargo.toml index fc9f31737..146b5c8f8 100644 --- a/internal/crypto/Cargo.toml +++ b/internal/crypto/Cargo.toml @@ -43,9 +43,9 @@ coset = "0.3.1" getrandom = { version = "0.2.7", features = ["js"] } hex = "0.4.3" rand = "0.8.5" -rasn = "0.18.0" -rasn-ocsp = "0.18.0" -rasn-pkix = "0.18.0" +rasn = "0.22.0" +rasn-ocsp = "0.22.0" +rasn-pkix = "0.22.0" schemars = { version = "0.8.21", optional = true } serde = { version = "1.0.197", features = ["derive"] } serde_bytes = "0.11.5" diff --git a/internal/crypto/src/time_stamp/response.rs b/internal/crypto/src/time_stamp/response.rs index 79b8882a2..ee0fb9ec5 100644 --- a/internal/crypto/src/time_stamp/response.rs +++ b/internal/crypto/src/time_stamp/response.rs @@ -12,7 +12,7 @@ // each license. use bcder::decode::Constructed; -use rasn::{AsnType, Decode, Encode}; +use rasn::{AsnType, Decode, Decoder, Encode, Encoder}; #[cfg(not(target_arch = "wasm32"))] use crate::asn1::rfc3161::PkiStatus; diff --git a/sdk/Cargo.toml b/sdk/Cargo.toml index e05d7ef33..48ec799a4 100644 --- a/sdk/Cargo.toml +++ b/sdk/Cargo.toml @@ -106,9 +106,9 @@ png_pong = "0.9.1" rand = "0.8.5" rand_chacha = "0.3.1" range-set = "0.0.11" -rasn-ocsp = "0.18.0" -rasn-pkix = "0.18.0" -rasn = "0.18.0" +rasn-ocsp = "0.22.0" +rasn-pkix = "0.22.0" +rasn = "0.22.0" riff = "2.0.0" schemars = { version = "0.8.21", optional = true } serde = { version = "1.0.197", features = ["derive"] }