aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2025-08-16 20:56:11 +0200
committerDaniel Schadt <kingdread@gmx.de>2025-08-16 20:56:11 +0200
commit48c6cebb87b23eb3f34b59da0dcced9f4d4af1c2 (patch)
treed199532f900e3ec373fd3b2eefff8a7dee8318d1
parent6bd93d13bf6fcc64c8671c938d0e719f8c83e673 (diff)
downloadzears-48c6cebb87b23eb3f34b59da0dcced9f4d4af1c2.tar.gz
zears-48c6cebb87b23eb3f34b59da0dcced9f4d4af1c2.tar.bz2
zears-48c6cebb87b23eb3f34b59da0dcced9f4d4af1c2.zip
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.
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
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::*;