From 2aadc03ef15cb5ca5cc2af8a7c08e070742f0ac4 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 14:47:55 +0200 Subject: Adding upstream version 0.70.1+ds1. Signed-off-by: Daniel Baumann --- .../der/debian/patches/fix-tests-feature-time.diff | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 vendor/der/debian/patches/fix-tests-feature-time.diff (limited to 'vendor/der/debian/patches/fix-tests-feature-time.diff') diff --git a/vendor/der/debian/patches/fix-tests-feature-time.diff b/vendor/der/debian/patches/fix-tests-feature-time.diff new file mode 100644 index 0000000..d780563 --- /dev/null +++ b/vendor/der/debian/patches/fix-tests-feature-time.diff @@ -0,0 +1,25 @@ +Description: fix 'time' feature tests + The following invocation fails due to Error not being in scope: + cargo test --all-targets --no-default-features --features time + +Author: Emanuele Rocca + +Last-Update: 2023-06-30 +Index: der/src/asn1/generalized_time.rs +=================================================================== +--- der.orig/src/asn1/generalized_time.rs ++++ der/src/asn1/generalized_time.rs +@@ -8,9 +8,12 @@ use crate::{ + }; + use core::time::Duration; + ++#[cfg(any(feature = "std", feature = "time"))] ++use crate::Error; ++ + #[cfg(feature = "std")] + use { +- crate::{asn1::AnyRef, Error}, ++ crate::asn1::AnyRef, + std::time::SystemTime, + }; + -- cgit v1.2.3