Skip to content

Commit e62abbb

Browse files
committed
feat: Add no_std attribute when not std feature
1 parent ba2805a commit e62abbb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@
221221
//! features = ["std"]
222222
//! ```
223223
224+
#![cfg_attr(not(feature = "std"), no_std)]
224225
#![cfg_attr(feature = "docs", feature(doc_cfg))]
225226
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]
226227
#![allow(clippy::mutex_atomic, clippy::module_inception)]

0 commit comments

Comments
 (0)