From cec9b341de3b6281dc4522b58c1195d7d6258207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Kj=C3=A4ll?= Date: Wed, 25 Oct 2023 18:24:01 +0200 Subject: [PATCH 1/2] gate test on feature it needs --- eax/tests/aes128eax.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/eax/tests/aes128eax.rs b/eax/tests/aes128eax.rs index df8a3857..63de0bd2 100644 --- a/eax/tests/aes128eax.rs +++ b/eax/tests/aes128eax.rs @@ -4,4 +4,5 @@ use aes::Aes128; use eax::Eax; +#[cfg(feature = "std")] aead::new_test!(aes128eax, "aes128eax", Eax); From b7d21d70772ed55e10555e8735490517a66befe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Kj=C3=A4ll?= Date: Tue, 31 Oct 2023 16:39:56 +0100 Subject: [PATCH 2/2] the needed feature is 'alloc', no need to gate it on 'std' --- eax/tests/aes128eax.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eax/tests/aes128eax.rs b/eax/tests/aes128eax.rs index 63de0bd2..656648ae 100644 --- a/eax/tests/aes128eax.rs +++ b/eax/tests/aes128eax.rs @@ -1,8 +1,8 @@ //! Test vectors from Appendix G: //! https://web.cs.ucdavis.edu/~rogaway/papers/eax.pdf +#![cfg(feature = "alloc")] use aes::Aes128; use eax::Eax; -#[cfg(feature = "std")] aead::new_test!(aes128eax, "aes128eax", Eax);