From 0e0d3c01b527f1f4136d401b12bbc5e43faeddcc Mon Sep 17 00:00:00 2001 From: djstrickland <96876452+dstric-aqueduct@users.noreply.github.com> Date: Fri, 29 Sep 2023 08:15:38 -0400 Subject: [PATCH] make `#![no_std]` compatible Add the attribute gate #![cfg_attr(not(test), no_std)] to allow for use in `no_std` environments. --- struct-patch/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/struct-patch/src/lib.rs b/struct-patch/src/lib.rs index cc8cb76..a174207 100644 --- a/struct-patch/src/lib.rs +++ b/struct-patch/src/lib.rs @@ -43,6 +43,7 @@ //! ``` //! //! More details on how to use the the derive macro, including what attributes are available, are available under [`Patch`] +#![cfg_attr(not(test), no_std)] #[doc(hidden)] pub use struct_patch_derive::Patch;