From 86c93dd7a1c0ec7f3e9e38089539f825c737a172 Mon Sep 17 00:00:00 2001 From: Alex Huszagh Date: Thu, 31 Oct 2024 00:18:51 -0500 Subject: [PATCH] Add no_std support. Related to: https://github.com/aldanor/fast-float-rust/pull/33 --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 8d6dd5a..d6793ae 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -35,6 +35,7 @@ //! assert_eq!(&s[n..], "foo"); //! ``` +#![cfg_attr(not(feature = "std"), no_std)] #![allow(unused_unsafe)] #![warn(unsafe_op_in_unsafe_fn)] #![warn(clippy::all, clippy::pedantic, clippy::nursery, clippy::cargo)]