Skip to content

Commit

Permalink
make #![no_std] compatible (#23)
Browse files Browse the repository at this point in the history
Add the attribute gate #![cfg_attr(not(test), no_std)] to allow for use in `no_std` environments.
  • Loading branch information
dstric-aqueduct authored Oct 2, 2023
1 parent 8c57d38 commit da5c5c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions struct-patch/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit da5c5c9

Please sign in to comment.