forked from mirror/async-std
feat: Add no_std attribute when not std feature
This commit is contained in:
parent
4996f29778
commit
51b84a7620
1 changed files with 1 additions and 0 deletions
|
@ -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)]
|
||||||
|
|
Loading…
Reference in a new issue