From 48c6cebb87b23eb3f34b59da0dcced9f4d4af1c2 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Sat, 16 Aug 2025 20:56:11 +0200 Subject: disable tests in no_std build We should test there, but for convenience, the tests currently rely on std being there (mostly because of Vec allocations, also transitively via hex). Since the actual code doesn't change between std and no_std, I guess we're fine for now with not testing the no_std version. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index d649dfc..531705c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -891,7 +891,7 @@ fn split_key(key: &Key) -> (Block, Block, Block) { ) } -#[cfg(test)] +#[cfg(all(test, feature = "std"))] mod test { use super::*; -- cgit v1.2.3