Skip to content

Commit cddf678

Browse files
committed
Make the crate no_std-compatible
Even though the crate doesn’t use std crate, because it doesn’t declare `#![no_std]` it cannot be compiled in no_std environments: error[E0463]: can't find crate for `std` = note: the `thumbv6m-none-eabi` target may not support the standard library = note: `std` is required by `forward_ref` because it does not declare `#![no_std]` Adding the annotation makes it possible to use the crate on no_std targets. Issue: CosmWasm/cosmwasm#1484
1 parent ae16e0c commit cddf678

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
//!
66
//! [internal_macros.rs]: https://github.com/rust-lang/rust/blob/master/library/core/src/internal_macros.rs
77
8+
#![no_std]
9+
810
/// Extend a unary operator trait impl over refs.
911
///
1012
/// Given an implementation of `op T` where T is `Copy`able, implements the unary

0 commit comments

Comments
 (0)