feat: Add no_std attribute when not std feature

This commit is contained in:
k-nasa 2020-01-16 10:31:27 +09:00
parent 4996f29778
commit 51b84a7620

View file

@ -221,6 +221,7 @@
//! features = ["std"] //! features = ["std"]
//! ``` //! ```
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(feature = "docs", feature(doc_cfg))] #![cfg_attr(feature = "docs", feature(doc_cfg))]
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)] #![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]
#![allow(clippy::mutex_atomic, clippy::module_inception)] #![allow(clippy::mutex_atomic, clippy::module_inception)]