diff options
| author | Jack O'Connor <[email protected]> | 2024-01-21 17:54:09 -0800 |
|---|---|---|
| committer | Jack O'Connor <[email protected]> | 2024-01-21 18:38:06 -0800 |
| commit | 6e519ea6b7e157ef1da89e39b660fe2aab8f6dcf (patch) | |
| tree | a56fce17f87ee243a62733c4bf7db0fe94ad31cf | |
| parent | fc7522717092a9530691736f1fd89c94a79a7800 (diff) | |
configure no_std for guts, but not for testing
| -rw-r--r-- | rust/guts/src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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; |
