From 6e519ea6b7e157ef1da89e39b660fe2aab8f6dcf Mon Sep 17 00:00:00 2001 From: Jack O'Connor Date: Sun, 21 Jan 2024 17:54:09 -0800 Subject: [PATCH] configure no_std for guts, but not for testing --- rust/guts/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rust/guts/src/lib.rs b/rust/guts/src/lib.rs index 67f7a05..3760fa8 100644 --- a/rust/guts/src/lib.rs +++ b/rust/guts/src/lib.rs @@ -1,3 +1,6 @@ +// Tests always require libstd. +#![cfg_attr(all(not(feature = "std"), not(test)), no_std)] + use core::cmp; use core::marker::PhantomData; use core::mem;