From cd1df04d92953a87a655bf95299494082e855679 Mon Sep 17 00:00:00 2001 From: Christopher Berner Date: Sun, 26 Nov 2023 06:52:37 -0800 Subject: [PATCH] Only set no_std when built without the std feature --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 9af3a5a..a41df44 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,5 @@ #![allow(clippy::needless_return, clippy::unreadable_literal)] -#![no_std] +#![cfg_attr(not(feature = "std"), no_std)] #[cfg(not(feature = "std"))] #[macro_use]